Dear Community User! We are updating our platform to a new system.
Read more: Important information on the platform change.

CODESYS fieldbus add-on installation guide - teaser

CODESYS fieldbus add-on installation guide for ctrlX AUTOMATION

CodeShepherd
Community Moderator
Community Moderator
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 installerctrlX 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 installationAdd-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 packageAdd-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 dialogueAdd-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 conditionsAdd-On installer - accept licensing conditions
  6. Installation is carried out
    Add-On installer - installing packageAdd-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 installationAdd-On installer - complete installation

     

Check installed add-ons available

The installed packages are listed in the column “Installed”.

Add-On installer - check installed packagesAdd-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...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 devicectrlX PLC Engineering - Add Ethernet device
  3. The Ethernet node has been added to the Device tree
    ctrlX PLC Engineering - Ethernet device in project treectrlX 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 settingsctrlX 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 adaptersctrlX 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 devicectrlX 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
CodeShepherd
CodeShepherd
Technical sales support from Bosch Rexroth
Must Read
Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist