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.
- Unzip the file to your Engineering PCs file system.
- Start ctrlX PLC Engineering and select menu item "Tools -> Add-on Installer".
- 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.
- Press button āInstall Files(s)ā to open the selection of the add-ons to install.Ā
Ā
- Depending on the fieldbus to install select the correspondingĀ package in the file browser and double click or press button āOpenā.
- A hint is shown regarding installing packages, that shows some informationĀ about the packages to install. Confirm this dialogue with āOKā.
- An information is shown that refers to loading the packages to be installed.
- Read the licensing conditions and accept them by checking the corresponding box and click "Continue".
- Installation is carried out
- As soon as the installation has been completed, the following message is shown.Ā Press āOKā to complete the installation.
Ā
Check installed add-ons available
The installed packages are listed in the column āInstalledā.
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.
- 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ā¦"
- Select the Ethernet-Device provided by the node Fieldbuses ā> Ether-net Adapter and press button "Add Device"
- The Ethernet node has been added to the Device tree
- 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.
- The available network adapters on ctrlX CORE are shown afterwards. Select the network adapter for the fieldbus communication and confirm by pressing button OK.
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!
Ā
- 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"
- 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).
- 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.
- 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.