11/07/2024

CODESYS fieldbus add-on installation guide for ctrlX AUTOMATION

Introduction

This how-to shows how to install and useĀ CODESYS fieldbus communication add-ons in a ctrlX PLC Engineering version 2.6. For example EtherNet/IP or Profinet.

Preparation

Bosch Rexroth provides CODESYS fieldbus communication drivers for several fieldbuses.
These drivers are provided by zip files and contain all the relevant add-ons (packages) to run the fieldbus drivers on a ctrlX CORE.

  1. Unzip the file to your Engineering PCs file system.
  2. Start ctrlX PLC Engineering and select menu item "Tools -> Add-on Installer".
    ctrlX PLC Engineering - open add-on installer
  3. Close ctrlX PLC Engineering before you proceed, if not done you will get told to do so.

Installation of the relevant add-ons

Beware that in version 1.20 of ctrlX PLC Engineering the following dialogues are only available in GermanĀ language.

  1. Press button ā€œInstall Files(s)ā€ to open the selection of the add-ons to install.Ā 

    Add-On Installer - start installation

    Ā 

  2. Depending on the fieldbus to install select the correspondingĀ package in the file browser and double click or press button ā€œOpenā€.
    Add-On installer - choose package
  3. A hint is shown regarding installing packages, that shows some informationĀ about the packages to install. Confirm this dialogue with ā€œOKā€.
    Add-On installer - confirmation dialogue
  4. An information is shown that refers to loading the packages to be installed.
  5. Read the licensing conditions and accept them by checking the corresponding box and click "Continue".
    Add-On installer - accept licensing conditions
  6. Installation is carried out
    Add-On installer - installing package
  7. As soon as the installation has been completed, the following message is shown.Ā Press ā€œOKā€ to complete the installation.
    Add-On installer - complete installation

    Ā 

Check installed add-ons available

The installed packages are listed in the column ā€œInstalledā€.

Add-On installer - check installed packages

Licensing of add-on packages

Licenses for CODESYS fieldbus add-ons can be purchased and installed like any other app license available. SeeĀ CODESYS - Fieldbus Communication in our ctrlX Store area.

For further instructions see ourĀ how tos in our collection covering licensing topics.

Running CODESYS fieldbus drivers on ctrlX OS devices

After successful installation the packages are listed in the Package Manager dialogue provided by ctrlX PLC Engineering. To use the drivers with the application the following steps have to be done.

  1. Click on the device node (e.g. Device (ctrlX CORE)) in the Devices view and press the right mouse button to open the corresponding menu. ExecuteĀ the command "Add Deviceā€¦"
    ctrlX PLC Engineering - Add device...
  2. Select the Ethernet-Device provided by the node Fieldbuses ā€“> Ether-net Adapter and press button "Add Device"
    ctrlX PLC Engineering - Add Ethernet device
  3. The Ethernet node has been added to the Device tree
    ctrlX PLC Engineering - Ethernet device in project tree
  4. Double click on the entry andĀ open the Browse button on the tab "General". Beware that for reading out the adapter data an online connection to a ctrlX OS is needed. Otherwise an communication error is shown.
    ctrlX PLC Engineering - Ethernet device general settings
  5. The available network adapters on ctrlX CORE are shown afterwards. Select the network adapter for the fieldbus communication and confirm by pressing button OK.
    ctrlX PLC Engineering - Ethernet device browse network adapters

    Be aware if you select XF10 and the check box Adjust operating system settings is enabled the network adapter is reconfigured after login. This changes the general device communication settings!! It is recommended to create multiple IP addresses on ctrlX CORE directly and re-fer to them. PROFINET Device should not be configured on eth0, because the IP address may be changed by the connected PROFINET controller!

    Ā 

  6. Mark the Ethernet node and execute the "Add Deviceā€¦" command by right mouse click and choose the desired fieldbus driver and confirm your selection by pressing button "Add Device"
    ctrlX PLC Engineering - Ethernet device - add device
  7. The functionality of a CODESYS fieldbus driver is implemented using two automatically generated IEC tasks. One task handles the cyclic IO data exchange, the other the acyclic communication (services). The functionality can be derived from the respective task name. Due to different priority ranges of a native CODESYS system compared to a ctrlX OS system, the default task priorities of these tasks must be adapted manually. In any case the IO task priority must be higher (e.g. 30) Ā than the priority of the service task (eg. 39).

  8. Log in to the ctrlX Device to run the fieldbus driver. This is necessary to identify the available network adapter and to enable the scan mechanisms (if supported) for the specific fieldbus driver.

  9. Now the fieldbus is ready for configuration of IO data. This can be done by the context menu of the Device node. Use command "Add De-viceā€¦" for adding IO modules. For further Help refer to the help of ctrlX PLC Engineering.

Related information

Latest published/updated articles

Types
How-to
Categories
Controls