Does anyone have simple code or a macro to orient a spindle to a certain position. My axis has encoders and spindle index signals all working and Mach4 can see them. I can accurately control the spindle to 1rpm
I have Mach4 and ESS/MB3 if it helps
I would like it to do something like this:
Rotate spindle CW at 10rpm and when the index signal is high stop (effectively 0 degrees) then rotate spindle 90 degrees and stop and lock the spindle.