
Remote Operation
Checking 5790A Status
5
5-17
Table 5-4. Status Register Summary
Register Read
Command
Write Command
Enable Register
Serial Poll Status Byte
(STB) *STB? (or SPL)
for 1722A)
None SRE
Service Request Enable
Register (SRE)
*SRE? *SRE
None
Event Status Register
(ESR)
*ESR? *ESE
None
Event Status Enable
Register (ESE)
*ESE? *ESE
None
Instrument Status
Register (ISR)
ISR? None
None
Instrument Status 0-1
Change Register
(ISCR1)
ISCE1? ISCR1
None
Instrument Status 0-1
Change Enable Register
(ISCE1)
ISCE1? ISCE1
None
Instrument Status 1-0
Change Register
(ISCR0)
ISCR0? None
ISCE0
Instrument Status 1-0
Change Enable Register
(ISCE0)
ISCE0? ISCE0
None
5-30.
Event Status Register (ESR)
The Event Status Register is a two-byte register in which the higher eight bits are always
0, and the lower eight bits represent various conditions of the 5790A. The ESR is cleared
(set to 0) when the power is turned on, and every time it is read.
5-31.
Event Status Enable Register (ESE)
A mask register called the Event Status Enable register (ESE) allows the controller to
enable or mask (disable) each bit in the ESR. When a bit in the ESE is 1, the
corresponding bit in the ESR is enabled. When any enabled bit in the ESR is 1, the ESB
bit in the Serial Poll Status Byte also goes to 1. The ESR bit stays 1 until the controller
reads the ESR or does a device clear, a selected device clear, or sends the reset or *CLS
command to the 5790A. The ESE is cleared (set to 0) when the power is turned on.
5-32.
Bit assignments for the ESR and ESE
The bits in the Event Status Register (ESR) and Event Status Enable register (ESE) are
assigned as shown in Figure 5-3.
5-33.
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 5790A responds by sending a decimal number that when converted to binary
represents bits 0 through 15.
The following sample 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 5790A
Page 4: ......
Page 12: ...5790A Operators Manual vi...
Page 14: ...5790A Operators Manual viii...
Page 16: ...5790A Operators Manual 1 2...
Page 34: ...5790A Operators Manual 2 2...
Page 40: ...5790A Operators Manual 2 8...
Page 42: ...5790A Operators Manual 3 2...
Page 48: ...5790A Operators Manual 3 8...
Page 108: ...5790A Operators Manual 6 2...
Page 146: ...5790A Operators Manual 7 2...
Page 164: ...5790A Operators Manual 7 20...
Page 166: ...5790A Operators Manual 8 2...
Page 170: ...5790A Operators Manual 8 6...
Page 172: ...5790A Operators Manual 9 2...
Page 176: ...5790A Operators Manual...
Page 185: ...B 1 Appendix B ASCII and IEEE 488 Bus Codes...
Page 186: ...5790A Operators Manual B 2...
Page 187: ...Appendices ASCII and IEEE 488 Bus Codes B B 3...
Page 188: ...5790A Operators Manual B 4...
Page 204: ...5790A Operators Manual C 16...
Page 210: ...5790A Operators Manual D 6...