How to trigger a specific behavior when E-stop is pressed?

More
3 years 2 months ago #279376 by Adam Maszynotwór
Hi
I have a problem with assigning specific behaviors to e-stops (perhaps it is due to the lack of knowledge of English).
It controls the actuators with an M code, e.g. M110 Extend the actuator M120 stop M130 retract the actuator.
for this purpose, the M110 files etc. contain commands that activate specific LPT pins, e.g.
Code:
#!/bin/sh halcmd setp parport.1.pin-04-out True exit 0
I would like now that after pressing the safety switch, the actuator pins go into
Code:
parport.1.pin-04-out False
stayed anyway.
How to do it?
I was advised to estop_latch linuxcnc.org/docs/html/man/man9/estop_latch.9.html but I have no idea how to connect it.
Does anyone have any example of using this function in a similar way? or maybe write how it should look like in HAL for it to work?

Please Log in to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum