Instances of function blocks and classes are not allowed to be passed as parameters of that type via:
VAR_INPUTVAR_OUTPUT
FUNCTION_BLOCK Valve
VAR
closed : BOOL;
END_VAR
;
END_FUNCTION_BLOCK
FUNCTION_BLOCK ValveController
VAR_INPUT
valve1 : Valve;
END_VAR
VAR_OUTPUT
valve2 : Valve;
END_VAR
;
END_FUNCTION_BLOCK
Using the above example will result in an error when trying to convert the library to a TIA Portal library.
Note
Multi-instances in the VAR section of function blocks and classes are supported.
Arrays of function blocks or classes are not supported at all.