Compiler Error C0046

Message: Identifier '<identifier name>' not defined.

Possible error cause: An identifier is used that is not declared.

Error correction: Declare the variables that you want to use.

Example of the error:

PROGRAM MAIN
VAR

END_VAR

i := 1;

Message:

Error correction:

VAR
    i : INT;
END_VAR