VAR1.val="Otto"
END_SUB
//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:
Description:
Parameters:
Example
//M(SCREEN FORM1)
VAR1 = ...
VAR2 = ...
LOAD
...
LB("PROG1")
...
END_LOAD
CHANGE()
...
CALL("UP1")
...
END_CHANGE
...
//END
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
;
End of subprogram
;
Block end
("Identifier")
CALL
Subroutine call
Identifier
Name of subprogram
;
Load block
;
Call subroutine and execute
Programming
2.7 Functions
2-73