Download Local PDF

Transcript
Communicating with Other Devices
337
To monitor the health of your connections, use a Get System Value (GSV)
instruction to monitor the MODULE object for either the controller or a
specific module:
If you want to
Get this attribute
Data Type
Description
determine if
communication has
timed out with any
device
LEDStatus
INT
Specifies the current state of the I/O LED on the front of the controller.
For efficiency,
use a DINT as
the destination
data type.
Note: You do not enter an instance name with this attribute. This
attribute applies to the entire collection of modules.
determine if
communication has
timed out with a
specific device
FaultCode
Value
Meaning
0
LED off: No MODULE objects are configured for the
controller (there are no modules in the I/O Configuration
section of the controller organizer).
1
Flashing red: None of the MODULE objects are Running.
2
Flashing green: At least one MODULE object is not
Running.
3
Solid green: All the Module objects are Running.
INT
A number which identifies a module fault, if one occurs.
For efficiency,
use a DINT as
the destination
data type.
In the Instance Name, choose the device whose connection you want
to monitor. Make sure to assign a name to the device in the I/O
Configuration folder of the project.
Publication 1756-PM001I-EN-P - January 2007