Configuring the iC922x as an EtherNet/IP scanner
| Version Number | Description |
|---|---|
| 1.0 | Initial Version: Explains how to set up the iC9200 as an EtherNet/IP scanner. |
Steps to configure the iC922x as an EtherNet/IP scanner
1. Supported Components
| Component Name | Version |
|---|---|
| iC922xM-EC / iC922xM-FSoE Controller (EtherNet/IP scanner) | ≥ 2024.3 |
| iCube Engineer | ≥ 2024.3 |
| 053-1IP01 SLIO Coupler (EtherNet/IP adapter) | 01V12.001 |
2. Supported Libraries
- Y_DataTypes_Toolbox (≥ 2024_3)
3. Solution details
Scope:
In the following example, an iC9226M-EC controller is used as the scanner, and an EtherNet/IP Coupler (with two 021-1BF00 digital input modules and two 022-1BF00 digital output modules) is used as the adapter.
Setting up the project in iCube Engineer:
- Create a project where at least the Data Types library (Y_DataTypes_Toolbox) is included.
- Add a Generic Adapter Device to the EtherNet/IP node in the PLANT section.
- Open the adapter's Settings tab under the EtherNet/IP node and fill in the information for the corresponding device (the picture below shows the settings used for the 053-1IP01 EtherNet/IP coupler in this example). RPI stands for Requested Packet Interval.
- Add a program to the project and create two variables within it. In the Usage column, define one as IN Port and the other as OUT Port. The data type of the variables depends on the size of the device's input assembly instance and output assembly instance and should match the size defined in the adapter's setting windows (for example, in the image above, the assembly instance size is 496 bytes for both the input and the output and the ports, as seen in the following picture, are defined as arrays of 496 bytes).
- Add one instance to the program to a task (preferably a fast task) under the Tasks and Events manager in the PLCnext node.
- Navigate to the controller's GDS Port List in the PLCnext node and connect the port variables created earlier to the respective ports of the EtherNet/IP device (O2T = Originator to Target = Output Assembly; T2O = Target to Originator = Input Assembly).
- Write and Start the project. Note that the user created port variables created in the user POU, can be used only in the POU.
- The connection state with the configured EtherNet/IP adapter can be seen using the EtherNet/IP connection state global variable in the PLC data list.
- To use the information obtained from the ports throughout the whole project, link global variables to the port variables (in a user POU) as seen in the following image and then use said global variables instead of the port variables to interact with the device.
- For details on best practices and configuring for user defined update rates, please refer to How to setup EtherNet/IP communication for best performance (an example with SLIO Coupler) .
- If the communication time with the EtherNet/IP adapter is not critical, simply connecting the adapter's PDIs to global variables without connecting the variables in the GDS Port List is also an option. See the following image for an example of a global variable connection.