- Posts: 170
- Thank you received: 0
User defined M-codes Vs. M62-M65
linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m62-m65
I have no qualms working with either the user defined Mcodes or this set up. But as par for my course, I'm not informed enough to make a good decision, yet.
Any light to be shed on this part?
Please Log in to join the conversation.
Scot wrote: So in my quest for getting that collet open, I found in the Mcode section that there are 4 Mcodes that are digital outputs. Two attached to motion, M62 turns the output on and M63 turns it off. Two unattached to motion, M64/on and M65/off. I'm sure the unattached M64 and M65 could be used for this collet thing I'm doing. And I'm pretty sure since they're unattached to particular outputs and out of the box with LinuxCNC I can use them. But I don't know how to apply them to my setup and Jon was unaware of them until last night. You can find them here:
linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m62-m65
I have no qualms working with either the user defined Mcodes or this set up. But as par for my course, I'm not informed enough to make a good decision, yet.
Any light to be shed on this part?
What are you trying to do?
Both will work.
Please Log in to join the conversation.
I've been getting close with the user defined Mcodes, but I think there is a code issue that I'm not seeing <because I'm not that versed in inuxcnc>. Waiting on Jon to find out what I may be missing.
Either way is fine with me. I'm just seeing as many options as I can identify while trying to make the user defined option work.
Scot
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
Please Log in to join the conversation.
So when you encounter a m200 in the gcode it will fire those outputs.
You need to set motion-digital-out-XX first in hal.
That's the way I do it. Should work for you also.
Please Log in to join the conversation.
I would use M100-199 for a collet.
JT
Please Log in to join the conversation.
