After looking at pluto lathe and nist lathe configurations, I came up with the following to add to the end of my m5i20 motion.hal file:
newsig spindle-index-enable bit linkps motion.spindle-index-enable <=> spindle-index-enable linksp spindle-index-enable <=> m5i20.0.enc-3-index newsig spindle-pos float linkps m5i20.0.enc-3-position => spindle-pos linksp spindle-pos => motion.spindle-revs setp m5i20.0.enc-3-scale <counts per rev> I got an error about an index enable not found or something like that. I then noticed the X,Y, and Z indexes commented out in the sample configuration. # Connect index pulses to motion controller. # This has been commented out pending changes to the # driver to work with the canonical encoder interface #newsig Xindex bit #newsig Yindex bit #newsig Zindex bit #linksp Xindex <= m5i20.0.enc-00-index #linksp Xindex => axis.0.index-enable #linksp Yindex <= m5i20.0.enc-01-index #linksp Yindex => axis.1.index-enable #linksp Zindex <= m5i20.0.enc-02-index #linksp Zindex => axis.2.index-enable Is there a problem in what I added or is something wrong with the driver? Roger Neal ------------------------------------------------------------------------- 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
