Skip to main content

Compiler Error C0007

Meldung: Expression expected instead of '<token>'

Possible error cause: Syntax error

Error correction: Use the correct syntax.

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

IF THEN
    x := 9;
END_IF

Message:

C0007: Expression expected instead of 'THEN'