Skip to main content

Element: Property

A property is used to extend a class (program or function block) or an interface by a property.

User input

Action

Description

  1. In the ToolBox view, select the Property_uml_icon_add_property.png element.

  2. In the editor, click a suitable element.

    The Add Property dialog opens.

  3. Specify a name for the property and configure the settings.

  4. Click Add to exit the dialog.

The cursor is displayed as a _uml_cursor_not_allowed.png prohibition symbol at locations that are not permitted.

The cursor is a _uml_cursor_allowed.png blue cross at permitted locations.

When you close the dialog, CODESYS adds this property to the object and displays it in the class diagram and in the Devices view or POUs view.

In the class diagram, each access modifier of the property is indicated by the corresponding icon:

  • PUBLIC: +

  • PRIVATE: -

  • PROTECTED: #

  • INTERNAL: ~