10
! Name of this program : ERROR_DEMO
20
! -----------------------------------------------------------------"
30
This program demonstrates hov to determine which error bit ( s )
40
are set in the HP8 1 12A ' s Status Byte . Also it is shown hov to
50
get a more detailed description of an error with the
60
" Interrogate Error" ( !ERR) command . Both funct ions are performed
70
in the subroutine Print_errors .
80
90
CLEAR SCREEN
100
1 10
CLEAR 712
120
A=SPOLL (712)
130
intialize interface and HP8 1 12A
clear status byte
140
PRINT "Nov Period is 1 ms , Width is set to 10 ms . 11
150
PRINT "This causes width and slope error (Width>Period) . 11
160
PRINT " ------------------------------------------------------- "
170
180
OUTPUT 712 ; "WID 10MS" ! set width to 10 ms ( ca.uses width error)
190
200
WAIT . 1
210
220
HP81 12A needs t ime to execute a command and update the
Status Byte .
230
GOSUB Print _errors
240
250
DISP "Pausing , press Continue to continue . "
260
PAUSE
270
CLEAR SCREEN
280
290
PRINT "Nov Width is set to 500 us . This removes the cause for the errors . "
300
" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "
310
320
OUTPUT 7 12 ; "WID500US"
330
340
WAIT . 1
HP81 12A needs t ime to execute a command and update the
350
Status Byte .
360
370
GOSUB Print_errors
380
390
400
PRINT "End of the program ERROR_DEM0 . 11
410
LOCAL 712
420
STOP
430
440 Print_errors : ! prints the errors set in the Status Byte and uses the " !ERR"
450
command to get more detailed descriptions of the errors .
460
470
WAIT 2
not necessary
480
490
A=SPOLL (712)
read the status byte
500
PRINT " Value of the Status Byte : " ; A
7-14
Programming Examples
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: ......