**RESOLVED** Low speed range

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

Moderator: cnckeith

Locked
petkui
Posts: 15
Joined: Mon Oct 04, 2010 4:18 pm
Allin1DC CNC Controller: Yes
CNC Control System Serial Number: none
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: No

**RESOLVED** Low speed range

Post by petkui »

I do not see any set up parameters for low speed range.
2 things needed:
1) Set max speed for low range
2) Invert direction of rotation while in low range
Thanks Pete
please no smoke
Posts: 103
Joined: Mon Mar 29, 2010 10:17 pm

Re: Low speed range

Post by please no smoke »

That would be a great addition to mach. I am handling it with a brain. It's not done yet but I can post what I have.
diycncscott

Re: Low speed range

Post by diycncscott »

Mach already has this -look under config->spindle pulleys
please no smoke
Posts: 103
Joined: Mon Mar 29, 2010 10:17 pm

Re: Low speed range

Post by please no smoke »

How does that work with a continuously variable drive? Do you just have 2 pullys? One high range and one low?
petkui
Posts: 15
Joined: Mon Oct 04, 2010 4:18 pm
Allin1DC CNC Controller: Yes
CNC Control System Serial Number: none
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: No

Re: Low speed range

Post by petkui »

I,m sorry but this question was meant for CNC11
Pete
cncsnw
Posts: 3913
Joined: Wed Mar 24, 2010 5:48 pm

Re: Low speed range

Post by cncsnw »

You set the speed in low range (vs. high range) with Machine Parameter #65.

For example, if the spindle speed for a given motor speed in low gear is 1/8 the speed it would be in high gear, then you would set Parameter 65 to 0.125.

The PLC program is responsible for applying this value, and also for reversing spindle direction in low gear if needed.

Looking at the last DC3IOB basic program I have seen, the logic for reversing the spindle direction appears to have fallen through a crack somewhere.

Assuming you have a PLC program with things like:

Code: Select all

SpinLowRange          IS INP9
;...
SpindleDirectionOut   IS OUT13
;...
;--------------------------------------------------------------
;                     Set spindle direction
;--------------------------------------------------------------
;------------------Set Clockwise direction---------------------
IF ((KbSpinCW_M || SpinCWKey) && !SpinAutoModeLED) || (M3 && SpinAutoModeLED)
  || (M3 && DoCycleStart) THEN (SpinCWPD)
IF SpinCWPD THEN rst SpindleDirectionOut
IF !SpindleDirectionOut THEN (SpindleCWLED), (SelectSpindleCW)

;---------------Set Counterclockwise direction-----------------
IF ((KbSpinCCW_M || SpinCCWKey) && !SpinAutoModeLED) || (M4 && SpinAutoModeLED)
  || (M4 && DoCycleStart) THEN (SpinCCWPD)
IF SpinCCWPD THEN set SpindleDirectionOut
IF SpindleDirectionOut THEN (SpindleCCWLED), (SelectSpindleCCW)
I would do a lot of cleanup on that mess. But if I were trying to keep it simple, I would define a memory bit to receive the initial SpindleDirection calculation, then XOR that with the range input before sending it to the direction relay.
I.e:

Code: Select all

;...
SpindleDirection_M IS MEM20
;...
;--------------------------------------------------------------
;                     Set spindle direction
;--------------------------------------------------------------
;------------------Set Clockwise direction---------------------
IF ((KbSpinCW_M || SpinCWKey) && !SpinAutoModeLED) || (M3 && SpinAutoModeLED)
  || (M3 && DoCycleStart) THEN (SpinCWPD)
IF SpinCWPD THEN rst SpindleDirection_M
IF !SpindleDirection_M THEN (SpindleCWLED), (SelectSpindleCW)

;---------------Set Counterclockwise direction-----------------
IF ((KbSpinCCW_M || SpinCCWKey) && !SpinAutoModeLED) || (M4 && SpinAutoModeLED)
  || (M4 && DoCycleStart) THEN (SpinCCWPD)
IF SpinCCWPD THEN set SpindleDirection_M
IF SpindleDirection_M THEN (SpindleCCWLED), (SelectSpindleCCW)

IF SpindleDirection_M ^ SpinLowRange THEN (SpindleDirectionOut)
This assumes that your low-range switch closes when you shift the lever into low gear.
Note that "^" is the abbreviated XOR operator.
petkui
Posts: 15
Joined: Mon Oct 04, 2010 4:18 pm
Allin1DC CNC Controller: Yes
CNC Control System Serial Number: none
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: No

Re: Low speed range

Post by petkui »

Thanks
I did see the parameter 65. Thanks for the rest of it
Pete
Locked