I have servo motor for spindle on my new machine.
It is speed controlled, not positionally. Driver has an option for encoder output. I use it for synchronization.
I will have more info about how I did it in future weeks when I get more used to machine.