pcb-gcode icon indicating copy to clipboard operation
pcb-gcode copied to clipboard

Spindle does not stop on finish

Open 9a4gl opened this issue 7 years ago • 5 comments

Using CNC2418 with GRBL 0.9 and Candle 1.0.11

After everything is finished spindle keeps spinning. With original pcb-gcode pcb-gcode-3.6.2.4 spindle stooped after everything has finished.

9a4gl avatar Aug 12 '18 11:08 9a4gl

You're right. I believe my spindle turns off on command M4 and most spindles turn off on command M5. This has been an issue with other software for me as well and I keep changing it. Let me try and point you to the right location in the python script.

McNugget6750 avatar Aug 12 '18 17:08 McNugget6750

I believe you are using my config file. Therefore you need to go to profiles/grbl-NuggetMill.pp and check line 60: string SPINDLE_OFF = "M4" + EOL; needs to be changed to

string SPINDLE_OFF = "M5" + EOL; for most CNC machines. Try that and let me know if that helps!

McNugget6750 avatar Aug 12 '18 17:08 McNugget6750

I just found this

M03 | M-Code | Spindle ON (CW Rotation)  M04 | M-Code | Spindle ON (CCW Rotation)  M05 | M-Code | Spindle Stop

Fast switching rotation with M04 may cause also damage.

9a4gl avatar Aug 13 '18 15:08 9a4gl

Certainly. I have my own CNC machine design and for reasons I don't remember the relay output only turns on or off on M3 and M4 respectively. I should change that at some point as it's not standard.

McNugget6750 avatar Aug 13 '18 15:08 McNugget6750

I can confirm that changing to M5 fixes the problem. IMO, if this really can be different on some machines it should go to settings and default should me M5

9a4gl avatar Aug 13 '18 19:08 9a4gl