Following Andy's advice to use the or2 function in my hal files, I 
started messing around trying to get both switches to work.  Here's the 
original configuration for the Estop switch mounted on the control box:

net estop-ext  parport.0.pin-10-in  # Control Box Estop
net estop-out  iocontrol.0.user-enable-out
net estop-ext iocontrol.0.emc-enable-in

The Estop switch on the pendant uses pin 15 on parport 1.

Nota beni, both switches work by themselves, in other words, if I 
substitute parport.1.pin-15-in for parport.0.pin-10-in above, the 
pendant estop switch will work just fine.

Playing around with the or2, here's the code I was working with:

loadrt or2 count=1
addf or2.0 servo-thread


net estop-ext0 or2.0.in0 parport.0.pin-10-in  # Control Box Estop
net estop-ext1 or2.0.in1 parport.1.pin-15-in  # Pendant Estop
net estop-out <= iocontrol.0.user-enable-out
net estop-either iocontrol.0.emc-enable-in or2.0.out

On starting EMC2, with both the Estop switches out, the Estop button on 
the Axis display shows as normal. However, pressing either the control 
box or the pendant Estop switch does not activate the Estop, and the 
Estop button on Axis does not get "depressed."  opening up the Hal 
configuration tool, I can see the parport.0.pin-10-in and the 
parport.1.pin-15-in active, and the "LED" lit up.  Pressing either one 
of those two Estop switches shows their respective "LED" light go out, 
but the state of the iocontrol.0.emc-enable-in "LED" never changes.  Do 
I have a syntax error, or am I trying to accomplish something through 
the or2 the wrong way?

Thanks,
Mark

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to