SirMutt
unread,Aug 11, 2008, 5:10:07 PM8/11/08You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I'm trying to measure position (in tick counts, not angle). I set the Z index, counts per revolution, and initial position. If I have 400,000 counts in one revolution and Z index of 40,000 (since I'm using X4, I have to enter 10,000 which is odd), I can never get a position less than 40,000. Rather than rolling from 400,000 to 1 and starting to count up, it just keeps counting up until the next home pulse at which is then goes to 40,000. So, in this example, it goes from 440,000 to 40,000. Now, I could compensate for this with math, but it's more problematic when rotating counter clockwise because rather than going 3, 2, 1, 400000, it goes 3, 2, 1, 4294967296, 4294967295... It's a lot less pleasant having to deal with 2^32. Still could deal with it though.
Why doesn't the counter reset to 0 when rotating clockwise or 400,000 when rotating counter clockwise. I would expect the only valid range for data to be 0 to 400,000 and it would roll over when it reached one of those limits. But I can't make it work that way. Am I missing something?
Thanks.