Compiler Error C0149

Message: Variable declarations are not allowed in interfaces

Possible error cause: An attempt is made to define a variable in an interface.

Error correction: Do not define variables in interfaces.

Example of the error:

PROGRAM MAIN
VAR
    inst : ITF;
END_VAR

INTERFACE ITF
VAR_INPUT
    i : INT;
END_VAR

Message:

C0149: Variable declarations are not allowed in interfaces