Chapter 5. FUNCTIONS

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.

Segment

Segment

Segment

 

Segment

1

2

 

3

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

Segment

1

Segment Segment

2 3

Segment

Segment

Segment

1

2

3

 

 

 

Segment

4

Example of a double

Segment

 

Segment

Segment

Segment

1

2

3

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Example of a nest

Segment

Segment

Segment

1

2

 

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Intersect example (1)

Intersect example (2)

•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.

5-19

Page 65
Image 65
Honeywell DCP552 Mark II user manual Repeat, Handling Precautions