Pictures and explanation are right there:
What I would ilke to do is, somehow, make sure that encoder counts are not missed due to some mistake of mine such as bad wiring, misalignment, etc. I would like to count the index pulses separately and compare index count with the angular position oft he spindle. They should always stay within "1" of each other, if no counts are missed.
I have not yet figured out how to do it.
i