Chapter 5. FUNCTIONS
■
Repeat
Repeat on/off and return destination are set by the segment with the segment number
and repeat count. Operation completes at the end of a segment. If there is a repeat set-
ting, the program returns to the start of the set destination segment and operation is
resumed from there. This operation is repeated the number of times specified by the
repeat count.
No repeat is performed when the destination segment number is larger than the current
segment number. When the program returns to the first segment, PV is not started even
if a PV start setting has been made.
HANDLING PRECAUTIONS
• When repeat operations involve multiple segments and the destination seg-
ment settings overlap, nest or intersect, the repeat operation will become an
abnormal eternal loop. Do not make such settings.
• When the current segment does not contain a set value or the value is 0, exe-
cuted values for program items (for example, set PV event values or set PID
group selection values) that are sequels to settings in a previous segment are
the same during the first run and the repeat run.
Intersect example 1
Intersect example 2
Segment
1
Segment
2
Segment
3
Segment
4
5-19