5502A
Operators Manual
5-42
Po
w
er on. This
b
it is set to 1 if line po
w
er has
b
een t
u
rned off and on since the last
time the ESR
w
as read.
Command error. The IEEE-4
88
interface of the 5502A enco
u
ntered an incorrectly
formed command. (The command ERR? fetches the earliest error code in the error
qu
e
u
e,
w
hich contains error codes for the first 15 errors that ha
v
e occ
u
rred.)
Exec
u
tion error. An error occ
u
rred
w
hile the 5502A tried to exec
u
te the last command.
This co
u
ld
b
e ca
u
sed, for example,
b
y a parameter
b
eing o
u
t of range. (The command
ERR? fetches the earliest error in the error
qu
e
u
e,
w
hich contains error codes for the
first 15 errors that ha
v
e occ
u
rred.)
De
v
ice-dependent error. An error related to a de
v
ice-dependent command has
occ
u
rred.
Q
u
ery error. The 5502A
w
as addressed to talk
w
hen no response data
w
as a
v
aila
b
le
or appropriate, or
w
hen the controller failed to retrie
v
e data on the o
u
tp
u
t
qu
e
u
e.
Operation complete. All commands pre
v
io
u
s to reception of a *OPC c ommand ha
v
e
b
een exec
u
ted, and the interface is ready to accept another message.
PO
N
CME
EXE
DDE
QYE
OPC
15
14
13
12
11
10
9
8
0
0
0
0
0
0
0
0
7
6
5
4
3
2
1
0
PON
0
CME
EXE
DDE
QYE
0
OPC
gjh048.eps
Figure 5-10. Event Status Register (ESR) and Event Status Enable (ESE)
Program the ESR and ESE
To read the contents of the ESR, send the remote command,
*ESR?
. The ESR is cleared
(set to 0) each time it is read. To read the contents of the ESE, send the remote command,
*ESE?
. The ESE is not cleared when it is read. When you read the registers, the
Calibrator answers by sending a decimal number that when change to binary shows bits 0
through 15. The subsequent sample BASIC program gets the contents of each register:
10 ! THIS PROGRAM READS THE ESR AND THE ESE REGISTERS
20 PRINT @6, “*ESR?” ! ASK FOR THE ESR CONTENTS
30 INPUT @6, A% ! RETRIEVE THE REGISTER CONTENTS
40 PRINT @6, “*ESE?” ! ASK FOR THE ESE CONTENTS
50 INPUT @6, B% ! RETRIEVE THE REGISTER CONTENTS
60 PRINT “ESR = “;A% ! DISPLAY THE ESR REGISTER CONTENTS VALUE
70 PRINT “ESE = “;B% ! DISPLAY THE ESE REGISTER CONTENTS VALUE
80 END
Summary of Contents for 5502A
Page 4: ......
Page 12: ...5502A Operators Manual xii ...
Page 46: ...5502A Operators Manual 2 2 ...
Page 52: ...5502A Operators Manual 2 8 ...
Page 54: ...5502A Operators Manual 3 2 ...
Page 142: ...5502A Operators Manual 4 68 ...
Page 194: ...5502A Operators Manual 6 2 ...
Page 240: ...5502A Operators Manual 7 2 ...
Page 260: ...5502A Operators Manual 7 22 ...
Page 262: ...5502A Operators Manual 8 2 ...
Page 365: ...B 1 Appendix B ASCII and IEEE 488 Bus Codes ...
Page 366: ...5502A Operators Manual B 2 ...
Page 368: ...5502A Operators Manual B 4 ...
Page 378: ...5502A Operators Manual D 6 ...