Compiler Error C0145
Message: Interfaces can only be implemented by function blocks
Possible error cause: An attempt is made to implement an interface outside of a function block.
Error correction: Implement interfaces only in function blocks.
Example of the error:
PROGRAM MAIN
VAR
END_VAR
POU();
FUNCTION POU IMPLEMENTS ITF
VAR
END_VARMessage:
C0145: Interfaces can only be implemented by function blocks