Hi guys. I wrote a programme for determining direction of movement of the quadrature encoder on 5V with TTL logic. Everything works perfect except when i spin the knob really really fast, then it gets a little confused. I'm using beckhoff EL1124 module for digital inputs. Ahy help or hint? i think the code is right and i also think that there may be something i dot know about speed of reading the inpust or something like that. i wrote 3-4 algorithms till now and they all have one single bug, when i spin it really fast. Any help please?