Chapter 1 Major Faults
24 Rockwell Automation Publication 1756-PM014N-EN-P - March 2022
Use a JSR instruction to test a program's fault routine without creating an
error (simulate a fault).
To test a fault routine:
1. Create a BOOL tag to initiate the fault.
2. In the main routine or a subroutine of the program, enter this rung,
where:
• test_fault_routine is the tag to initiate the fault.
• Fault_Routine is the fault routine of the program.
When test_fault_routine is on, a major fault occurs and the controller
executes Fault_Routine.
See also
Create a user-defined major fault on page 24
To suspend (shut down) the controller based on conditions in the application,
create a user-defined major fault. With a user-defined major fault:
• The fault type = 4.
• Define a value for the fault code. Choose a value between 990 and 999.
Logix Designer reserves these codes for user-defined faults.
• The controller handles the fault the same as other major faults:
• The controller changes to the Program mode and stops executing
the logic.
• Sets the outputs to their configured state or value for faulted mode.
When Tag_1.0 = 1, produce a major fault and generate a fault code of 999.
To create a user-defined major fault:
1. Create a fault routine for the program if one does not exist.
2. Configure the program to use the fault routine if it is not already
assigned.
3. In the main routine of the program, enter this rung, where:
• Tag_1.0 is the tag used to initiate the fault
major fault