Overview
In this example we will have a Rockwell PLC (Scanner) connected to a ctrlX CORE X3’s (Adapter) XF51 port. Please have a look to the "Ctrlx_Codesys_ENIP_Adpater.pdf" for further information and instruction.
Pre-Requisite
ctrlX CORE X3 / X5 / X7 hardware
ctrlX PLC App V2.6 (Collaboration Room) with the following licenses
ctrlX OS License - PLC Basic, SWL-XC*-PLC-PLC*XOS******-BANN
ctrlX OS License - PLC Standard (add-on), SWL-XC*-PLC-PLC*XOS******-NNNN
ctrlX OS License - CODESYS - Ethernet IP Adapter License, SWL-W-XC*-COSY*ENIP*ADP**-NNNN
ctrlX PLC Engineering (Collaboration Room)
Ethernet/IP Adapter V4.5.1.0 (Collaboration Room)
Applicable Rockwell hardware / software
Note
Future ctrlX releases (starting with V3.6) will have a dedicated Ethernet/IP app .
Exercise
Step 1: Install Ethernet/IP Adapter V4.5.1.0 package in ctrlX PLC Engineering by selecting Tools -> Add-On Installer. Press Install File(s) and select the downloaded package. Close down ctrlX PLC Engineering prior to installing the package.
Step 2: Create a new PLC project, select the appropriate template (ARM64 for X3 or x64 for X5/X7 COREs)
Step 3: Add an Ethernet Device by right clicking your Device and Select the Add Device option. Set the Network Interface, IP address and Subnet.
Step 4: Add an Ethernet/IP Adapter Device to the newly created Ethernet Device.
Step 5: Add an Ethernet/IP Module to the newly created Ethernet/IP Adapter.
Step 6: Configuration of the Ethernet/IP Module Assemblies. In this example we are adding 10 bytes of consumed and 15 bytes of produced data.
Step 7: Configuration of the Ethernet/IP Module I/O Mapping. Assign variables to the data as needed. Make sure you change the update to Enable 1 (use bus cycle task if not used in any task) as shown below.
Step 8: Export EDS File under Ethernet/IP Adapter.
Step 9: Configuration of the ENIPAdapterIOTask. Set Priority between 20 and 39. Set Interval to be equivalent to the RPI rate of the ENIP scanner. In our example we will use 4 ms update rate.
Step 10: Import the newly created EDS file into Studio5000 by running the device description file installation tool.
Step 11: Add a new module to the Rockwell project. Select the newly imported module type (Vendor: CODESYS). Check the data structure by clicking on the Change module definition button. Set IP address. SET RPI to 4 ms.
Testing
The 2 controllers should be communicating after downloading both projects. Test the data exchange by changing data on one side and verify it on the other.