Setting digit input true in gcode
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
14 Mar 2019 18:24 #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 or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
14 Mar 2019 20:45 #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 or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
14 Mar 2019 21:42 - 14 Mar 2019 21:54 #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
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.
Last edit: 14 Mar 2019 21:54 by bevins.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4864
16 Mar 2019 11:47 #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 or Create an account to join the conversation.
Time to create page: 0.052 seconds