Skip to main content

Compiler Error C0020

Message: '<statement>' is no valid statement

Possible error cause: Syntax error (for example, too few or too many characters)

Error correction: Make sure that the syntax is correct.

Example 325. Example of the error:
PROGRAM PLC_PRG
VAR
    x : INT;
END_VAR

x = 2;

Message:

C0020: '(x = 2); ' is no valid statement

Error correction:

x := 2;