Tab ‘Communication Settings’

In this tab of the generic device editor, you define the connection between CODESYS and the device where your application should run.

Note

If you prefer the classic mode of display for the dialog, then select it in the CODESYS Options (Device Editor category).

You 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 dialogs (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:

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. It lists all configured gateways with the associated 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:

  • Add New Gateway: Opens the Gateway dialog for defining a new gateway channel.
  • Manage Gateways: Opens the Manage Gateways dialog with an overview of all gateways. You can add or delete entries here or change their order.
  • Configure the Local Gateway: Opens the Gateway Configuration dialog. You can configure the block drivers for the local gateway.
Device

This menu includes the following commands:

  • Add Current Device to Favorites: Adds the currently set device to the list of favorite devices.

  • Manage Favorite Devices: Opens the favorites dialog with a list of all preferred devices. In this dialog, you can add or delete entries or change their order. The top device is the default.

  • Rename Active Device: Opens the Change Device Name dialog.

  • Wink Current Device: Devices that support this function illuminate a flashing signal.

  • Send Echo Service: CODESYS sends five echo services to the PLC. These are used to test 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.

  • Store Communication Settings in Project:

    : CODESYS saves the communication settings in the project for reuse on the same computer.

    Note: If you use the project on another computer, then you have to reset the active path.

    : CODESYS saves the communication settings in the options of the local installation for reuse on the same computer.

    Note: When using CODESYS SVN, the option should be cleared in order to prevent blocking the device object.

  • Confirmed Online Mode:

    : CODESYS requires you to confirm the following when calling the following online commands (for safety purposes): Force values, Write values, Multiple loading, Remove force list, Single cycle, Start, Stop.

  • Filter Network Scans by Target ID:

    : The display is limited on the devices that have the same target ID as the current device configured in the project.

  • Encrypted Communication:

    : The communication to this controller is encrypted. A certificate of the controller is required in order to log in to the controller. If the certificate is not available, then an error message opens prompting whether or not the certificate should be displayed and installed.

    If the Enforce Encrypted Communication option is selected as Security level in the Security Screen view, then the Encrypted Communication command is disabled here.

  • Change Communication Policy

    Opens the Change Communication Policy dialog for changing the device setting for the encryption of communication.

Dialog Change Communication Policy
If a new communication policy is selected in this dialog, then the configuration on the controller is changed.
Communication
Current policy Shows the currently selected policy for the encryption of communication
New policy

Drop-down list for the new policy for encryption

  • No encryption: The controller does not support encrypted communication.
  • Optional encryption: The controller supports encrypted and unencrypted communication.
  • Enforced encryption: The controller supports encrypted communication only.
Device User Management
Current policy Shows the currently selected policy for user management
New policy

Drop-down list for the new policy for user management

  • Optional user management: It is the responsibility of the user to enable user management on the device or leave the device unprotected.
  • Enforced user management: The user management on the device is enabled and cannot be disabled by the user.

See also

Communication Settings - Classic Mode

In the CODESYS options, you can activate the classic mode of the dialog (Tools ‣ Options , 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.

View displaying configured gateway channels and network devices
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 (). Entries with a target ID that are different from those currently configured in the project are displayed in gray.

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:

  • Red: CODESYS Development System cannot establish the 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.

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.

When a gateway channel is selected in the left view, the following information is displayed: Device Name, IP-Address, Port, Driver

When a device is selected in the left view, the following information is displayed (depending of the device): Device name, Device address, Number of channels, Block driver, Serial number, Encrypted communication, Target vendor, Target ID, Target name, Target type, Target version.

Filter and sorting functions on the right side of the dialog
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.
Command buttons on the right side of the dialog
Set Active Path The 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 where you can define a gateway that CODESYS should add to the current configuration.
Add Device This command opens the Add Device dialog. Here you can manually define a device that is to be inserted under the gateway entry currently selected in the tree. Please note the functionality of Scan Network as well.
Scan Network The command starts a search for available devices in the local network. The configuration tree of the gateway is refreshed accordingly.
Commands in the context menu of the gateway tree and device tree in the dialog
Scan for Device by Address The 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 The 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 The 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 CODESYS sends five echo services to the PLC. These are used to test 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 for editing the settings for the selected gateway.
Configure the Local Gateway This command opens a dialog for configuring a local gateway. This provides an alternative to manually editing the Gateway.cfg file.
Options in the lower part of the dialog
Don’t store communication settings in project

: The current connection settings are saved to the local CODESYS options on your computer, not in the project. This means that you have to reset them if you use the project on another system.

: The settings are saved in the project and CODESYS Development System restores them automatically when you open the project on another computer.

Confirmed online mode : CODESYS requires you to confirm the following when calling the following online commands (for safety purposes): Force Values, Write Values, Multiple Loading, Release Forcelist, Single Cycle, Start, Stop.

See also