
Remote Operation
Checking 5820A Status
5
5-41
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
oq034f.eps
PON
Power on. This bit is set to 1 if line power has been turned off and on since the last
time the ESR was read.
CME
Command error. The 5820A’s IEEE-488 interface encountered an incorrectly formed
command. (The command ERR? fetches the earliest error code in the error queue,
which contains error codes for the first 15 errors that have occurred.)
EXE Execution error. An error occurred while the 5820A tried to execute the last command.
This could be caused, for example, by a parameter being out of range. (The command
ERR? fetches the earliest error in the error queue, which contains error codes for the
first 15 errors that have earliest error in the error queue, which contains error codes for
the first 15 errors that have occurred.)
DDE Device-dependent error. An error related to a device-dependent command has occurred.
QYE Query error. The 5820A was addressed to talk when no response data was available or
appropriate, or when the controller failed to retrieve data on the output queue.
OPC Operation complete. All commands previous to reception of a *OPC command have been
executed, and the interface is ready to accept another message.
Figure 5-9. Event Status Register (ESR) and Event Status Enable (ESE)
5-50.
Programming the ESR and ESE
To read the contents of the ESR, send the remote command,
*ESR?
. The ESR is cleared
(set to 0) every 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 either register,
the 5820A Calibrator responds by sending a decimal number that when converted to
binary represents bits 0 through 15. The following sample BASIC program retrieves the
contents of both registers:
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 5820A
Page 10: ...5820A Operators Manual vi ...
Page 14: ...5820A Operators Manual x ...
Page 16: ...5820A Operators Manual 1 2 ...
Page 32: ...5820A Operators Manual 2 2 ...
Page 40: ......
Page 144: ...5820A Operators Manual 6 2 ...
Page 190: ......
Page 212: ...5820A Operators Manual 7 24 ...
Page 214: ...5820A Operators Manual 8 2 ...
Page 230: ...5820A Operators Manual 9 2 ...
Page 234: ...5820A Operators Manual ...
Page 244: ...5820A Operators Manual A 10 ...
Page 245: ...B 1 Appendix B ASCII and IEEE 488 Bus Codes ...
Page 246: ...5820A Operators Manual B 2 ...
Page 248: ...5820A Operators Manual B 4 ...
Page 250: ...5820A Operators Manual C 2 ...
Page 258: ...5820A Operators Manual E 4 ...
Page 264: ...5820A Operators Manual F 6 ...
Page 272: ...5820A Operators Manual 8 ...