Tomo453
Lifetime Supporting Member
I have a non-contact laser encoder connected to a high speed counter. I have posted screen shots of the configuration and logic. The total counts work fine until the counter rolls over, and then I get trash values oscillating between negative and positive. The process is to measure length. It seems to be an overflow issue, but a DINT should be a large enough data type to hold the total count even if the counter rolls over multiple times in a run. I feel like this subject has been worked to death, but I am definitelly missing something. I do have the counter configured as a counter and not an encoder desiganation. I am using quadrature inputs A, A- and B, B-.
Last edited: