Remotely control Machine on button

More
5 years 11 months ago - 5 years 11 months ago #189226 by Aciera
Replied by Aciera on topic Remotely control Machine on button
Hm Norberts suggestion makes me wonder,
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.
Code:
# --- MACHINE ON-OFF --- net machine-button-panel <= momentary-switch on input xx => toggle.machine.in net machine-toggle <= toggle.machine.out => not.machine.in => halui.machine.on net not-machine <= not.machine.out => halui.machine.off
Last edit: 5 years 11 months ago by Aciera.
More
5 years 11 months ago #189231 by newbynobi
Replied by newbynobi on topic Remotely control Machine on button
I thought it is an estop problem
OK now here are both solutons named here ;-)

Norbert
More
5 years 11 months ago #189236 by tommylight
Replied by tommylight on topic Remotely control Machine on button
Hmm ... where ??? :)
More
5 years 11 months ago #189455 by rogerfries
Replied by rogerfries on topic Remotely control Machine on button
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
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
Moderators: newbynobi, HansU
Time to create page: 0.134 seconds
Powered by Kunena Forum