On Saturday 25 November 2017 05:59:19 andy pugh wrote:
> On 25 November 2017 at 03:36, Gene Heskett <[email protected]>
wrote:
> > But sitting here thinking as I edit the hal file, (I can get into
> > all sorts of trouble doing that) the encoders position value is
> > determined by the existing scale factor I believe
>
> Do your gear ratio calcs based only on counts.
If index-enable is true, (it is) which ack the man page:
encoder.N.index-enable bit i/o
When true, counts and position are reset to zero on the
next rising edge of Phase-Z. At the same time, index-enable is reset to
zero to indicate that the rising edge has occurred.
Which because I want the total counts, I should use rawcounts which is
not reset? Thats what I have it coded for atm anyway, but I've not yet
added an updown for the Z counter. Working on that now.
Thanks Andy.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users