Page 1 of 1

Cycling through the spindle gears on an aux button

Posted: Tue Sep 08, 2020 8:01 pm
by Surgo
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?

Re: Cycling through the spindle gears on an aux button

Posted: Wed Sep 09, 2020 1:29 am
by cncsnw
What generation and version of the software are you running?

Do your M41/M42/M43 codes actually perform a gear shift? Or do you shift gears manually, and just use M41/M42/M43 to inform the control what gear you manually shifted to?

What I prefer to do is use one Aux key per range (three total, in your case). Then you can use the indicator LEDs in the Aux keys to show the active range.

Re: Cycling through the spindle gears on an aux button

Posted: Wed Sep 09, 2020 1:51 am
by Surgo
I shift the gears manually, and have to tell the control what gear I'm in.

Re: Cycling through the spindle gears on an aux button

Posted: Wed Sep 09, 2020 10:14 am
by martyscncgarage
Surgo,
Please post a report. CNCSNW is asking what control you have, what software etc.
ALWAYS post a fresh report when asking for help
Pictures of the control would be helpful