Download CompactLogix Controllers

Transcript
Develop Applications
77
Determine if Device Communication Has Timed Out
If communication times out with at least one device (module) in the
I/O configuration of the controller, the I/O LED on the front of the
controller flashes green.
• The GSV instruction gets the status of the I/O LED and stores it
in the I_O_LED tag.
• If I_O_LED equals 2, the controller has lost communication with
at least one device.
GSV
Get System Value
CIP Object Class MODULE
CIP Object Name
Attribute Name
LedStatus
Dest
I_O_LED
EQU
Equal
Source A I_O_LED
Source B
2
where:
I_O_LED is a DINT tag that stores the status of the I/O LED on
the front of the controller.
Publication 1769-UM011F-EN-P - January 2007