Separating definition and activation
If the keyword DEF is not used, the realtime cycle is defined and started immediately when it is loaded to the realtime part of the controller.
Programing Example
Define and start realtime cycle
; Define and start realtime cycle
#RT CYCLE [SCOPE = PROG]
; …
#RT CYCLE END
; Realtime cycle is already active in this block
N10 G00 X100
The realtime cycle is defined by DEF but not started yet. In this case an ID must be specified. Activation may take later with #RT CYCLE START , see Managing realtime cycles.
Programing Example
Define realtime cycle only but do not start yet
; Define realtime cycle only but do not start
#RT CYCLE DEF [ID = 17 SCOPE = PROG]
; ...
#RT CYCLE END
; Start realtime cycle at any time
#RT CYCLE START [ID = 17]