Remotely control Machine on button

More
5 years 11 months ago #189457 by bevins
Replied by bevins on topic Remotely control Machine on button

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.
More
5 years 11 months ago #189458 by rogerfries
Replied by rogerfries on topic Remotely control Machine on button
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
More
5 years 11 months ago #189459 by bevins
Replied by bevins on topic Remotely control Machine on button
You have a few ways this can be done.

estop latch

You can also use classicladder.
More
5 years 11 months ago - 5 years 11 months ago #189460 by bevins
Replied by bevins on topic Remotely control Machine on button

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.....
Code:
loadrt estop_latch addf estop-latch.0 servo-thread net estop-loopout iocontrol.0.emc-enable-in <= estop-latch.0.ok-out net estop-loopin iocontrol.0.user-enable-out => estop-latch.0.ok-in net estop-reset iocontrol.0.user-request-enable => estop-latch.0.reset net remote-estop estop-latch.0.fault-in <= hm2_5i25.0.7i77.0.0.input-07-not loadrt oneshot count=2 addf oneshot.0 servo-thread setp oneshot.0.width 1 setp oneshot.0.retriggerable 0 setp oneshot.0.rising 1 net estop-out-MO estop-latch.0.reset => oneshot.0.in net estop-reset-MO <= oneshot.0.out net estop-reset-MO => halui.machine-on
Last edit: 5 years 11 months ago by bevins.
More
5 years 11 months ago #189507 by rogerfries
Replied by rogerfries on topic Remotely control Machine on button
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
More
5 years 11 months ago - 5 years 11 months ago #189508 by bevins
Replied by bevins on topic Remotely control Machine on button

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.
Last edit: 5 years 11 months ago by bevins.
Moderators: newbynobi, HansU
Time to create page: 0.307 seconds
Powered by Kunena Forum