Programming
2.7 Functions
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2-73
VAR1.val="Otto"
END_SUB ; End of subprogram
//END ; Block end
2.7.3 Subprogram call (CALL)
Description
The CALL function can be used to call a loaded subprogram from any point in a method.
Subprogram nesting is supported, i.e., you can call a subprogram from another subprogram.
Programming
Syntax: CALL
("Identifier")
Description: Subroutine call
Parameters: Identifier Name of subprogram
Example
//M(SCREEN FORM1)
VAR1 = ...
VAR2 = ...
LOAD
...
LB("PROG1") ; Load block
...
END_LOAD
CHANGE()
...
CALL("UP1") ; Call subroutine and execute
...
END_CHANGE
...
//END