Skip to main content

Command: Scan for Devices

Function: The command establishes a temporary connection to the controller with the active PROFINET Controller on it and determines the PROFINET devices (Device and Controller) in the network. Then you can apply the scanned devices into the device tree of your project.

Call: Project menu; context menu of a device object in the device tree

Requirement: The communication settings to the controller are set. An application with PROFINET Controller has initially been downloaded to the controller.

Tip

To also be able to read the module structure of the detected PROFINET Devices, an IP address and a station name has to be configured for this (see the Auto-IP function or Nominate in the Scan Devices dialog). To be displayed correctly, the GSDML of the device also has to be installed in CODESYS . In the I&M dialog, some devices are linked with the respective product page of the vendor. There you can find the GSDML.

The command refers to the PROFINET Controller selected in the device tree. For example, an already inserted PROFINET Controller can be selected and the command used to determine the I/O devices and I/O modules assigned to it.

After performing the scan operation, the Scan Devices dialog opens and displays the scanned devices.

Dialog: Scan Devices

Table 14. Scanned Devices

Device name, Device type, Address, Station name, etc.

Data about the scanned device depending on network type.

When you change a value in the list of scanned devices, the value is displayed in italics. This indicates that the new value has been changed in the editor in CODESYS, but not in the device. When you download the value to the device, it is displayed normally.

Values which indicate differences between the project and the scanned device are displayed in orange.

If multiple device descriptions are available for the scanned device, then the name is displayed in bold. The selection of the matching device description is resolved differently for different fieldbuses. For more detailed information, see the corresponding fieldbus chapters.

If a device description cannot be found, then the following message is shown: "Attention! The device was not found in the repository." Depending on the bus system, additional information is displayed, such as vendor number and product number. The device cannot be inserted into the project without the installed device description.

Show differences to project

standard icon: The table in the dialog also shows additional configured devices (in the device tree of the project).

_cds_icon_option_deactivated.png: The table shows all scanned devices. The configured devices are not shown.

Scan for Devices

Starts a new search.

Copy All Devices to Project

The device which is selected in the table is inserted into the device tree in the project. If nothing is selected, then all scanned devices are shown.



Important

If you use Copy All Devices to Project to insert devices, which are available in the device tree, to the device tree, then the following should be noted: The data of the Process Data and <...> I/O Mapping tabs of the existing devices may be overwritten with the data of the recently inserted devices.

Table 15. Configured Devices

This part of the dialog is visible only when you select the Show differences to project option.

Differences between the scanned and configured devices are color-coded. Devices displayed in green are identical on both sides. Devices displayed in red are available only in the view of the scanned or configured devices.

_cds_icon_scan_copy_before.png

If you have selected a device in both views, then the scanned devices are inserted above the selected configured device.

_cds_icon_scan_copy_below.png

If you have selected a device in both views, then the scanned devices are inserted below the selected configured device.

_cds_icon_scan_change_device.png

If you have selected a device in both views, then the configured devices are replaced by the selected scanned device.

_cds_icon_scan_copy_all.png

All scanned devices are copied to the project.

_cds_icon_scan_delete.png

Deletes the selected configured device.



Special settings for PROFINET

ID No.

. Display only when
  • IO Device and IO Controller are part of the same network

  • IP address and network mask of the IO Device are set

Station name

The station name and IP settings of the PROFINET Device are displayed here. When the fields have been edited and the inputs have been confirmed by Nominate or Auto-IP, the controller sends the new values to the PROFINETDevice.

IP address

Subnet mask

MAC address

I&M

Use this command for retrieving the I&M data (identification and maintenance) of the device. The data is displayed in the I&M data dialog.

Auto-IP

With this command, you automatically set a valid IP address within the network (network settings of the master) if the address scanned by the device is invalid.

<–

Use this command to assign the settings (Station name, IP address) from the configured device to the scanned device.

–>

Use this command to assign the settings (Station name, IP address) from the scanned device to the configured device.

Reset

Resets the device settings to default values.

Blink LED

In the Found Devices view, you can identify a device by its hardware by selecting the entry in the dialog and clicking Blink LED. The device should respond by flashing.

Nominate

|

CODESYS sets the station name and IP address that were specified for the selected slave (DCP set command).

Show only unnamed stations

standard icon: Only devices are listed that do not have an assigned station name.

Tip

Note the option of aligning the configuration settings of a PROFINET Device with the settings of the corresponding hardware device.

Dialog: I&M data

I&M version

Implemented version of the I&M functions

Vendor ID

ID of the manufacturer of the submodule

Order ID

Order number

Serial Number

Serial number of the submodule (unique production number)

Hardware Revision

Hardware version of the submodule

Software Revision

Software version of the submodule

Location

Location where the device is installed (for example, in a plant or production hall)

Function

Function or task of the submodule

Date

Day of installation or commissioning of the device or module

Format compliant with ISO 8601: YYYY-MM DD HH:MM

Description

Any individual information

Tip

For some devices, the parameters Function, Location, Date, and Description can be modified.