Cycling through the spindle gears on an aux button

All things related to Centroid Oak, Allin1DC, MPU11 and Legacy products

Moderator: cnckeith

Post Reply
Surgo
Posts: 9
Joined: Tue Feb 25, 2020 11:45 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Cycling through the spindle gears on an aux button

Post 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?
cncsnw
Posts: 3765
Joined: Wed Mar 24, 2010 5:48 pm

Re: Cycling through the spindle gears on an aux button

Post 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.
Surgo
Posts: 9
Joined: Tue Feb 25, 2020 11:45 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Cycling through the spindle gears on an aux button

Post by Surgo »

I shift the gears manually, and have to tell the control what gear I'm in.
martyscncgarage
Posts: 9912
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Cycling through the spindle gears on an aux button

Post 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
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
Post Reply