Al,
When you get something working, I'd like to try it for gear hobbing. Electrically, hobbing is just like threading but the threads are EXTREMELY long. The fourth axis needs to turn in relation to the mill spindle.
I have a mill with a Galil 17X0 card, encoder on spindle, and fourth axis.
Will you be using a Galil input tied to the index mark?
Karl