6.6 Function and Function Block
Example: Invoking the function from ST program
● Additional outputs can be defined for the function. Declare an additional output as variable
"VAR_OUTPUT" in the declaration section of the POU object that defines the function.
Example: Definition of function "ADD_SUB" to which variable iOut that outputs
the sum of three input variables is added
Invoking function "ADD_SUB" from LD program
Invoking function "ADD_SUB" from ST program
WUME-GM1RTXOP-01
6-35