CNC Spindle without Gcode controlled RPM
-
I am setting up a CNC machines using RRF 3.4beta7+7. I'm having a bit of trouble turning a relay on to power up a Makita router spindle. The RPM is not controllable via G-code but I was setting an arbitrary RPM for RRF3.3 which worked, but this has stopped working and now I'm getting an error message: Requested Spindle RPM out of range. Is there a way to set up a spindle which doesn't require a defined speed in M3 S#.
M453 ; Switch to CNC Mode M950 R1 C"e0heat" L1 ; Create spindle 1 M563 P1 S"Spindle" R1 ; Create tool 1 with spindle 1 and call it "Spindle"
-
@educatingsavvas you could try remove L and setting the RPM in the gcode between 60 and 10000 (the default numbers)
Any reason why you don't set your spindle as number 0? (the R1 in your M950) -
@jay_s_uk Thanks, I'll try that tomorrow and see what happens. But I seem to remember that not being an option in RRF3.3. Also I used spindle Tool 1, because I copied some of my settings from a previous machine where Tool 0 was a laser engraver.
Just a thought maybe it is worth changing the order of the spindle?
"The first pin defined is a pwm capable pin to set the spindle speed. If a second pin is defined it is used as spindle on/of, if three pins are defined then the second pin is spindle forward and the third is spindle reverse."
There are a lot of people using non RPM controllable router spindle, such as on the workbee cnc machine?
-
@educatingsavvas ah, that's a good point. If you stick with the first pin your probably best off setting the RPM to 10000 so the PWM is just set to on.
Or, you could try your suggestion and set the first pin as another output, such as a fan as the second pin as your relay pin. Then the RPM you use doesn't matter as long as it's between 60 and 10000 -
@jay_s_uk Hi Jay - got it working but have a new problem with long pauses during resumes now. That was actually something I raised a while ago but was not picked up. https://forum.duet3d.com/topic/26582/rrf-3-4-0beta7-resume-bug?_=1642609963044