Turn of Digital output when E-stop is activated.
- sk_linuxcnc
 - Offline
 - Junior Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 35
 - Thank you received: 0
 
			
	
						09 Dec 2024 15:30		 -  09 Dec 2024 15:32		#316344
		by sk_linuxcnc
	
	
		
			
	
	
	
			 		
													
	
				Turn of Digital output when E-stop is activated. was created 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
			
					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
		Last edit: 09 Dec 2024 15:32  by sk_linuxcnc.		Reason: typo	
			Please Log in or Create an account to join the conversation.
- andypugh
 - 
				
											 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 19678
 - Thank you received: 4559
 
			
	
						15 Dec 2024 10:28				#316698
		by andypugh
	
	
		
			
	
			
			 		
													
	
				Replied by andypugh on topic Turn of Digital output when E-stop is activated.			
			
				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.
addsomewhere and it might start to work.			
					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-threadPlease Log in or Create an account to join the conversation.
		Time to create page: 0.098 seconds