Wijngaarde, Ronald wrote: > Hello, > i just started using EMC2 and things are looking well. > I added some X and Y linit switches to the parallel port 0, pin 10 and 11. > The problem is that they are active low switches (gnd when pressed, 5V when > open). I can't seem to make EMC2 recognise this. > > I tried this: > > newsig Xlimits bit > setp parport.0.pin-10-invert TRUE > linkps parport.0.pin-10-in => Xlimits > linksp Xlimits => axis.0.neg-lim-sw-in > linksp Xlimits => axis.0.pos-lim-sw-in > > However, I get a "parameter or pin setp parport.0.pin-10-invert" not found > error. > > What can I do ? >
The -invert parameter applies to outputs. For inputs, there are two pins, -in, and -in-not. This should work: newsig Xlimits bit linkps parport.0.pin-10-in-not => Xlimits linksp Xlimits => axis.0.neg-lim-sw-in linksp Xlimits => axis.0.pos-lim-sw-in Regards, John Kasunich ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
