*ESR
*ESR
(Event Status Register)
query
The *ESR query returns the contents of the Standard Event Status
Register. Reading the register clears the Standard Event Status Register.
Query Syntax:
*Esw
Returned Format:
c
status
>
-G
NL
z
where:
c-status> ::= integer from Oto 255
Example:
10 DIM
Esr-event$[lOO]
20 OUTPUT XXX;"*ESR?"
30 ENTER XXX;Esr-event$
40 PRINT Esr-event$
50 END
With the example, if a command error has occurred the variable
“Esr-event” will have bit 5 (the CME bit) set.
Table 5-2 shows the Standard Event Status Register. The table shows
each bit in the Standard Event Status Register, and the bit weight. When
you read Standard Event Status Register, the value returned is the total
bit weights of all bits that are high at the time you read the byte.
Common Commands
5-6
HP 1650B/HP 16518
Programming Reference