Skip to main content

Compiler Error C0122

Message: Expression 'SUPER' is not allowed in this context

Possible error cause: "SUPER^" is used outside of derived function blocks.

Error correction: Use "SUPER^" in function blocks only.

Example 388. Example of the error:
PROGRAM PLC_PRG
VAR
END_VAR

SUPER^.METH(TRUE, TRUE);

Message:

C0122: Expression 'SUPER' is not allowed in this context