On 19 September 2014 01:29, <[email protected]> wrote: > More fiddling and it appears the encoder is 2000 CPR.
2000 is quite likely, as is 2048, you could try 10 turns to be sure. > I seem to recall there was a parameter somewhere for an analog output offset > that I could perhaps use The first thing to try would be to see if you can get it close by changing the OUTPUT_SCALE in the INI. Closed-loop is very much an option, I noticed that PNCConf has actually created a pid.s component, presumably with this in mind. divert the spindle-speed-rpm-abs signal to pid.s.command, then net pid.s.out to 5i25.....spinout and encoder.0.velocity to pid.s.feedback. You will probably find that the best pid scaling is an FF0 of 1, Pgain 0, Igain 0.05 (or some other small value) and Dgain 0. You may actually need to use the spindle-command-rps-abs pin to drive the pid if the encoder output is in rps. In that case an FF0 of 60 might be appropriate, or set the OUTPUT_SCALE to rps instead -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
