Developer Portal Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    New IEC61131-3 Keywords / PLC compiler warning/info C0543

     

    English 🠦 Deutsch
    IEC61131-3 3rd Edition defines new keywords.
    Current compiler versions (e.g. ctrlX PLC 1.14.1 - based on CODESYS 3.5.17.33) report a warning or an information when these keywords are used e.g. as variable identifiers.
    C0543: The name '...' is a reserved keyword in the IEC61131-3 standard. An error will be reported in future version.
     
    The message is issued as a warning when a new keyword is found directly in the source code.
    The message is issued as information when a new keyword is found within a compiled library.
    Example :
    car2fe_0-1654579375187.png

    In the Nexeed Automation Framework, the keywords 'Class' and 'Char' are used extensively and are contained in many places in interfaces or method/function signatures and can therefore not be adapted to be backwards compatible.
     
    The new keywords are :
    • CHAR
    • WCHAR
    • ANY_DERIVED
    • ANY_ELEMENTARY
    • ANY_MAGNITUDE
    • ANY_SIGNED
    • ANY_DURATION
    • ANY_CHARS
    • ANY_CHAR
    • CHAR_TO
    • TO_CHAR
    • WCHAR_TO
    • TO_WCHAR
    • ATAN2
    • USING
    • CLASS

    CODESYS does not plan to introduce the new keywords (as of May 2022).
    Nevertheless, we recommend to avoid the above mentioned keywords for new projects or projects that are currently in progress.

    The warnings can be suppressed by either adjusting the corresponding option in the respective development environment or through the pragma
    {warning disable C0543}
    {warning restore C0543}
    There is currently no way of suppressing the information.

    Deutsch 🠦 English
    IEC61131-3 3rd Edition definiert neue Schlüsselworte.
    Aktuelle Compilerversionen (z.B. ctrlX PLC 1.14.1 - based on CODESYS 3.5.17.33) melden bei Verwendung dieser Schlüsselworte z.B als Variablenbezeichner die Warnung bzw. die Information.
    C0543: The name '...' is a reserved keyword in the IEC61131-3 standard. An error will be reported in future version.
     
    Die Meldung wird als Warnung ausgegeben, wenn ein neues Schlüsselwort direkt im Quellcode gefunden wird.
    Die Meldung wird als Information ausgegeben, wenn ein neues Schlüsselwort innerhalb einer kompilierten Bibliothek gefunden wird..
    Beispiel :
    car2fe_0-1654579375187.png

    Im Nexeed Automation Framework werden die Schlüsselworte 'Class' und 'Char' intensiv verwendet und sind an vielen Stellen in Interfaces oder Methoden- bzw. Funktionssignaturen enthalten und können daher nicht abwärtskompatibel angepasst werden.
     
    Die neuen Schlüsselworte sind :
    • CHAR
    • WCHAR
    • ANY_DERIVED
    • ANY_ELEMENTARY
    • ANY_MAGNITUDE
    • ANY_SIGNED
    • ANY_DURATION
    • ANY_CHARS
    • ANY_CHAR
    • CHAR_TO
    • TO_CHAR
    • WCHAR_TO
    • TO_WCHAR
    • ATAN2
    • USING
    • CLASS

    CODESYS plant nicht, die neuen Schlüsselworte einzuführen (Stand Mai 2022).
    Trotzdem empfehlen wir, bei neuen oder aktuell in Arbeit befindlichen Projekten die o.g. Schlüsselworte zu meiden.

    Die Warnungen können in der jeweiligen Entwicklungsumgebung in den Projekteinstellungen oder durch das Pragma
    {warning disable C0543}
    {warning restore C0543}
    unterdrückt werden.
    Bei den Information besteht derzeit keine Möglichkeit, diese zu unterdrücken.

    Version history
    Last update:
    ‎06-07-2022 08:16 AM
    Updated by:
    Contributors
    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist