Without the synchronization with the WAIT command (line 230),
the SPOLL would be conducted whilst "XXX" is being parsed. At
this moment there is neither a syntax error or SRQ active. The
resultant SPOLL would be 1 28, indicating that the HP 81 12A
command buffer is not empty. (See Chapter 6
Error, fault and status
reporting.
10
!
Name of this program : SPOLL_2
20
! ----------------------------------------------
30
This program demonstrates that the HP8 1 12A ' s
40
!
SRQ is cleared after SPOLL .
50
60
CLEAR SCREEN
70
80
90
100
CLEAR 7 1 2
A=SPOLL (712)
Initialize Inteface and HP8 1 12A
clear status byte
1 10
A=SPOLL ( 7 12 )
!
read the status byte with SPOLL
120
PRINT " SPOLL bef ore the syntax error = " ; A
130
140
PRINT " XXX is output . This will cause a syntax error . "
1 50
OUTPUT 7 12 ; " XXX"
!
Cause a syntax error .
160
WAIT . 1
!
give HP8 1 12A t ime to receive " XXX" and update the Status Byte
170
180
A=SPOLL(712)
190
PRINT " 1st SPOLL after syntax error = " ; A
200
WAIT . 1
2 1 0
A=SPOLL(712)
220
PRINT " 2nd SPOLL after syntax error = " ; A
230
240
WAIT 2
250
A=SPOLL ( 7 12 )
260
PRINT " SPOLL after waiting 2 s econds = " ; A
270
280
290
PRINT "End of the program SPOLL_2 . "
300
LOCAL 712
3 10
END
Programming Examples
7-1 1
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: ......