49
*ESR?
Event Status Register Query
Syntax:
*ESR?
Parameters:
None
Function:
This query returns the contents of the Event Status Register and clears the
Event Status Register except for bit 3. Bit 3 is determined by the state of the
Device Event and Device Event Enable registers. The *CLS command will also
set this register to 0.
The Event Status register is AND’ed with the Event Status Enable register. If
any bit is set in the result of this AND’ing operation the ESB bit (bit 5) of the
Status Byte will be set. The Status Byte can be used in conjunction with the
Service Request Enable register to generate a service request. See Appendix C
for a detailed explanation of the Event Status Register.
The Event Status Register is an 8 bit, bit mapped register, with each bit
signifying a different condition. The bits are listed below, most significant bit
first:
Operation Complete
Request Control (Not Used)
Query Error
Device Error
Execution Error
Command Error
User Request (Not Used)
Power On (Not Used)
0
1
2
3
4
5
6
7
Standard Event Status Register
Returns:
<value>
<value> is of type <number> and represents an unsigned integer in the range 0
to 255.
Related Commands:
*CLS, *ESE, *ESE?, EVENT, EVENTEN, EVENTEN?, *IST?,
*PRE, *PRE?, *SRE, *SRE?, *STB?
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com