Skip to main content

Compiler Error C0543

Message: The name <keyword> is a reserved keyword in the IEC 1131-3 standard. An error will be issued in future versions.

Possible error cause: A reserved keyword was assigned as the name of a variable.

Error correction: Rename the variable.

Example 491. Example of the error:
PROGRAM PLC_PRG
VAR
    char : BYTE;
END_VAR

Message:

C0543: The name 'char' is a reserved keyword in the IEC 1131-3 standard. An error will be issued in future versions.



Note: For violations in compiled libraries, only a text message (information) will be issued instead of a warning.

The following keywords are reserved:

  • CHAR

  • WCHAR

  • ANY_DERIVED

  • ANY_ELEMENTARY

  • ANY_MAGNITUDE

  • ANY_SIGNED

  • ANY_DURATION

  • ANY_CHARS

  • ANY_CHARS

  • CHAR_TO

  • TO_CHAR

  • WCHAR_TO

  • TO_WCHAR

  • ATAN2

  • USING

  • CLASS