- Posts: 1947
- Thank you received: 338
Remotely control Machine on button
- bevins
- Offline
- Platinum Member
-
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
- bevins
- Offline
- Platinum Member
-
- Posts: 1947
- Thank you received: 338
- bevins
- Offline
- Platinum Member
-
- Posts: 1947
- Thank you received: 338
rogerfries wrote: Bevins,
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
You only need the rising edge pulse when estop latches.
Something like this: This should theoretically work. Not tested.....
- rogerfries
- Offline
- Senior Member
-
- Posts: 71
- Thank you received: 4
Thanks for the sample code! I tried the sample and I have an issue. I'm just not grasping HAL yet so I can't determine how to solve this. Any suggestions? Thanks!
I get the error:
./Boss5.hal:411: Pin 'estop-latch.0.reset' was already linked to signal 'estop-reset'
Config files online
github.com/rogerfries/Boss5.git
- bevins
- Offline
- Platinum Member
-
- Posts: 1947
- Thank you received: 338
rogerfries wrote: Hi Bevins,
Thanks for the sample code! I tried the sample and I have an issue. I'm just not grasping HAL yet so I can't determine how to solve this. Any suggestions? Thanks!
I get the error:
./Boss5.hal:411: Pin 'estop-latch.0.reset' was already linked to signal 'estop-reset'
Config files online
github.com/rogerfries/Boss5.git
If I have time today I will setup the scenario and test it.