Download Logix5000 Controllers Controller Major and Minor Faults

Transcript
Chapter 1
Major Faults
The fault routine is added to the Power-Up Handler.
7. Double-click the newly-created routine to edit it.
Programmatically Clear a
Major Fault
To clear a major fault that occurs during the execution of your project, see the
following sections and complete these actions in the appropriate routine:
• Creating a Data Type to Store Fault Information
• Getting the Fault Type and Code
• Checking for a Specific Fault
• Clearing the Fault
IMPORTANT
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.
IMPORTANT
When a instruction errors due to a fault, for example, a COP with an indirect
addressing programming error, the instruction is skipped and not executed. This
occurs with all instructions.
Creating a Data Type to Store Fault Information
Logix5000 controllers store system information in objects. Unlike PLC-5 or SLC
500 controllers, there is no status file.
• To access system information, you use a Get System Value (GSV) or Set
System Value (SSV) instruction.
• For status information about a program, you access the PROGRAM
object.
• For fault information, you access these attribute of the PROGRAM object.
Attribute
Data Type
Instruction
Description
MajorFaultRecord
DINT[11]
GSV
SSV
Records major faults for this program.
Specify the program name to determine which PROGRAM object you want. (Or specify
THIS to access the PROGRAM object for the program that contains the GSV or SSV
instruction.)
22
Rockwell Automation Publication 1756-PM014F-EN-P - September 2012