Skip to main content

Compiler Warning C0565

Message: An 'FB_Exit'-Method of a function block or struct needs an input 'bInCopyCode' of type BOOL.

Possible cause: The input bInCopyCode of type BOOL is missing.

Correction: Define the input.

Example 498. Example of the warning:
PROGRAM PLC_PRG
VAR
    inst : FB;
END_VAR


FUNCTION_BLOCK FB
METHOD FB_exit
VAR_INPUT
END_VAR

Message:

C0565: An 'FB_Exit'-Method of a function block or struct needs an input 'bInCopyCode' of type BOOL.

Correction:

METHOD FB_exit
VAR_INPUT
    bInCopyCode : BOOL;
END_VAR