Skip to main content

Compiler Error C0139

Message: The code <code> has no effect. Is this the intent?

Possible error cause: The written code is syntactically correct but does not do anything.

Error correction: Write code that has a purpose.

Example 396. Example of the error:
PROGRAM PLC_PRG
VAR
    i : INT;
END_VAR

i;

Message:

C0139: The code 'i' has no effect. Is this the intent?