Pin or signal to identify when cnc program is running
22 Dec 2016 20:03 #84571
by an92626
Pin or signal to identify when cnc program is running was created 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?
Anyone know of such a pin?
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Away
- Platinum Member
-
Less
More
- Posts: 4978
- Thank you received: 1377
22 Dec 2016 21:20 #84575
by Todd Zuercher
Replied by Todd Zuercher on topic Pin or signal to identify when cnc program is running
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.
23 Dec 2016 19:03 #84643
by an92626
Replied by an92626 on topic Pin or signal to identify when cnc program is running
Thanks. That combination worked great.
Please Log in or Create an account to join the conversation.
Time to create page: 0.147 seconds