- Posts: 224
- Thank you received: 0
Spindle stop from G-code (M05)
2 years 2 months ago #307918
by slowpoke
Spindle stop from G-code (M05) was created by slowpoke
My present HAL spindle start, stop logic is working as desired except M05 commands in my gcode files are ignored.
I can change the OR gate to a 4 input (personality 0x204), however I'm not sure what signal I would use to drive that 4th input, or if there is an overall more elegant solution for spindle control. Note: I always manually start the spindle before hitting the run button for gcode execution, so I don't really need G03, G04 capability.
Suggestions please.
I can change the OR gate to a 4 input (personality 0x204), however I'm not sure what signal I would use to drive that 4th input, or if there is an overall more elegant solution for spindle control. Note: I always manually start the spindle before hitting the run button for gcode execution, so I don't really need G03, G04 capability.
Suggestions please.
Attachment not found
Attachment not found
Please Log in to join the conversation.
2 years 2 months ago #307920
by Aciera
Replied by Aciera on topic Spindle stop from G-code (M05)
If you want an M5 gcode to shut your spindle off you would probably want to use an internal motion pin like 'spindle.0.on' and invert that.
linuxcnc.org/docs/html/man/man9/motion.9.html
linuxcnc.org/docs/html/man/man9/motion.9.html
Please Log in to join the conversation.
Time to create page: 0.905 seconds
