Compiler Error C0119
Message: An 'FB_init'-Method of a function block 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 391. Example of the error:
PROGRAM PLC_PRG
VAR
inst : FB;
END_VAR
FUNCTION_BLOCK FB
METHOD FB_init
VAR_INPUT
END_VAR
Message:
C0119: An 'FB_init'-Method of a function block or struct needs two inputs 'bInitRetains' and 'bInCopyCode' of type BOOL
Error correction:
METHOD FB_init
VAR_INPUT
bInitRetains : BOOL;
bInCopyCode : BOOL;
END_VAR