ControlLogix Gateway to ControlNet
The ControlLogix Gateway can act as a gateway to ControlNet from ControlNet, Ethernet, or DH+, using the 1756-CNB module.
To route from DH+ to ControlNet, configure a link ID in the routing table of the 1756-DHRIO so that it routes to the desired ControlNet. Then use a regular DTSA_AB_DH_OFFLINK to send the packets on DH+.
To route from ControlNet or Ethernet onto ControlNet, use the DTSA_AB_ASA_PATH structure, defined as follows:
#define DTSA_AB_ASA_PATH struct dtsa_ab_asa_path
DTSA_AB_ASA_PATH
{
unsigned long atype;
long driver_id;
unsigned short wControl;
unsigned long dwLength;
unsigned char baPath[1];
};
baPath[]
contains a variable amount of path information which describes the complete path to the destination PLC-5 on ControlNet.dwLength
specifies the number of bytes in baPath[].Sample paths
- Ethernet to 1756-ENET to 1756-CNB to PLC-5/C, via the RSLinx Gateway driver (TCP –n)dwLength = 4, baPath = 01 [slot] 02 [MAC ID]where [slot] is the 0-based slot number of the 1756-CNB, and [MAC ID] is the ControlNet address of the destination PLC-5/C.
- ControlNet to 1756-CNB #1 to 1756-CNB #2 to PLC-5/C, using the DTC driver (AB_KTC –n)dwLength = 6, baPath = 02 [MAC ID 1] 01 [slot] 02 [MAC ID 2]where [MAC ID 1] is the address of CNB #1 on the source ControlNet, [slot] is the 0-based slot number of CNB #2, and [MAC ID 2] is the address of the PLC-5/C on the destination ControlNet.
TIP:
When specifying the slot number of the outbound module in the ControlLogix Gateway, always precede it with 01.
When specifying a ControlNet MAC ID (node address), always precede it with 02.
The channels on the 1756-DHRIO are specified as A = 2, B = 3.
Provide Feedback