I have a special application for a EDM machine. I have to spin both my part and the spindle and I need a separate drive to run the part. I am hoping to use a servo motor with one of the programmable miscellaneous functions. One of the m codes would be spindle on all the time . One m code would be spindle off. One m code would be index 45°. Is this possible to do and what kind of drive would I need