- Posts: 1943
- Thank you received: 0
Setting digit input true in gcode
7 years 7 months ago #128601
by bevins
Setting digit input true in gcode was created by bevins
Is it possible to set a digital input true via gcode?
I know I can M66 wait for input, but I want to set it true.
I know I can M66 wait for input, but I want to set it true.
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
7 years 7 months ago #128607
by Todd Zuercher
Replied by Todd Zuercher on topic Setting digit input true in gcode
Sounds like you want a digital output M62-M65.
linuxcnc.org/docs/html/gcode/m-code.html#mcode:m62-m65
You'd then connect the digital output pins (motion.digital-out-00...) to what ever inputs you need to change in hal.
linuxcnc.org/docs/html/gcode/m-code.html#mcode:m62-m65
You'd then connect the digital output pins (motion.digital-out-00...) to what ever inputs you need to change in hal.
Please Log in to join the conversation.
7 years 7 months ago #128611
by bevins
I am trying to set iocontrol.0.tool-change to true. It is an out bit.
Not in HAL, need to use gcode so I can put it in a function in a remap.
nevermind. its in the epilog, self.tool_change_flag = True
its not getting to task though.
Replied by bevins on topic Setting digit input true in gcode
Todd Zuercher wrote: Sounds like you want a digital output M62-M65.
linuxcnc.org/docs/html/gcode/m-code.html#mcode:m62-m65
You'd then connect the digital output pins (motion.digital-out-00...) to what ever inputs you need to change in hal.
I am trying to set iocontrol.0.tool-change to true. It is an out bit.
Not in HAL, need to use gcode so I can put it in a function in a remap.
nevermind. its in the epilog, self.tool_change_flag = True
its not getting to task though.
Please Log in to join the conversation.
7 years 7 months ago #128723
by andypugh
Replied by andypugh on topic Setting digit input true in gcode
I am sure that this can't be the "right" way, and in fact might not even work, but have you tried command.mdi("m6") in the remap?
Please Log in to join the conversation.
Time to create page: 0.080 seconds
