Remotely control Machine on button

More
5 years 11 months ago #188988 by rogerfries
To be clear this is not a problem, but rather I'm trying to tailor LinuxCNC to to my preferences.
In Gmocapy on the upper right there is an estop button and a machine power button. I also have physical buttons on my machine for both. When I power the machine up from the physical button I would like the LinuxCNC software to power up automatically. The software knows the status of the machine as it it's not physically powered up the software button won't activate. I'm looking to make the software power button a slave to the physical power button on the machine as I'm frequently aggravated why the interface is not responding, and it's because I need to hit the power button on the screen. I'm always forgetting to do this. This probably violates some Safety Sally rule, but this is a private single user machine. Any way to do this? Thanks!

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

More
5 years 11 months ago #189000 by Aciera
Not sure if I understood you correctly. The Machine on/off button in gmoccapy gets it's state from halui.machine.on and halui.machine.off. I have a signal that comes from classicladder.0.out-41 and toggles the machine on/off button:
Code:
# --- MACHINE ON-OFF --- net machine-button-panel <= classicladder.0.out-41 => toggle.machine.in net machine-toggle <= toggle.machine.out => not.machine.in => halui.machine.on net not-machine <= not.machine.out => halui.machine.off net machine-is-on-led <= halui.machine.is-on => classicladder.0.in-50

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

More
5 years 11 months ago #189152 by rogerfries
Classic ladder appears to be a programing tool. Do I need it? If so Is it part of LinuxCNC or do I need to install it?

Basically I want the LinuxCNC power status to reflect the actual status of the machine, so I don't need to power up the CNC, then power up LinuxCNC.

Thanks

Roger

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

More
5 years 11 months ago #189179 by Aciera
You don't need classicladder. That's just where my signal happens to come from. So replace my classicladder signal with the signal you want.

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

More
5 years 11 months ago #189220 by rogerfries
Sorry, but I'm a total newbie on Linux CNC and sadly I don't yet understand most of this yet.

My machine has a 24 volt power indicator lamp. I can route this wire to an input on my Mesa Card.

Perhaps do something like this in my Hal file?

# --- Power-IN ---
net power-in <= hm2_7i76e.0.7i76.0.0.input-09

If I understand correctly this would create a new variable named power-in to reflect the state of the input pin 9 on my mesa card. Then how can I set this power-in to control the Linux CNC machine power status?

Thanks

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

More
5 years 11 months ago #189222 by newbynobi
Please find attached Estop hal file. I made this out of memory, but it should work if you change the hal pin to the one you use.

Norbert
Code:
########################################################### # Emergency switch / Not-Aus Schalter # ########################################################### net estop-ext <= hm2_7i76e.0.7i76.0.0.input-20 net estop-out <= iocontrol.0.user-enable-out net estop-ext => iocontrol.0.emc-enable-in

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

Moderators: newbynobi, HansU
Time to create page: 0.256 seconds
Powered by Kunena Forum