DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-176
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
A aaa
FOR
NEXT
Operand Data Type
DL06 Range
aaa
V-memory
V
See memory map
Constant
K
1-9999
DS
Used
HPP Used
For / Next (FOR) (NEXT)
The For and Next instructions are used to execute a section of ladder
logic between the For and Next instruction a specified numbers of times.
When the For instruction is enabled, the program will loop the specified
number of times. If the For instruction is not energized, the section of
ladder logic between the For and Next instructions is not executed.
For / Next instructions cannot be nested. The normal I/O update and
CPU housekeeping are suspended while executing the For / Next loop.
The program scan can increase significantly, depending on the amount
of times the logic between the For and Next instruction is executed. With
the exception of immediate I/O instructions, I/O will not be updated
until the program execution is completed for that scan. Depending on
the length of time required to complete the program execution, it may be
necessary to reset the watch dog timer inside of the For / Next loop using
the RSTWT instruction.