On 25 November 2014 at 16:11, Leonardo Marsaglia <[email protected]> wrote: > Having a 1024 PPR encoder is not that bad, I guess I can scale it using HAL > (is that right?) and that would give a pretty accurate variation for > cutting the lobes.
Yes, if you set the encoder scale to 2.8444444444444444444444444444444 (1024/360) the encoder will read out directly in degrees. (it might need to be 4x higher if the 1024 is slots not edges) It isn't 100% ideal as there is scope for rounding errors after many thousands of turns, as 1024/360 doesn't quite go. If you put in a large number of decimal places it will take a long time to be wrong, though. Double-precison is good to about 15 significant figures, so you might expect to see the angle drifting after a few trillion revolutions, which probably doesn't matter. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
