Skip to main content

Command: Add Device

Function: The command opens the Add Device dialog for selecting a device object to be inserted into the device tree below the selected object.

Call: Context menu of a device object in the device tree

Requirement: An object is selected in the device tree below which a device object can be inserted.

Dialog: Add Device

Function: Depending on the selected location in the device tree, the dialog provides a selection of the devices which can be inserted at this location. In addition, it contains the commands which are also available in the context menu: Append Device, Insert Device, Plug Device, Update Device.

Requirement: The devices are installed in the device repository on the local system.

Tip

When you open the dialog, it always shows the selection which is suitable for the selected object in the device tree until you click the Close button.

Name

Name with which the device should be displayed in the device tree

Has to be a valid IEC identifier

Table 88. Action

Append device

CODESYS inserts the selected device below the selected object in the device tree.

Insert device

CODESYS inserts the selected device at the same level as the selected object below it in the device tree.

Plug device

CODESYS inserts the selected device in the selected slot. If the slot is already occupied, then the existing module is replaced by the new module.

Update device

CODESYS replaces the device selected in the device tree by the selected device.

Note: Depending on the device, this may overwrite the existing configuration in the device editor with the default values.



String for a full text search

This field is editable when you click into it. As you type in a string, only those devices are displayed which include the string. The matched string is highlighted in yellow for these devices.

Vendor

List box with vendors whose available devices are displayed

Group by category

_cds_icon_checked.png: The available devices (newest version) are sorted by category. The category is defined in the device description file.

_cds_icon_option_deactivated.png: The available devices alphabetically sorted in a flat structure.

Display all versions (for experts only)

_cds_icon_checked.png: In addition, all other available versions of the devices can also be selected.

_cds_icon_option_deactivated.png: Only the newest version of each device is available for selection.

Display outdated versions

_cds_icon_checked.png: In addition, outdated versions of the devices can also be selected. For example, outdated versions result from updated plug-ins.

_cds_icon_option_deactivated.png: Outdated device versions are not displayed.

The information provided by the device description file is displayed: device name, vendor, categories, version, order number, description, and a device-specific bitmap.

For more information, see: Insert Device and Plug Device