Spindle speed and direction for endless turning
Endless spindle turning can take place by simultaneously programming M3/M4 and
- the S word for main spindles
- the REV parameter for counter spindles
.
Programing Example

Endless turning
; Define realtime cycle
#RT CYCLE [...]
; external trigger condition
$IF ONCE V.E.TRIGGER == 1
; Command main spindle
M03 S1000
; Command counter spindle
S2[M03 REV=1000]
$ENDIF
#RT CYCLE END
; ...
; End main program
M30