
Chapter
4
Reference Manual
IVC-2D
154
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Program
For
This tool performs a for loop. It repeats the execution of program steps between ‘For‘ and
‘End’. It initializes the loop index with the start value and repeats program steps until
Loop
index
is equal to or greater than
Stop value
. After each repetition the
Increment value
is
added to
Loop index
.
The repetition of program steps terminates if the
Loop index
is equal to or greater than the
Stop value.
Input Parameters
01 = Start value
Initialize start value for
Loop index
.
02 = Stop value
Set stop value for
Loop index
.
03 = Increment
Increment for
Loop index
.
04 = END step
Step number with corresponding
End
.
Returned Values
01 = Loop index
Current loop index.
Example
Input Parameters
Returned Values
Start value = 1
Stop value = 10
Increment = 4
Loop index = 1, 5, 9
Start value = 10
Stop value = -10
Increment = -3
Loop index = 10, 7, 4, 1, -2, -5, -8