So I built an ISA expansion card with a LS7566 IC quadrature endcoder counter. My MILL has rotary encoders on the ends of the motors.
I made my own software to read the counter IC and convert the counts into inches.
The X and the Y axis are accurate, and function 100%. But the Z axis is only accurate in one direction, but in the other direction the count seems to be double.
I connected the Z encoder to the X or Y inputs on my PC board, with the same results. And connected the X encoder to the Z on the PC board, and it worked 100%. This should eliminate a defect on the Z wiring on my board or a typo in the programming being the problem.
I took the cover off the encoder and ensured 100% that I am using the correct wires.
The encoder has +5, -common, M+, M-, A+, A-, B+, B-. I am using A, B and common.
I'm suspecting that I blew something inside the encoder a while ago when I was trying to get them to work with a different setup. Is this a common failure mode? When I open up the encoder what should I be looking for?
Thanks