Message: Inheritance only allowed in Functionblocks, Interfaces and Structures
Possible error cause: An attempt is made to use inheritance in an object that does not permit inheritance.
Error correction: Use EXTENDS
in function blocks, interfaces, and structures only.
Example of the error:
PROGRAM PLC_PRG VAR inst : DUT_1; END_VAR TYPE DUT: ( enum_member := 0 ); END_TYPE TYPE DUT_1 EXTENDS DUT: ( enum_memberX := 0 ); END_TYPE --> C0144: Inheritance only allowed in Functionblocks, Interfaces and Structures