m41-43 gear range Oak

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

Moderator: cnckeith

Post Reply
wwenter
Posts: 22
Joined: Thu Feb 15, 2018 12:19 am
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

m41-43 gear range Oak

Post by wwenter »

Hello
I am using an Oak to run my lathe. I have the spindle running with a VFD and have the high range rpm reading with in +- 1. I am having trouble figuring how to change to the low range using m41
Thanks for any help.


cncsnw
Community Expert
Posts: 4564
Joined: Wed Mar 24, 2010 5:48 pm

Re: m41-43 gear range Oak

Post by cncsnw »

Do you need to have the PLC shift gears (e.g. by operating hydraulic slides, or clutches, or a motorized shifter)?

Or do you shift gears by hand, and you just need to be able to inform the PLC what gear you last put it in?


wwenter
Posts: 22
Joined: Thu Feb 15, 2018 12:19 am
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: m41-43 gear range Oak

Post by wwenter »

I manualy shift gears. I just need to tell the PLC what range I am in. Whether thats through aux keys or m41-43 or I could wire in switches.
Thanks


cncsnw
Community Expert
Posts: 4564
Joined: Wed Mar 24, 2010 5:48 pm

Re: m41-43 gear range Oak

Post by cncsnw »

I typically indicate the manually-selected gear range with Aux keys.

For example, you can replace the standard range selection code, near the end of JogPanelStage, with this:

Code: Select all

; Select range with Aux keys
IF Aux1Key THEN SpindleRange_W = 4
IF Aux4Key THEN SpindleRange_W = 3
IF Aux7Key THEN SpindleRange_W = 2
IF Aux10Key THEN SpindleRange_W = 1
IF True THEN SV_NV_W1 = SpindleRange_W

; Use the gear range number to set the range flags and speed ratio.

IF SpindleRange_W == 1 THEN SET SV_SPINDLE_LOW_RANGE,
                            RST SV_SPINDLE_MID_RANGE,
                            (Aux10LED),
                            SpinRangeAdjust_FW = SV_MACHINE_PARAMETER_65

IF SpindleRange_W == 2 THEN SET SV_SPINDLE_LOW_RANGE,
                            SET SV_SPINDLE_MID_RANGE,
                            (Aux7LED),
                            SpinRangeAdjust_FW = SV_MACHINE_PARAMETER_66

IF SpindleRange_W == 3 THEN RST SV_SPINDLE_LOW_RANGE,
                            SET SV_SPINDLE_MID_RANGE,
                            (Aux4LED),
                            SpinRangeAdjust_FW = SV_MACHINE_PARAMETER_67

IF SpindleRange_W == 4 THEN RST SV_SPINDLE_LOW_RANGE,
                            RST SV_SPINDLE_MID_RANGE,
                            (Aux1LED),
                            SpinRangeAdjust_FW = 1.0
... and also insert this line among the things that are done unconditionally in InitialStage:

Code: Select all

             SpindleRange_W = SV_NV_W1,
Of course, if you use Aux7 to indicate one of the gear ranges, then you will need to either delete the standard work light control, or move it to a different Aux key.


wwenter
Posts: 22
Joined: Thu Feb 15, 2018 12:19 am
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: m41-43 gear range Oak

Post by wwenter »

Thank you very much


Post Reply