execute G code line by pinchange
03 Sep 2014 14:26 - 03 Sep 2014 14:29 #50666
by eslavko
execute G code line by pinchange was created by eslavko
Hello...
I looking for way to execute Gcode line (or subprogram O<myfile>) triggered by pinchange.
The pinchange came from userspace python component so maybe it's doable from within component.
Thanks for hints.
p.s.
actualy entering MDI command (from component) is ussable to.
I looking for way to execute Gcode line (or subprogram O<myfile>) triggered by pinchange.
The pinchange came from userspace python component so maybe it's doable from within component.
Thanks for hints.
p.s.
actualy entering MDI command (from component) is ussable to.
Last edit: 03 Sep 2014 14:29 by eslavko.
Please Log in or Create an account to join the conversation.
03 Sep 2014 15:11 #50668
by ArcEye
Replied by ArcEye on topic execute G code line by pinchange
Hi
The first way is to use halui mdi
halui.mdi-command-<nn> (bit, in) -
www.linuxcnc.org/docs/devel/html/gui/halui.html
What ever you connect to the halui pin will trigger the associated mdi command in the ini file when it goes high
If you want to do it from a component, probably easier, see this recent thread for a component executing a series of MDI commands read from a file
www.linuxcnc.org/index.php/english/forum...b-in-position-signal
python has a system() function I believe, so you can do similar, triggered by a pin in the component connected to whatever your trigger is.
regards
The first way is to use halui mdi
halui.mdi-command-<nn> (bit, in) -
www.linuxcnc.org/docs/devel/html/gui/halui.html
What ever you connect to the halui pin will trigger the associated mdi command in the ini file when it goes high
If you want to do it from a component, probably easier, see this recent thread for a component executing a series of MDI commands read from a file
www.linuxcnc.org/index.php/english/forum...b-in-position-signal
python has a system() function I believe, so you can do similar, triggered by a pin in the component connected to whatever your trigger is.
regards
Please Log in or Create an account to join the conversation.
03 Sep 2014 17:14 - 03 Sep 2014 17:15 #50675
by eslavko
Replied by eslavko on topic execute G code line by pinchange
halui.mdi-command-<nn>
... just perfect. (I already used that but forgeted...)
Thanks
... just perfect. (I already used that but forgeted...)
Thanks
Last edit: 03 Sep 2014 17:15 by eslavko.
Please Log in or Create an account to join the conversation.
Time to create page: 0.129 seconds