- Posts: 4819
- Thank you received: 2177
Remotely control Machine on button
- Aciera
- Offline
- Administrator
-
Do you want to connect the estop screen button or the machine on/off screen button?
My suggestion was actually for a momentary switch attached to one of your cards inputs to control machine on/off (machine enable) . Press and release enables the machine, press and release again disables the machine.
halui.machine.on / -.off is a bit special as it has two complementary inputs that take impulses.
- newbynobi
- Offline
- Moderator
-
- Posts: 1931
- Thank you received: 394
OK now here are both solutons named here
Norbert
- tommylight
- Offline
- Moderator
-
- Posts: 22011
- Thank you received: 7491
- rogerfries
- Offline
- Senior Member
-
- Posts: 71
- Thank you received: 4
Perhaps I'm not stating my question correctly. Basically I don't want the LinuxCNC power button, so I'm trying to automate it. I want the power button to automatically change to reflect the e-stop status. By default Linux CNC turns the power button off when the machine e-stops. So when the machine comes out of e-stop I want to send a signal to automatically turn the LinuxCNC software power button on. Turning it Green and unlocking the controls. I don't want to rewire the machine to have a momentary button as Aciera suggests. and my stock HAL file already matches Norbert's post.
If I understand correctly (and I probably don't) the below line enables the machine when it comes out of estop
net estop-ext => iocontrol.0.emc-enable-in
So I want to enable the machine and turn on the power button so I want something like the below, but it does not work
net estop-ext => iocontrol.0.emc-enable-in => hal.ui.machine.on
I doubt there is anything relevant in my config, but it's available github.com/rogerfries/Boss5.git
This whole power button thing is really a minor annoyance, but I think Learning how to do this will be important to help me learn how HAL works for my future objectives. I want to add a bunch of buttons to make a control panel and a touch plate tool height setter.
Thanks
Roger
- bevins
- Offline
- Platinum Member
-
- Posts: 1947
- Thank you received: 338
rogerfries wrote: Hi Again,
Perhaps I'm not stating my question correctly. Basically I don't want the LinuxCNC power button, so I'm trying to automate it. I want the power button to automatically change to reflect the e-stop status. By default Linux CNC turns the power button off when the machine e-stops. So when the machine comes out of e-stop I want to send a signal to automatically turn the LinuxCNC software power button on. Turning it Green and unlocking the controls. I don't want to rewire the machine to have a momentary button as Aciera suggests. and my stock HAL file already matches Norbert's post.
If I understand correctly (and I probably don't) the below line enables the machine when it comes out of estop
net estop-ext => iocontrol.0.emc-enable-in
So I want to enable the machine and turn on the power button so I want something like the below, but it does not work
net estop-ext => iocontrol.0.emc-enable-in => hal.ui.machine.on
I doubt there is anything relevant in my config, but it's available github.com/rogerfries/Boss5.git
This whole power button thing is really a minor annoyance, but I think Learning how to do this will be important to help me learn how HAL works for my future objectives. I want to add a bunch of buttons to make a control panel and a touch plate tool height setter.
Thanks
Roger
It's not hal.ui it is halui
You may have an issue because estop has to be reset before turning the machine on. You can try setting a delay after the estop reset then turning on the machine.
- rogerfries
- Offline
- Senior Member
-
- Posts: 71
- Thank you received: 4
Thanks for pointing out my typo, but the root issue is there can only be one output. I get the error "halui.machine.on was already linked to signal estop.ext".
Thanks
Roger