Spindle stop from G-code (M05)

More
2 years 2 months ago #307918 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.
 

Attachment not found

 

Attachment not found

Please Log in to join the conversation.

More
2 years 2 months ago #307920 by Aciera
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

Please Log in to join the conversation.

Time to create page: 0.905 seconds
Powered by Kunena Forum