5 1 0
520
WAIT 2
530
540
PRINT " The following bits are set in the Status Byte : "
550
560
WAIT 2
570
IF A=O THEN PRINT
11
No bit is s et . "
580
IF BIT(A , 7) THEN PRINT
11
Bit 7
-->
Buffer Not Empty"
590
IF BIT (A , 6) THEN PRINT
11
Bit 6 --> Service Request"
600
IF BIT (A , 5) THEN PRINT
11
Bit 5
-->
Input Error"
6 1 0
IF BIT(A , 4) THEN PRINT
11
Bit 4
-->
Duty Cycle Error"
620
IF BIT(A , 3 ) THEN PRINT
11
B it 3
-->
Slope Error"
630
IF BIT (A , 2) THEN PRINT
11
Bit 2
-->
Syntax Error"
640
IF BIT(A , 1 ) THEN PRINT
11
Bit 1
-->
Timing Error"
650
IF BIT(A , O ) THEN PRINT
11
Bit 0
-->
Limit Error"
660
1 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 1
670
680
Use the !ERR command to get more detailed informat ion .
690
700
WAIT 2
7 1 0
PRINT "More detailed decript ion read with the !ERR command : "
720
WAIT 2
730
740
DIM A$ [200]
750
760
770
OUTPUT 712 ; 11 IERR11
ENTER 712 ; A$
PRINT A$
" Interrogate Error" command
780
NOTE : The HP8 1 12A ' s Status Byte is updated after every command .
790
In this program the Status Byte was cleared by
800
reading it with SPOLL b efore the !ERR command was conduct ed .
8 1 0
T o restore the previous status , the Status Byte has to be
820
cleared again .
830
WAIT . 1
give HP8 1 12A t ime to f inish internal process ing
840
A=SPOLL (712)
!
clear the Status Byte
850
860
WAIT 2
870
880
' ' ==========================================================''
890
900
RETURN
9 1 0
2 0
END
Programming Examples
7-15
Summary of Contents for 8112A
Page 6: ......
Page 24: ......
Page 36: ......
Page 44: ......
Page 70: ......
Page 92: ......
Page 144: ...8 32 Testing Performance ...
Page 176: ......
Page 190: ......
Page 194: ...10 2 4 Servicing the Power Supply ...
Page 196: ......
Page 197: ......
Page 216: ......
Page 240: ...10 4 16 Servicing the Shaper and Output Amplifier ...
Page 242: ...A R l BD RY MR I N 1 2 7 I I IJt 51 CR1 B e i 1 _ _ _ _ 20 ...
Page 244: ......
Page 251: ......
Page 262: ...A B A2 ED RY CONTROL ...
Page 270: ......
Page 290: ...R B c R3 BD RY M I CROPROCESSOR 1 2 3 FIGURE 1 0 7 8 ...
Page 294: ... 8 X2l 2 X2 Figure A 1 Mechanical Parts 1 A 2 Replaceable Parts ...
Page 295: ...MP MP3 MP MP2 MP4 MPS MP 1 2 MPS MP MP I B ElElElEl Replaceable Parts A 3 ...
Page 334: ......
Page 378: ...Figure B 14 Mechanical Parts 1 B 44 Backdating ...
Page 380: ......
Page 382: ......
Page 402: ......