How to trigger a specific behavior when E-stop is pressed?
- Adam Maszynotwór
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 2
30 Aug 2023 13:57 #279376
by Adam Maszynotwór
How to trigger a specific behavior when E-stop is pressed? was created 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.I would like now that after pressing the safety switch, the actuator pins go intostayed 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?
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.
#!/bin/sh halcmd setp parport.1.pin-04-out True exit 0
parport.1.pin-04-out False
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 or Create an account to join the conversation.
Time to create page: 0.088 seconds