Turn of Digital output when E-stop is activated.

More
09 Dec 2024 15:30 - 09 Dec 2024 15:32 #316344 by sk_linuxcnc
I have pneumatic actuator controlled by one of the digital outputs. when my machine goes into estop or external estop swtich is pressed, the system stops, but the pneumatic actuator still remains on!

i tried using the and2 examples from one of the earlier threads, but it didnt help me (or atleast i wasnt able to make the and2 logic work)

net estopwa and2.0.in0 <= halui.machine.is-on
net estopwa and2.0.in1 <= motion.digital-out-00
net parport.0.pin-07-out <= and2.0.out

- Also, as the program is resumed after the estop, i want it to run from the same line.
I have this in my ini file.
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
GCodeContinueOnEstop = True

However, if the program resumes from the same spot, and we reach a solution to turn off the pneumatic actuator on an estop event, the pneumatic actuator would remain disengaged, i want it to re-engage on the resuming of program.

Looking forward to expert help :D
Attachments:
Last edit: 09 Dec 2024 15:32 by sk_linuxcnc. Reason: typo

Please Log in or Create an account to join the conversation.

More
15 Dec 2024 10:28 #316698 by andypugh
Sorry for the late reply.
I think that the problem is that you have never "addf"-ed the and2 function to a thread, so it never runs.

add
addf and2.0 servo-thread
somewhere and it might start to work.

Please Log in or Create an account to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum