PROG validity
A realtime cycle with PROG validity acts for the duration of the active main program. It is deleted at the end of the main program (M30).
Programing Example
PROG validity
; Define and start realtime cycle
#RT CYCLE [SCOPE = PROG]
;...
#RT CYCLE END
; Realtime cycle starts action here
;...
M30
; Realtime cycle is deleted here