Setting digit input true in gcode

More
14 Mar 2019 18:24 #128601 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.

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

More
14 Mar 2019 20:45 #128607 by Todd Zuercher
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.

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

More
14 Mar 2019 21:42 - 14 Mar 2019 21:54 #128611 by bevins

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.

More
16 Mar 2019 11:47 #128723 by andypugh
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.119 seconds
Powered by Kunena Forum