Skip to main content

Compiler Error C0211

Message: Variable declaration expected instead of <expression>

Possible error cause: Syntax error

Error correction: Make sure that the syntax is correct.

Example 435. Example of the error:
PROGRAM PLC_PRG
VAR
   VAR

   END_VAR
END_VAR

Message:

C0211: Variable declaration expected instead of VAR END_VAR