Cycling through the spindle gears on an aux button
Posted: Tue Sep 08, 2020 8:01 pm
I have a lathe with 3 gears for speeds (outside of the VFD control). So it's a basic M41, M42, M43 to cycle between them. What I'd like to do is attach a macro to an AUX button on my control panel that
(A) Goes in that order.
(B) Flashes on the screen what range is set (or displays it permanently).
(A) seems pretty straightforward:
IF {check #50063 and #50064 appropriately} THEN M43
IF {check #50063 and #50064 appropriately} THEN M42
IF {check #50063 and #50064 appropriately} THEN M41
It's (B) that has me a bit confused. I'd like to have it displayed on the monitor which gear range I'm in, so I know there's no mismatch between what I've physically set on the headstock and what the controller thinks is set (I don't have a switch there or anything). Is there any directive that allows me to write that to the screen?
(A) Goes in that order.
(B) Flashes on the screen what range is set (or displays it permanently).
(A) seems pretty straightforward:
IF {check #50063 and #50064 appropriately} THEN M43
IF {check #50063 and #50064 appropriately} THEN M42
IF {check #50063 and #50064 appropriately} THEN M41
It's (B) that has me a bit confused. I'd like to have it displayed on the monitor which gear range I'm in, so I know there's no mismatch between what I've physically set on the headstock and what the controller thinks is set (I don't have a switch there or anything). Is there any directive that allows me to write that to the screen?