Specifications

Table Of Contents
Chapter 2 29
Programming Command Guidelines
Using the Status Registers
2. Programming Command
Guidelines
Standard Event Status Register
The standard event status register for the Test Set is used to determine the specific
event that set bit 5 in the status byte register as follows:
Figure 2-4 Standard Event Status Register
The standard event status register contains the following bits:
Table 2-3 Bits in the Standard Event Status Register
To query the standard event status register, send the command *ESR?. The
response will be the decimal sum of the bits which are set to 1. For example, if the
bit 7 and bit 3 are set to 1, the decimal sum of these two bits is 128 plus 8 (see
Figure 2-1 on page 26). So the decimal value 136 is returned.
Bit Description
0 If all pending operations were completed following execution of the *OPC
command, this bit is set to 1.
1 This bit is always set to 0.
2 If a query error has occurred, this bit is set to 1.
3 If a device dependent error has occurred, this bit is set to 1. Device dependent
errors have error numbers from 399 to 300 and 1 to 32767.
4 If an execution error has occurred, this bit is set to 1. Execution errors have error
numbers from 299 to200.
5 If a command error has occurred, this bit is set to 1. Command errors have error
numbers from 199 to 100.
6 This bit is always set to 0.
7 If the instrument has been turned off and then on, this bit is set to 1.