Spindle stop from G-code (M05)
- slowpoke
- Offline
- Elite Member
Less
More
- Posts: 173
- Thank you received: 25
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.
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.
Attachments:
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4015
- Thank you received: 1731
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
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