Skip to main content

Compiler Error C0168

Message: 'VAR_CONFIG' declaration only allowed in VAR_CONFIG list

Possible error cause: 'VAR_CONFIG' is used outside of a VAR_CONFIG list.

Error correction: Use 'VAR_CONFIG' only in VAR_CONFIG lists.

Example 408. Example of the error:
PROGRAM PLC_PRG
VAR_CONFIG
    i : INT;
END_VAR

Message:

Message: 'VAR_CONFIG' declaration only allowed in VAR_CONFIG list