Rockwell Automation 1785-LTx,D17856.2.1 Classic PLC-5 Programmable Controllers Users Manual User Manual

Page 89

Advertising
background image

Selecting Interrupt Routines

Chapter 7

7-7

In Figure 7.4, #N10:0 is the reference file.

Figure 7.4

Example of Comparing a Major Fault Code with a Reference

JMP

MOV
MOVE
Source
Dest

S:11

0

RES

R6:0

] [

R6:0

FD

10

]

[

LBL

10

Last rung in fault routine

TND

EN

FSC
FILE SEARCH/COMPARE
Control
Length
Position
Mode

R6:0

20

0

ALL

DN

ER

Expression
S:12 = #N10:0

U

R6:0

IN

The processor completes the scan of the fault routine. If the routine clears
S:11, the processor returns to the program file and resumes program
execution. If the fault routine does not clear S:11, the processor executes
the rest of the fault routine and goes into FAULTED mode.

Important: If the fault routine clears the major fault, the processor
completes the fault routine and returns to the next instruction in the
program file that follows the one that contained the faulted instruction.
The remainder of the rung is executed. It appears that the fault never
occurred. The fault routine execution continues until you correct the
cause of the fault.

Advertising