beautypg.com

Rockwell Automation 1747-PT1, D1747NP002 Hand-Held Terminal User Manual

Page 418

background image

5/02 Processor Only

Chapter 29
Understanding the User Fault Routine –

29–6

User Fault Routine – Subroutine File 3

When the processor detects a recoverable or non-recoverable user fault, this
file is executed. The fault code appears as Source A in the EQU instructions in
this file.

The processor will enter the fault mode and shut down for all user faults except
two:

0020 MINOR ERROR AT END OF SCAN

0034 NEGATIVE VALUE IN TIMER PRE OR ACC

If the fault code (S:6) is 0020H, subroutine file 4 is executed. If the fault code
is 0034H, subroutine file 5 is executed.

END

EQU

EQUAL
Source A

S:6

0

Source B

32

Fault code 0020H
= 0000 0000 0010 0000 binary
= 32 decimal

JSR

JUMP TO SUBROUTINE
SBR file number

4

JSR

JUMP TO SUBROUTINE
SBR file number

5

EQU

EQUAL
Source A

S:6

0

Source B

52

Fault code 0034H
= 0000 0000 0011 0100 binary
= 52 decimal

Word S:6 is the fault code

(in decimal).