Message: 'VAR_GLOBAL' declaration only allowed in Global variable list
Possible error cause: 'VAR_GLOBAL' is used outside of global variable lists.
Error correction: Use 'VAR_GLOBAL' in global variable lists only.
Example of the error:
PROGRAM PLC_PRG VAR_GLOBAL i : INT; END_VAR --> C0169: 'VAR_GLOBAL' declaration only allowed in Global variable list