Remotely control Machine on button

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.
More
5 years 11 months ago - 5 years 11 months ago #189525 by Aciera
Replied by Aciera on topic Remotely control Machine on button
In line 403 you have:
Code:
net estop-reset iocontrol.0.user-request-enable => estop-latch.0.reset

this creates the signal "estop-reset" by connecting the output pin "estop-reset iocontrol.0.user-request-enable" to the input pin "estop-latch.0.reset" which is fine. You have an output pin and an input pin:
Code:
iocontrol.0.user−request−enable (Bit, Out) TRUE when the user has requested that estop be cleared
Code:
estop-latch.N.reset bit in

but then after that you also have:
Code:
net estop-out-MO estop-latch.0.reset => oneshot.0.in

here you are trying to create a new signal "estop-out.MO by connecting two inputs which is not possible. If you want to connect "oneshot.0.in" to "estop-latch.0.reset" then you need to do it like this (after having created the signal "estop-reset" line 403):

net estop-reset => oneshot.0.in

OR you could add the input "oneshot.0.in" to the line where you create the signal "estop-reset" in line 403:

net estop-reset <= iocontrol.0.user-request-enable => estop-latch.0.reset => oneshot.0.in

Note the "<=" and "=>" are ignored and are only there to visualize inputs and outputs for the user. LinuxCNC already knows which pins are input and which pins are outputs. When you define a signal you need to connect it to only one output pin and then you can connect it to as many input pins as you want.
Last edit: 5 years 11 months ago by Aciera.
More
5 years 8 months ago #197844 by biqut2
Replied by biqut2 on topic Remotely control Machine on button
This thread came up in a google search I did trying to figure out why I couldn't toggle the power button in gmoccapy along with my e-stop. For what its worth I thought I'd add my solution:
Code:
net pendant-estop-in estop-latch.0.fault-in hm2_7i76e.0.7i76.0.0.input-16-not net pendant-estop-out iocontrol.0.emc-enable-in oneshot.0.in hm2_7i76e.0.7i76.0.0.input-16 net machine-on-delay timedelay.0.in oneshot.0.out net machine-on-signal halui.machine.on timedelay.0.out
Moderators: newbynobi, HansU
Time to create page: 0.928 seconds
Powered by Kunena Forum