15-8Preparing Fault Routines

6.If the controller finds a match, the FSC instruction sets the found (.FD) bit in the specified control structure.

7.Use a MOV instruction to clear the fault in S:11. In the following figure, #N10:0 is the reference file.

Example of Comparing a Major Fault Code with a Reference

 

 

 

FSC

 

 

 

 

 

 

 

 

 

FILE SEARCH/COMPARE

 

 

 

Control

R6:0

 

 

Length

20

 

 

Position

0

 

 

Mode

ALL

 

 

Expression

 

 

 

 

S:12 = #N10:0

 

 

 

 

 

 

 

R6:0

RES

R6:0

U

IN

EN

DN

ER

R6:0 ] [

FD

MOV

MOVE

Source0

DestS:11

TND

Remainder of fault routine follows

If the Fault Routine

Then the Controller

 

clears S:11

returns to the program file and

 

 

resumes program execution.

 

 

 

 

does not clear S:11

executes the rest of the fault routine

 

 

and then faults

 

 

 

 

 

 

 

IMPORTANT

If the fault routine clears the major fault, the controller 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 and it appears that the fault never occurred. The fault routine execution continues until you correct the cause of the fault.

Publication 1785-UM012D-EN-P - July 2005

Page 246
Image 246
Bradley Smoker PLC-5 Example of Comparing a Major Fault Code with a Reference, If the Fault Routine Then the Controller