Message: An 'FB_init'-Method of a functionblock or struct needs two inputs 'bInitRetains' and 'bInCopyCode' of type BOOL
Possible error cause: One or both of the inputs 'bInitRetains' and 'bInCopyCode' of type BOOL is missing.
Error correction: Define the missing inputs.
Example of the error:
PROGRAM PLC_PRG
VAR
inst : FB;
END_VAR
FUNCTION_BLOCK FB
METHOD FB_init
VAR_INPUT
END_VAR
--> C0119: An 'FB_init'-Method of a functionblock or struct needs two inputs 'bInitRetains' and 'bInCopyCode' of type BOOL
Error correction:
Example:
METHOD FB_init
VAR_INPUT
bInitRetains : BOOL;
bInCopyCode : BOOL;
END_VAR