02/19/2025
How-to | PLC | Engineering

Example for Ethernet/IP communication between ctrlX CORE (Adapter) and a Rockwell PLC (Scanner) using the CODESYS Ethernet/IP Adapter

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.

Figure 3.1: Added Device.

 

Figure 3.2: Change Network Interface ID and IP Address / Subnet if necessary.

Step 4: Add an Ethernet/IP Adapter Device to the newly created Ethernet Device.

Figure 4: Added Adapter under the Device.

Step 5: Add an Ethernet/IP Module to the newly created Ethernet/IP Adapter.

Figure 5.1: Added Module.

           

Figure 5.2: This image shows the newly added Device, Adapter and Module.

   

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.

Figure 6.1: Add Consumed Data.
Figure 6.2: Add 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.

Figure 7: This option allows the data to be updated even if they are not used.

Step 8: Export EDS File under Ethernet/IP Adapter.

Figure 8: Exporting the EDS File.

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.

Figure 9: Task Settings.

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.

Figure 11: Ethernet/IP Adapter Setup

 

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.

Figure 12.1: Data at the AB side
Figure 12.2: Data at the ctrlX CORE

 

Types
Example
Products
Controls
Markets
Production Machines

Latest published/updated articles