Spindle stop from G-code (M05)

More
16 Aug 2024 13:49 #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.
   

File Attachment:

File Name: postgui_sp...rpts.hal
File Size:1 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
16 Aug 2024 14:36 #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
The following user(s) said Thank You: slowpoke, ustaL

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum