5-19
■ Repeat
Separate repeat settings can be made in CH1 and CH2 programs.
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 setting, 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
segment 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,
executed 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.
Chapter 5. FUNCTIONS
Segment
1
Segment
2
Segment
3
Segment
4
Segment
1
Segment
1
Segment
2
Segment
3
Segment
4
Segment
1
Segment
2
Segment
3
Segment
2
Segment
3
Segment
1
Segment
2
Segment
3
Segment
4
Example of a double
Example of a nest
Intersect example (1)
Intersect example (2)