IEEE-488 Reference
4-38
4.0.3
*ESE?
event enable query
Purpose
To read the contents of the Standard Event Enable Register.
Format
*ESE?
Description
This command is used to acquire the value (in decimal) of the Standard Event Enable Register.
The binary equivalent of the decimal value determines which bits in the register are set. When
the *ESE? query command is sent, the decimal value is placed in the Output Queue. When the
Model 2001 is addressed to talk, the value is sent from the Output Queue to the computer.
For example, for an acquired decimal value of 48, the binary equivalent is 00110000. For this
binary value, bits B4 and B5 of the Standard Event Enable Register are set. For information on
the Standard Event Enable Register, refer to paragraph 4.6.
The *ESE? query command does not clear the Standard Event Enable Register.
Programming Example
10 OUTPUT 716; “*ESE?” ! Send query command
20 ENTER 716; A$ ! Address 2001 to talk
30 PRINT A$ ! Display value of register contents
40 END
4.0.4
*ESR?
event status register query
Purpose
To read the contents of the Standard Event Status Register and clear it.
Format
*ESR?
Defaults
Power-up Clears register
*CLS Clears register
*RST No effect
:STATus:PRESet No effect
DCL, SDC No effect
Description
This command is used to acquire the value (in decimal) of the Standard Event Status Register
(see Figure 4-16). The binary equivalent of the returned decimal value determines which bits in
the register are set. When the *ESR? command is sent, the decimal value is placed in the Output
Queue and the Standard Event Status Register is cleared. When the Model 2001 is addressed to
talk, the value in the Output Queue is sent to the computer.
A set bit in this register indicates that a particular event has occurred. For example, for an ac-
quired decimal value of 48, the binary equivalent is 00110000. For this binary value, bits B4 and
B5 of the Standard Event Status Register are set. These set bits indicate that a device-dependent
error and command error have occurred.
The bits of the Standard Event Status Register are described as follows:
Bit B0, Operation Complete (OPC)
Set bit indicates that all pending selected device oper-
ations are completed and the Model 2001 is ready to accept new commands. This bit will only
set in response to the *OPC? query command (see paragraph 4.10.7).
Bit B1
Not Used.