User`s manual

The Standard Event
Status Group
The Standard Event Status Group monitors command execution,
programming errors, and the power-on state. It is the status group used by
the error checking routine in the BASIC example programs found
throughout the manual.
The Standard Event
Status Register
The conditions monitored by the Standard Event Status Register are
identified below.
76543210
PON unused CME EXE DDE QYE unused OPC
Power-on (PON): Bit 7 is set (1) when an off-to-on transition has
occurred.
Command Error (CME): Bit 5 is set (1) when an incorrect
command header is received, or if an unimplemented common
command is received.
Execution Error (EXE): Bit 4 is set (1) when a command
parameter is outside its legal range.
Device Dependent Error (DDE): Bit 3 is set (1) when an error
other than a command error, execution error, or query error has
occurred.
Query Error (QYE): Bit 2 is set (1) when the AFG output queue is
read and no data is present, or when data in the output queue has
been lost.
Operation Complete (OPC): Bit 0 is set (1) when the *OPC
command is received. *OPC is used to indicate when all pending (or
previous) AFG commands have completed.
Note that bits 7, 5, 4, 3, 2, and 0 have corresponding decimal values of 128,
32, 16, 8, 4, and 1.
Reading the Standard Event Status Register
The settings of the Standard Event Status Register can be read with the
command:
*ESR?
The bits are cleared at power-on, or by *ESR? or *CLS.
Chapter 9 AFG Status 439