Skip to main content

Compiler Error C0096

Message: Only one base function block may be defined in EXTENDS-list.

Possible error cause: Two or more base function blocks are defined in the EXTENDS list.

Error correction: Define only one base function block in the EXTENDS list.

Example 376. Example of the error:
PROGRAM PLC_PRG
VAR
    fb : FB;
END_VAR

FUNCTION_BLOCK FB EXTENDS FB2, FB3
VAR
END_VAR

FUNCTION_BLOCK FB2
VAR
END_VAR

FUNCTION_BLOCK FB3
VAR
END_VAR

Message:

C0096: Only one base function block may be defined in EXTENDS list.