Routing Paths
Ethernet/IP (CIP) Routing Paths
NOTE : As of version 3.99r only Ethernet card routing is available
The CIP protocol is designed to allow routing through complex networks. For example, you may have a ControlLogix rack with multiple Ethernet cards acting only as a gateway. If you HMI is connected to one Ethernet card and a PLC attached to the other Ethernet card, the RoutePath will tell the driver how to find the PLC.
Routes are designated by pairs of numbers, the port and the link address. The port can be thought of as a doorway on a device. For example, the 1756-EN2T card has 2 communication ports (or doorways) for communication packets to pass through. The connector to the backplane is considered port 1 and the front Ethernet port is considered port 2.
Let's consider the example of a ControlLogix rack with (2) 1756-EN2T cards. The first is in slot 1 with the HMI connected to it. The second is in slot 2 with a PLC connected at IP address 192.168.1.10
To build the appropriate route path..... Since our HMI is connected to the card in slot 1, the communication packets go directly into that EN2T card. We now need the packet to exit the card (out the back door if you may) and go onto the backplane. Once on the backplane, we want the packet to then enter the card in slot 2. Once inside the EN2T in slot 2, we want the packet to exit the front door to get to the PLC. The front port/Ethernet port on an EN2T is designated at port 2. The final destination is address 192.168.1.10, so our final RoutePath would be this:
1,2,2,192.168.1.10
A key element is to know the port number designation for each device. The EN2T card only has 2 ports, the backplane port designated at port 1 and the Ethernet port designated as port 2. Other devices/cards may have more than 2 ports.
These are some common know port numbers for various devices:
1. The backplane
2. Depends on the module this number is used on:
• DH-485 - out channel A
• DHRIO - out channel A
• DNB - out onto DeviceNet
• CN2,CNB(R) - out onto ControlNet
• EN2T,Ethernet,ENBT - out onto EtherNet
• Controllers - out the serial port
3. Depends on the module this number is used on:
◦ DH-485 - out channel B
◦ DHRIO - out channel B
The second value in the pair is the link address. These are some common address for various devices:
• ControlNet - ControlNet Node Address (0-99)
• Ethernet - Ethernet IP address (a.b.c.d)
• RS-232 Serial port - DF1 node address (0-255, use 1 for a point-to-point connection)
• The backplane - Backplane slot number (0-16, depending on chassis size)
• Data Highway Plus - Decimal equivalent of the Octal Data Highway Plus node address or (8#10) means that the number 10 is in octal. (0-63 decimal or 8#00 to 8#77)