Skip to main content

Compiler Error C0006

Message: '<operator>' expected instead of '<token>'

Possible error cause: Syntax error

Error correction: Use the correct syntax.

Example 316. Example of the error:
PROGRAM PLC_PRG
VAR
    x: INT;
    bTest : BOOL;
END_VAR

IF bTest
    x := 9;
END_IF

Message:

C0006: 'THEN' expected instead of 'x'