The standard way is to wire the switches in series using the n/c contact. So I assume you have some valid reason for wanting to do it with two inputs... like your machine is so huge you need to know which switch is in the stop condition.
What you need is to "or" the inputs using the or2 component if you use the N/O contacts. First you have to "load" an or2 in your hal file with: loadrt or2 Now when you look in your Show HAL Configuration screen under Pins you will see an or2 has been loaded. You will then see that your or2 has two inputs and one output. First you "connect the or2 out to the line where the single e-stop was connected (if you used stepconf wizard) it will be: net estop-ext <= parport.0.pin-10-in change to net estop-ext <= or2.0.out You need to connect the two inputs to your physical inputs with net. Lets say you used pin 10 and 11 of the parallel port to bring your signals in... then connect the pins to the or2 in's like so: net estop1 or2.0.in0 <== parport.0.pin-10-in net estop2 or2.0.in0 <== parport.0.pin-11-in This has not been tested but AFAIK it is correct... The other option which would be better is to use is the and2 component and the N/C contacts. It will be similar to the above... this should get you started and now I have to write an example for the manual... John On 2 Dec 2008 at 17:01, Jack Coats wrote: > e-stop would be manual switches. Not limit switches. > > Stuart Stevenson wrote: > > for the plus and minus limits? > > > > On Tue, Dec 2, 2008 at 3:10 PM, Len Shelton <[EMAIL PROTECTED]> > wrote: > > > >> How do I configure hal to handle two e-stop switches on two > different pins? > >> ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users