On 15 February 2010 06:51, Rudy du Preez <[email protected]> wrote: > I have only one pulse per rev feedback from the spindle, so the encoder > component is set up using only Phase A as input. Index is not used. My speed > feedback converted to rpm is correct.
You need an index input, as EMC doesn't start a threading pass until it sees an index. Looking at http://www.linuxcnc.org/docview/html/examples_spindle.html (the last section) I think you need at least the following lines added to your HAL loadrt encoder num_chan=1 addf encoder.update-counters base-thread addf encoder.capture-position servo-thread setp encoder.0.position-scale 1 net spindle-position encoder.0.position-interpolated => motion.spindle-revs net spindle-velocity encoder.0.velocity => motion.spindle-speed-in net spindle-index-enable encoder.0.index-enable <=> motion.spindle-index-enable net spindle-pulse-and-index parport.0.pin-11-in => encoder.0.phase-A encoder.0.phase-Z ;set to correct pin. -- atp ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
