|
Topic: DMD0080 NEXT - Index by Step |
|
|
|
|
|
The Index by Step (NEXT) instruction marks the end of a For/Next loop.
|
|
|
Note: All of the looping instructions are 'power-rail' instructions. Even though the instructions are displayed in the left-most column of the ladder diagram (the power rail), they are created in the right-most column of the ladder logic diagram (the output column). Creating these instructions in Do-more Designer is a bit counter-intuitive because the first step is to position the edit cursor in the output column of the ladder logic diagram (the far right) instead of positioning it against the power rail (the far left).
|
|
Parameters:There are no parameters for this instruction.
|
|
|
|
|
Status Display:The NEXT instruction will show the current .TimeSlice value of the Program or Task when status is ON.
The
|
|
|
|
|
See Also:
|
|
|
|
|
Rung Example:The following simple example uses V100 as the loop index. It will be initialized to 4000 (From) on the first pass through the loop, and will increment by 1 (By Step) on each successive pass until it gets to 4009 (To).
|
|
|
|
|