Compiler Error C0212

Message

VAR, VAR_INPUT, VAR_OUTPUT or VAR_INOUT expected instead of <expression>

Message Cause

Syntax error

Solution

Make sure that the syntax is correct.

Error Example

PROGRAM PLC_PRG

i : INT;

--> C0212: VAR, VAR_INPUT, VAR_OUTPUT or VAR_INOUT expected instead of i : INT;