Industrial Automation Tech Note 54 - TNIA54
Abstract:
This document describes configuring the Ethernet/IP Slave driver.
Products:
CR Series HMI / G3 Series HMI / G3 Kadet HMI / Graphite® HMI / Modular Controller / Data Station Plus / ProducTVity Station
Use Case: Configuring the Ethernet/IP Slave Driver
This document describes the configuration of an Allen Bradley PLC and a Crimson device to communicate via Ethernet/IP.
Required Software:
Crimson 1.0 or 2.0 or 3.0 or 3.1
Required Firmware:
Crimson 1.0 build 135 or higher
Crimson 2.0/3.0/3.1 all builds
Introduction
In the following example, the ControlLogix will establish a Class1 connection and I/O data will be exchanged between the ControlLogix and the G3 terminal. The network parameters used in this example will almost certainly not apply to your application. Be sure to consult your network administrator when selecting appropriate values.
PLC Configuration
1. Run the RSLogix 5000 program and create a new configuration.
2. Add a 1756-ENET/B or a 1756-ENBT/A to your I/O configuration (skip steps a & b when using a CompactLogix). You will need to:
a. Switch to offline mode.
b. Right click on the I/O Configuration node in the Controller Organiser view and choose Add Module.
c. In the Select Module Type dialog, choose 1756-ENET/B or 1756-ENBT/A entry. RSLogix will open the Module Properties dialog box.
Figure 1.
d. Referring to Figure 1, enter the IP Address of the PLC’s Ethernet interface.
e. Click Finish to add the interface to your I/O configuration.
f. Download the configuration.
g. Switch to online mode and open the 1756-ENET/B or 1756-ENBT/A node properties under the I/O Configuration in the Controller Organiser.
h. Referring to Figure 2, select the Port Configuration Tab from the Module Properties dialog box.
i. You should now enter the IP Address and Subnet Mask. The IP Address must match the IP Address entered from the General properties page.
j. Apply the settings using the Set button.
Figure 2.
k. You can now verify the network module network communications with your unit using suitable diagnostic tools such as Ping.
3. Now add the Crimson device (a G3 HMI in this case) to the RSLogix configuration through the following steps:
a. Switch to offline mode.
b. Right click on the 1756-ENET/B or 1756-ENBT/A node under the I/O Configuration in the Controller Organiser view and choose Add Module.
Figure 3.
c.Referring to Figure 3, in the Select Module dialog, choose Generic Ethernet Module.
d. Click OK. This will open the Module Properties dialog, see Figure 4.
Figure 4.
e. In the Name, enter a descriptive name to identify the module (G3_HMI in this example).
f. In the Address/Host Name, enter the IP Address of the G3 HMI.
g. Enter 2 in the Input Assembly Connection Point and a size of 2. This will match a read-only Slave Gateway block configured in the G3, and will be used for reading data from the G3 to the ControlLogix.
h. Enter 3 in the Output Assembly Connection Point and a size of 2. This will match a read/write Slave Gateway block configured in the G3, and will be used for writing data from the ControlLogix to the G3.
i. Enter 1 in the Configuration Connection Point and a size of 0. Configuration data is not supported by the G3.
j. Press Finish to add the G3_HMI to the I/O configuration.
The connection points and sizes are arbitrary, as long as the connection point, size, and direction are matched in the configuration of the G3.
Connection point direction is always relative to the originator, which in the case of the current G3 Ethernet/IP implementation is always the device and never the G3. An input connection, therefore, specifies data flow from the G3 to the device, and an output connection specifies data flow from the device to the G3.
Referring to Figure 5, you should now see a new “ETHERNET-MODULE G3_HMI” branch of the 1756-ENET/B node in the I/O Configuration view. You should also see 3 new entries in the Controller Tags view: G3_HMI:I to view the input data, G3_HMI:O to modify the output data and G3_HMI:C to view the configuration data.
Figure 5.
4. Download the new I/O configuration to the controller. Once the download is complete, the controller will automatically establish a new Class1 connection with the G3.
Crimson Configuration
Open Crimson and create a new file.
Configure the Ethernet Port
1. Referring to Figure 6, click on Network (Crimson 3), Ethernet (Crimson 2.0), or double-click on Ethernet (Crimson 1.0).
* In Crimson 3, click the Ethernet 1 or Ethernet 2 tab as needed.
2. Set the Port Mode appropriately for the application.
3. Set the IP Address, Network Mask, and Gateway as/if needed.
Figure 6.
Adding the Driver
- Referring to Figure 7, click on the first available Protocol.
- Click Pick… next to the Driver.
- In the Manufacturer field select EtherNet/IP.
- In the Driver field select Slave Adaptor.
- Click OK.
NOTE: The Run/Idle Header setting requirement varies between applications. If the data is offset by 32-bits, then change this setting.
Figure 7.
Configure the Device
- Referring to Figure 8, click on the device (PLC1).
- Click the Add Gateway Block Link/Button twice.
Figure 8.
3. Referring to Figure 9, click on Block 1.
Figure 9.
4. Click Pick… next to the Start Address.
5. Set the Connection Point to 3 as configured in step 3-H of the PLC Configuration.
6. Leave the Data Offset at 0.
7. Set the Data Type to match the PLC’s configuration.
8. Click OK.
9. Referring to Figure 10, click on Block 1.
Figure 10.
10. Click Pick… next to the Start Address.
11. Set the Connection Point to 2 as configured in step 3-G of the PLC Configuration.
12. Leave the Data Offset at 0.
13. Set the Data Type to match the PLC’s configuration.
14. Click OK.
15. Navigate to the Data Tags section.
16. Click the New button 4 times.
17. Navigate back to the Communications section.
18. Referring to Figure 11, click on the first address under Block 1.
19. Click on Data Tags in the Resource Pane.
20. Click Tag1 and drag it over to C03:000 in the Navigation Pane.
Figure 11.
21. Repeat Step 20 until all tags have been associated with the configured slave addresses.
Figure 12.
Testing
Using the RSLogix5000 program, you can modify tags G3_HMI:O and verify they are written into Tag1 and Tag2, and verify changes made in the G3 to tags Tag3 and Tag4 are updated in G3_HMI:I. Ensure the device is in the Run mode otherwise the data transfer will be ignored by the G3.
Disclaimer
It is the customer's responsibility to review the advice provided herein and its applicability to the system. Red Lion makes no representation about specific knowledge of the customer's system or the specific performance of the system. Red Lion is not responsible for any damage to equipment or connected systems. The use of this document is at your own risk. Red Lion standard product warranty applies.
Red Lion Technical Support
If you have any questions or trouble contact Red Lion Technical Support by clicking here or calling 1-877-432-9908.
For more information: http://www.redlion.net/support/policies-statements/warranty-statement