Saturday, February 25, 2012

Link Status from a Logix Ethernet module via CIP Generic Message in RSLogix 5000

Example below shows 1756-ENBT, but can be used with any Logix modules
Link Loss Status can be obtained from the 1756-ENBT by configuring a CIP Generic message to the module.If the Ethernet connection is broken the status can be monitored in the ControlLogix processor.
Procedure:
1)  Configure a MSG instruction as CIP Generic in RSLogix 5000 for the ControlLogix processor that is to monitor the 1756-ENBT status.

Image
2)  Create the Destination tag (LinkStatusWord in this example) with data type of DINT. The communications path will need to point to the ENBT that you want to get status from, with the Class, Instance and Attribute as shown below.
CIP Generic Message Setup Screen:
Image
3)  When the MSG instruction is executed the Link Status data will be written to the Destination word bit 0, in this example LinkStatusWord.0


Image
IF Bit 0 = 1 The Link is active.IF Bit 0 = 0 The Link is Inactive. The above screen capture shows an active link.
NOTE:Bit 1 is module Duplex mode. If bit 1 = 1 the module is in Full Duplex mode. If Bit 1 = 0 the module is in Half Duplex Mode.Bits 2 - 31 are reserved and not used.

This technote can be used for dual port devices (1756-EN2TR, 1756-EN3TR, 1783-ETAP etc).
Second port information can be accessed by changing the Instance value to 2 (see message above)
Third port information can be accessed by changing the Instance value to 3 (see message above) 

2 comments: