John Thornton wrote: >[snip] > >>In the HAL file, I add a line: net probe parport.0.pin-12-in => >>motion.probe-input (or net probe parport.0.pin-12-in-not => >>motion.probe-input). >>Not sure which one I should use. >> >> >A switch will make the in-not True when closed and False when open >and the in will be False when closed and True when open. > > That's not necessarily true. Whether the switch is NC or NO makes no difference. It's whether the switch is normally pulled high, normally pulled low, or normally left floating (which is equivalent to pulled high in most cases). A +5V level on the parallel port pin will make the -in pin 1 and the -in-not pin 0, a 0V level on the parallel port pin will make -in 0 and -in-not 1. The driver knows that some of the pins are inverted in hardware, and inverts those before setting the state of the HAL pins.
(Not being pedantic here - I just don't want people to see this and assume that something is wrong with EMC2 because their input isn't working the way this describes) - Steve ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users