Tab ‘Communication’¶
In this tab of the generic device editor, you define the connection path between CODESYS and the device where your application should run.
Note
If you prefer the classic form of display for the dialog box, you can activate it in the CODESYSOptions (category Device editor.
You can select a gateway and a target device from the list boxes. The possible selections depend on the entries in the Manage gateways and Manage favorite devices dialog boxes (see the Gateway menu).
You can also type in select the target device directly with the IP address (example: “192.168.101.109”), device address (example: “[056D]”), or device name (example: “MyDevice”). After the device is entered successfully, CODESYS searches for the device in the network of the gateway.
Note
The option of searching by device name requires unique device names in the network.
The filled circle on the lower right corner of the gateway symbol provides information about the connection status:
- Red: CODESYS cannot establish a connection.
- Green: The connection is established.
- Black: The connection status is unknown.
Note
Some communication protocols allow regular checking of the gateway so that the status cannot be displayed.
Clicking the filled circle of the target device starts a network scan for the device. This works only if the network is not already being scanned.
Scan network | This button opens the Select Device dialog box with a list of all configured gateways and their connected devices. You can select one target device from this list. Refer to the description of the classic view below for details about this dialog. |
Gateway | This menu includes the following commands:
|
Device | This menu includes the following commands:
|
See also
- Dialog Box ‘Options’ - ‘Device editor’
- Generic Device Editor
- Command ‘Add Gateway’
- Command ‘Configure the local gateway’
Communication Settings - Classic View
In the CODESYS options, you can activate the classic view of the dialog (
, category “Device editor”).Select the network path to the controller | Gateway channel for the connection. Select the channel from the lower part of the view. |
Left side of view | Tree structure of the configured gateway channels with the connected devices in the local network:
Note: CODESYS saves these entries on the local system, not in the project. The device entries are preceded by a device symbol ( Clicking Scan network refreshes the list. Note: If you created the first project on the local system, then the local gateway is listed as an entry in the tree by default. CODESYS starts this gateway automatically on system boot. The filled circle on the lower right corner of the gateway symbol provides information about the connection status:
Each of the device entries in the tree consist of a symbol followed by the Device Name> [Device Address]. On the right side of the view, you also see the Target ID, Target Name, Target Type, Target Vendor, and Target Version. |
Right side of view | Information about the gateway channel of device selected on the left side of the view. |
Filter: | You can reduce the displayed list of devices that have the same Target ID as the current device configured in the project. |
Sorting order: | You can sort the list by Name or Device Address in alphabetical or ascending order. |
Set active path | This command sets the selected communications channel as active. Double-clicking the entry in the channel tree achieves the same result. |
Add gateway | This command opens the Gateway dialog box where you can define a gateway that CODESYS should add to the current configuration. |
Add device | This command opens the Add device dialog box where you can define a device manually to be added to the tree below the selected gateway. Please note the functionality of Scan network as well. |
Scan network | This command starts a search for available devices in the local network. The configuration tree of the gateway is refreshed accordingly. |
Scan for device by address | This command searches the network for devices with a unique address as given in the configuration tree. CODESYS displays the detected devices with the given address below the gateway. The search always applies to the devices below the selected gateway or below the selected entry. |
Scan for device by name | This command searches the network for devices with the same name as given in the configuration tree. Capitalization is ignored here. CODESYS displays the detected devices below the gateway with the given name together with its unique device address. The search always applies to the devices below the selected gateway or below the selected entry. |
Scan for device by IP address | This command searches the network for devices with a unique IP address as given in the configuration tree. CODESYS displays the detected devices with the given address below the gateway together with its name. The search always applies to the devices below the selected gateway or below the selected entry. |
Send echo service | Send echo service: CODESYS sends five echo services to the PLC. These are used for testing the network connection, similar to the ping function. The services are sent first without data packets and then with data packets. The scope of the data packets depends on the communication buffer of the PLC. A message box opens with information about the average echo service delay and the scope of the sent data packets. |
Delete selected device | This command deletes the selected device from the channel tree. |
Edit Gateway | This command opens the Gateway dialog box for editing the settings for the selected gateway. |
Configure the local gateway | This command opens a dialog box for configuring a local gateway. This provides an alternative to manually editing the Gateway.cfg file. |
Don’t store communication settings in project |
|
Confirmed online mode | ![]() |
See also