202 Rockwell Automation Publication 5069-UM002A-EN-P - January 2019
Chapter 8 Develop Control Applications
Determine If I/O Communication to a Specific I/O Module Has
Timed Out
If communication times out with a device (module) in the I/O configuration
of the controller, the controller produces a fault code and fault information for
the module. You can use GSV instructions to get fault code and information
via the FaultCode and FaultInfo attributes of the Module object.
Automatic Handling of I/O Module Connection Faults
You can use an I/O connection error to cause the Controller Fault Handler to
execute. To do so, set the module property that causes a major fault to result
from an I/O connection error. The major fault causes the execution of the
Controller Fault Handler.
It can be important to interrupt your normal program scan to handle an I/O
connection fault. In this case, set the 'Major Fault On Controller If
Connection Fails While In Run Mode' and put the logic in the Controller
Fault Handler.
Figure 41 - I/O Connection Fault Causes Major Fault