Jack Ensor wrote: > I am using the positive limit switch for homing. When the home move starts, > the > table moves toward the positive limit switch as it should, however it doesn't > stop when it reaches the switch. It tries to continue into the hard stop. (snip) > ### A sample home switch on the X axis (axis 0). make a signal, > ### link the incoming parport pin to the signal, then link the signal > ### to EMC's axis 0 home switch input pin > ### > newsig Xhome bit > linkps parport.1.pin-11-in => Xhome
This line links pin parport.1.pin-11-in to signal Xhome > linksp Xhome => axis.0.home-sw-in > ### > ### Separate limit switches on the X axis (axis 0) > ### > newsig X-neg-limit bit > linkps parport.1.pin-10-in => X-neg-limit > linksp X-neg-limit => axis.0.neg-lim-sw-in > > newsig X-pos-limit bit > linkps parport.1.pin-11-in => X-pos-limit This line UNLINKS pin parport.1.pin-11-in from signal Xhome, in order to link it to signal X-pos-limit You can't link one pin to two signals. > linksp X-pos-limit => axis.0.pos-lim-sw-in > > newsig Y-neg-limit bit > linkps parport.2.pin-11-in => Y-neg-limit > linksp Y-neg-limit => axis.1.neg-lim-sw-in > > newsig Y-pos-limit bit > linkps parport.2.pin-10-in => Y-pos-limit > linksp Y-pos-limit => axis.1.pos-lim-sw-in > > newsig Z-neg-limit bit > linkps parport.0.pin-11-in => Z-neg-limit > linksp Z-neg-limit => axis.2.neg-lim-sw-in > > newsig Z-pos-limit bit > linkps parport.0.pin-10-in => Z-pos-limit > linksp Z-pos-limit => axis.2.pos-lim-sw-in > > The limit switches work fine for the limit function. > > Using the hal meter and actuating (opening) the O (X axis) positive limit > switch, the hal meter shows the following responses: > > parport.1.pin-11-in changes from false to true > Xhome changes from false to true > axis.0.pos-lim-sw-in remains as false > > Since the signal Xhome is linked to the pin axis.0.pos-lim-sw-in, I would > expect > to see the pin to follow the signal, but it doesn't. > > Does anyone have any ideas as to what is going on here? Things aren't connected the way you think they are. While EMC is running, open a shell, and run "halcmd -kf" to get a HAL prompt. Then run these commands: show pin axis.0.home-sw-in show pin axis.0.pos-lim-sw-in show sig Xhome show sig X-pos-limit Those command will show you what is (or isn't) linked. You can also simply type "show pin" to get a list of all the pins and what signal each one is connected to (if any). Also, "show sig" will list all the signals and the pins they are connected to. The general approach when using one parport pin to drive multiple motion controller pins is to have the one pin drive a single signal which then connects to multiple pins. One pin cannot drive multiple signals, each of which drives a single pin. 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
