Obtain Front Port Status

The following procedure shows how to program an MSG instruction to obtain the status of the front Ethernet ports.
  1. In the program for the redundant controller, create an MSG instruction.
  2. On the Communication tab of the Message Configuration dialog box, configure a path of THIS to the controller.
  3. On the Configuration tab of the Message Configuration dialog box, enter the following parameters.
    Parameter
    Value
    Message Type
    CIP Generic
    Service Type
    Get Attribute Single
    Class
    56 (hex)
    Instance
    1
    Attribute
    66 (hex)
    Destination Element
    The tag that is an array or UDT of two UDINTs: first for port 1 and second for port 2.
  4. Download and test the MSG instruction.
    See the following table for status value definitions.
    Value
    Description
    0
    Status is undetermined because startup is in progress.
    1
    The port is disabled.
    2
    The port is operating normally.
    3
    Packets were lost on one port during the last 60 seconds.
    4
    One of these conditions exists:
    • Port 1 is connected to Port 2.
    • The port has an intermittent loss of communication.
    5
    The connection is down.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal