- Configuring LinuxCNC
- Basic Configuration
- How to replace 'machine on' GUI button with a physical button
How to replace 'machine on' GUI button with a physical button
- DeckelHead
- Offline
- Elite Member
Less
More
- Posts: 166
- Thank you received: 2
06 Jun 2019 18:17 #136077
by DeckelHead
On my control panel, I have a "Start" button that I'd like to use as a mechanical equivalent to pressing the "Machine On" GUI button. Let me elaborate. When I press the "Start" button, it should act as though I have pressed the "machine on" GUI button with my mouse.
I've poked around the pins in HAL and I can't quite get the right one. Machine-is-on toggles acts as an output that toggles when I press the GUI button with the mouse, but that is different from what I want to do. I'm looking for the input to all of that process so I can tie my physical button to the input. Does that make sense?
I've poked around the pins in HAL and I can't quite get the right one. Machine-is-on toggles acts as an output that toggles when I press the GUI button with the mouse, but that is different from what I want to do. I'm looking for the input to all of that process so I can tie my physical button to the input. Does that make sense?
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
06 Jun 2019 21:06 - 06 Jun 2019 21:08 #136091
by Todd Zuercher
Replied by Todd Zuercher on topic How to replace 'machine on' GUI button with a physical button
The Halui hal pin "halui.machine.on" does exactly what it appears you are describing.
linuxcnc.org/docs/html/man/man1/halui.1.html
To use it connect that hal pin to an input triggered by a momentary switch or button.
linuxcnc.org/docs/html/man/man1/halui.1.html
To use it connect that hal pin to an input triggered by a momentary switch or button.
Last edit: 06 Jun 2019 21:08 by Todd Zuercher.
The following user(s) said Thank You: stratcat
Please Log in or Create an account to join the conversation.
12 Jun 2019 17:23 #136770
by pl7i92
Replied by pl7i92 on topic How to replace 'machine on' GUI button with a physical button
you may connect this button as you are on a parport like
MASHINE HAL
net external-mashine-on <= parport.0.pin-12-in
postgui hal
net external-mashine-on => halui.machine.on
postgui shoudt be used as it is after the GUI is loaded and about 1000times a second called
MASHINE HAL
net external-mashine-on <= parport.0.pin-12-in
postgui hal
net external-mashine-on => halui.machine.on
postgui shoudt be used as it is after the GUI is loaded and about 1000times a second called
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Basic Configuration
- How to replace 'machine on' GUI button with a physical button
Time to create page: 0.097 seconds