Kirk Wallace wrote: > As a 100 pulse per revolution encoder, what I have so far works well. > One problem is that in the .01" per pulse scale selected, the axis does > what is is told to do, which is move .01" at maximum velocity. If you > spin the mpg at moderate speeds, the .01" commands stack up, so you get > smooth movement. At slow mpg rates each, you get a fast stop - start > which can shake the whole machine. Has anyone else had this problem? > > Yes, of course! So, I talked to Jeff Epler (Hey, I spelled his last name right this time!) at the last fest, and he whipped up an integer low-pass filter HAL component for me. The code is in this file near the end http://pico-systems.com/codes/jebport/pendant.hal
The factors in the setp mux4.0..... lines set up the resolutions for a single MPG count. I have a 100 line/rev MPG, so it produces 400 quadrature counts/rev, or 4 per click of the dial. setp ilowpass.0..... set up the amount of smoothing, and the names of these parameters may not desribe their function properly. You can tweak them to get the best effect. Jon ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users