5/02 Processor Only
Chapter 29
Understanding the User Fault Routine
29–7
Subroutine File 4 - Executed for error 0020
MINOR ERROR AT END OF SCAN
If the overflow trap bit S:5/0 is set, counter C5:0 will increment.
If the count of C5:0 is 5 or less, the overflow trap S:5/0 will be cleared, the
major error halted bit S:1/13 will be cleared, and the processor will remain in
the Run mode. Fault code 0020 will be indicated in the status file display. If
the count is greater than 5, the processor will set S:5/0 and S:1/13 and enter
the fault mode.
This subroutine file is also executed if the control register error bit S:5/2 is set.
In this case, the processor is placed in the fault mode.
Fault code and description are indicated.
S:1/13 Cleared
S:5/0 Cleared
Status File Display - At 1st through 5th overflow (S:5/0) occurrences
END
SBR
SUBROUTINE
RET
RETURN
GRT
GREATER THAN
Source A
C5:0.ACC
0
Source B
5
(CU)
(DN)
CTU
COUNT UP
Counter
C5:0
Preset
120
Accum
0
(U)
S:5
0
] [
S:5
0
(U)
C5:0
CU
(U)
S:1
13
RET
RETURN
] [
S:5
0
F1
F2
F3
F4
F5
Status File
S2:5 Minor Fault 0000 0000 0000 0000
S2:6 Fault Code 0020H
Desc: Minor Error At End Of Scan
S2:29 Err File: 0 Indx Cross File: No
S2:24 Index Reg: 0 Single Step: No
S2:5/0 = 0 PRG
ADDRESS NEXT FL PREV FL NEXT PG PREV PG
F1
F2
F3
F4
F5
Status File
Arithmetic Flags S:0 Z:0 V:0 C:0
S2:0 Proc Status 0000 0000 0000 0000
S2:1 Proc Status 0000 0000 1000 0001
S2:2 Proc Status 1000 0000 0000 0010
S2:0/0 = 0 PRG
ADDRESS NEXT FL PREV FL NEXT PG PREV PG