Page 1 of 1

m41-43 gear range Oak

Posted: Sat Sep 22, 2018 11:59 pm
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.

Re: m41-43 gear range Oak

Posted: Sun Sep 23, 2018 8:42 pm
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?

Re: m41-43 gear range Oak

Posted: Sun Sep 23, 2018 10:56 pm
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

Re: m41-43 gear range Oak

Posted: Wed Sep 26, 2018 12:14 am
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.

Re: m41-43 gear range Oak

Posted: Wed Sep 26, 2018 10:40 pm
by wwenter
Thank you very much