My Boxford TCL 125 has a ratchet type, stepper driven, 8 position turret. I used a simple G code subroutine to get it to index. Y axis was left as linear, (Mach doesn't care) and worked out the number of steps to get the 45 degrees. So the subroutine indexes the turret, say 50 degrees, then reverses the turret to stall the stepper against the ratchet (no problems the driver limits the current)
G code call is:-
M98 Ln P123 (Where n is the number of times I want to index and P123 is the subroutine.
Subroutine is:-
O123
G91 (Incremental distance mode)
G00 y-10 (Index more than 45 degrees)
G00 y2 (Back up to stall on ratchet)
G90 (Back to absolute distance mode)
M99 (Return from subroutine)
The Boxford turret has no means of telling Mach which tool it is using and because of the ratchet, it is strictly sequential.
It works for me!
Ian