Checking the pin status with if or M66 ?
- bladekel
 - Offline
 - Senior Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 63
 - Thank you received: 2
 
			
	
						16 Aug 2015 19:43		 -  16 Aug 2015 19:44		#61434
		by bladekel
	
	
		
			
	
	
			 		
													
	
				Checking the pin status with if or M66 ? was created by bladekel			
			
				Hi my friends
I need to learn how to use "if" by checking the parallel port's pin's status.
I am trying to write a line such as ;
If (parallel port pin 10 == true )
Codes here....
Endif
And i think this lines cannbe done by m66, but i couldnt.
I define pins 10 as p0 and i write ;
M66 P0 L3 Q5 to wait the high input for 5 secs.
After 5 seconds it continues the rests of the code. But i need not to continue.
Can anyone help me with this issue?
					I need to learn how to use "if" by checking the parallel port's pin's status.
I am trying to write a line such as ;
If (parallel port pin 10 == true )
Codes here....
Endif
And i think this lines cannbe done by m66, but i couldnt.
I define pins 10 as p0 and i write ;
M66 P0 L3 Q5 to wait the high input for 5 secs.
After 5 seconds it continues the rests of the code. But i need not to continue.
Can anyone help me with this issue?
		Last edit: 16 Aug 2015 19:44  by bladekel.			
			Please Log in or Create an account to join the conversation.
- ArcEye
 - Offline
 - Junior Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 22
 - Thank you received: 239
 
			
	
						16 Aug 2015 19:52				#61435
		by ArcEye
	
	
		
			
	
	
			 		
													
	
				Replied by ArcEye on topic Checking the pin status with if or M66 ?			
			
				If you search 'pin value gcode' in the left hand search bar, you will get these amoungst others
linuxcnc.org/index.php/english/forum/10-...ing-hal-pin-from-ngc
linuxcnc.org/index.php/english/forum/22-...a-to-g-code-variable
					linuxcnc.org/index.php/english/forum/10-...ing-hal-pin-from-ngc
linuxcnc.org/index.php/english/forum/22-...a-to-g-code-variable
		The following user(s) said Thank You: bladekel 	
			Please Log in or Create an account to join the conversation.
		Time to create page: 0.224 seconds