AND2 not working
23 Apr 2015 16:31 #58035
by ww34ww34
AND2 not working was created by ww34ww34
Hi all.
I'm experiencing issues with and2 hal component.
I use it to enable/disable limit switch.
But only my firt and2 component of five array component work.
Anyone can help me?
Here i append my hal code
Regards Salvatore.
I'm experiencing issues with and2 hal component.
I use it to enable/disable limit switch.
But only my firt and2 component of five array component work.
Anyone can help me?
Here i append my hal code
loadrt and2 count=5
#net max-home-z <= parport.0.pin-10-in-not
net estop-ext <= parport.0.pin-11-in-not
#net min-home-y <= parport.0.pin-12-in-not
#net min-home-x <= parport.0.pin-13-in-not
#net min-home-a <= parport.0.pin-15-in
net en_homex_0 and2.0.in0 <= parport.0.pin-13-in-not
#net en_homex_1 and2.0.in1 <= # This pin is set in GUI button "unlock X"
#enable this pin by DEFAULT
setp and2.0.in1 TRUE
net min-home-x <= and2.0.out
net en_homey_0 and2.1.in0 <= parport.0.pin-12-in-not
#net en_homey_1 and2.1.in1 <= # This pin is set in GUI button "unlock Y"
#enable this pin by DEFAULT
setp and2.1.in1 TRUE
net min-home-y <= and2.1.out
net en_homez_0 and2.2.in0 <= parport.0.pin-10-in-not
#net en_homez_1 and2.2.in1 <= # This pin is set in GUI button "unlock Z"
#enable this pin by DEFAULT
setp and2.2.in1 TRUE
net min-home-z <= and2.2.out
net en_homea_0 and2.3.in0 <= parport.0.pin-15-in-not
#net en_homea_1 and2.3.in1 <= # This pin is set in GUI button "unlock A"
#enable this pin by DEFAULT
setp and2.3.in1 TRUE
net min-home-a <= and2.3.out
#net en_estop_ext_0 and2.4.in0 <= parport.0.pin-11-in-not
#net en_homea_1 and2.4.in1 <= # This pin is set in GUI button "unlock ESTOP"
#enable this pin by DEFAULT
#setp and2.4.in1 TRUE
#net estop-ext <= and2.4.out
[attachment=5176]Screenshotfrom2015-04-23112652.png[/attachment]
Regards Salvatore.
Please Log in or Create an account to join the conversation.
23 Apr 2015 19:11 #58044
by andypugh
This probably means that your HAL file contains the linebut notetc
Replied by andypugh on topic AND2 not working
But only my firt and2 component of five array component work..
This probably means that your HAL file contains the line
addf and2.0 servo-thread
addf and2.1 servo-thread
Please Log in or Create an account to join the conversation.
Time to create page: 0.070 seconds