Skip to main content

Compiler Error C0199

Message: Interface '<interface name>' must be instantiated to be accessed

Possible error cause: An attempt is made to access an interface method without the interface being instantiated.

Error correction: Instantiate the interface.

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

ITF.METH();

INTERFACE ITF

METHOD METH
VAR_INPUT
END_VAR

Message:

C0199: Interface 'ITF' must be instantiated to be accessed

Error correction:

Beispiel:
itest: ITF;