Connecting external power-on button to Linux CNC

More
11 years 9 months ago - 11 years 9 months ago #55299 by machete
In my machine (big Gildemeister lathe) i have green button wich is starting machine power (oil pumps, drives power etc) and red button (conected with E-stop) wich turns this power off.

Both buttons connected to different input pins on my 7i77 card.

Now i've configured E-stop (red button), so i can see condition of my external E-stop button in AxisGUI

But, which hal pin i need to connect with my green button to perform action like F2 does?

(At this moment, i must hit F2 first, to start linux-cnc, and after that push green button on my machine)
Last edit: 11 years 9 months ago by machete.

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

More
11 years 9 months ago #55303 by ArcEye

But, which hal pin i need to connect with my green button to perform action like F2 does?


halui.machine.on

www.linuxcnc.org/docs/html/gui/halui.html

regards

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

More
4 years 2 weeks ago #253998 by M4MazakUser
Ok, so now here in 2022, WHAT IS THE MACHINE POWER ON BUTTON CALLED!!

Lol, I a been looking and I can't find anything to link (net) my power on button to.

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

More
4 years 2 weeks ago #253999 by rodw
There are many ways to do this. 
Here is one of them.
forum.linuxcnc.org/47-hal-examples/25861-external-e-stop
But this assumes that the reset button is the orange button in axis.

Probably the correct way is to use a safety relay with a momentary estop reset button (green button) and trigger a relay that sends 24 volts to an input attached to  iocontrol.0.emc-enable-in something like this
Code:
# --- ESTOP-EXT --- net estop-ext     <=  hm2_7i76e.0.7i76.0.0.input-04 net estop-ext     =>  iocontrol.0.emc-enable-in

Here is my safety relay wiring.
 

Your browser does not support embedded PDFs. Please download the file here: Download PDF.

 

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

More
4 years 2 weeks ago #254004 by M4MazakUser
I'm fine with E-stop, it all links and works well, I just want to connect a push button to turn on the button to the right of the e-stop button in axis. The f2 keyboard key links to it. But I can't see what its called. All the axis enables seem to be linked to it.

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

More
4 years 2 weeks ago #254008 by phillc54
halui.machine.on and halui.machine.off work for AXIS.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum