Positioning spindles
To position spindles, the following must be programmed:
- M3/M4 for direction of movement,
- M19 for spindle positioning,
- S/REV for direction of rotation and
- S.POS/POS for target position
.
Programing Example
Position spindle
; Define realtime cycle
#RT CYCLE [...]
; external trigger condition
$IF ONCE V.E.TRIGGER == 1
; Command main spindle
M03 M19 S1000 S.POS314
; Command counter spindle
S2[M03 M19 REV=1000 POS=314]
$ENDIF
#RT CYCLE END
; ...
; End main program
M30