Chapter 1 Major Faults
20 Rockwell Automation Publication 1756-PM014N-EN-P - March 2022
8. Double-click new routine to edit.
See also
Major fault codes on page 25
To programmatically clear a major fault that occurs during the execution of
the project:
• Create a data type to store fault information
• Write a fault routine to clear the fault
Do not use fault routines to continually clear all faults on the controller. Program the fault
routine to be selective in the types and number of faults cleared.
When an instruction generates an error due to a fault (for example, a COP with an indirect
addressing programming error), the routine skips the instruction and the instruction does
not run. This occurs with all instructions.
See also
Create a data type to store fault information on page 20
Write a routine to clear the fault on page 21
Logix 5000 controllers store system information in objects. Unlike PLC-5 or
SLC 500 controllers, there is no status file.
• To access system information, use a Get System Value (GSV) or Set
System Value (SSV) instruction.
• To get status information about a program, access the Program object.
• To get fault information for the program, access the MajorFaultRecord
attribute of the Program object.
SSV
Records major faults for this program.
Specifies the program name to determine which
Program object to use, or specifies THIS to access
the Program object for the program that contains the
To simplify access to the MajorFaultRecord attribute, complete these steps to
create a user-defined data type.
Programmatically clearing
a major fault
Create a data type to store
fault information