Pin or signal to identify when cnc program is running

More
22 Dec 2016 20:03 #84571 by an92626
I have switches on my control panel which I want to do different functions when linuxcnc is actually running a cnc program. To determine in my hal commands whether a cnc program is running I need to identify a pin or signal that changes state only when a cnc program is running. At first I thought the pin would be halui.program.is-running, but this signal goes true anytime linuxcnc is moving the table (such as a mdi or a mpg command). I want something that is only true when a cnc program is running and the table is being controlled by g code commands written into a ngc file. If I can tie a signal into the run button on the axis display, that would probably work.

Anyone know of such a pin?

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

More
22 Dec 2016 21:20 #84575 by Todd Zuercher
How about a combination of 2 pins, use halui.program.is-running and halui.mode.is-auto. Connect both those with an and2 and the output of the and2 should be what you want.

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

More
23 Dec 2016 19:03 #84643 by an92626
Thanks. That combination worked great.

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

Time to create page: 0.147 seconds
Powered by Kunena Forum