Skip to main content

Compiler Error C0065

Message: There is no global definition for '<name>'.

Possible error cause: The value searched for is not a global variable, global POU, or other value that can be accessed globally.

Error correction: Declare '<name>' as a global variable.

Example 354. Example of the error:
PROGRAM PLC_PRG
.someValue := 5;

Message:

C0065: There is no global definition for 'someValue'.

Error correction:

VAR_GLOBAL
    someValue : INT;
END_VAR