Now that I've been thinking about it you should be able to test the engagement at different speeds just by running the routine and letting the spindle motor stop.
Then rotate the spindle motor by hand until the Z reaches a certain number.
Repeat and see how far the spindle count is off when you reach the same Z.
I was thinking about hooking the index from the spindle to the latches for the spindle and Z encoder. Since the latches are done in hardware their timing should be constant and they should not care about sample times.
Then you could compare the latched values to determine if any correction was needed.
Bob
__________________ You can always spot the pioneers -- They're the ones with the arrows in their backs. |