execute G code line by pinchange

More
03 Sep 2014 14:26 - 03 Sep 2014 14:29 #50666 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.
Last edit: 03 Sep 2014 14:29 by eslavko.

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

More
03 Sep 2014 15:11 #50668 by ArcEye
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

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

More
03 Sep 2014 17:14 - 03 Sep 2014 17:15 #50675 by eslavko
halui.mdi-command-<nn>

... 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.113 seconds
Powered by Kunena Forum