
Chapter
4
Reference Manual
IVC-2D
156
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Program
Subroutine Start
This tool defines the beginning of a subroutine and must be followed by the ‘End’ tool.
When the subroutine is called it executes all program steps between Subroutine and End.
A subroutine can be called by the following tools:
-
Goto
-
If then go to
-
If in range goto
-
If all in range goto
After the subroutine is executed the program continues at the step following the step
calling the subroutine.
Input Parameters
01 = END step
Step number of the ‘End‘ that belongs to the subroutine.
Returned Values
01 = Calling step
Step number which called the subroutine
Example
Step number Step tool
Execution order
1
Goto step 15
1
2
15
3
16
4
17
5
18
.
2
.
3
.
4
.
5
15 Subroutine
Start
.
16 Intermediate
steps
.
17 Intermediate
steps
.
18 End
step
.