
13.3 Status Reports
13-29
IM GS210-01EN
Communication Commands
3
2
1
4
5
6
7
8
9
10
11
12
13
14
15
App
Index
13.3.3 Standard Event Register
Standard Event Register
6
PON
7
5
4
3
2
1
0
CME EXE DDE QYE
OPC
Bits 1 and 6
Not used (always 0)
Bit 0 OPC (Operation Complete)
After the GS200 receives the *OPC command (see
section 13.2.11), this bit is set to 1 when the operation
specified by the *OPC command completes.
Bit 2 QYE (Query Error)
This bit is set to 1 when a query command is received,
but the output queue is empty or the data is lost.
Bit 3 DDE (Device Error)
This bit is set to 1 when a command cannot be
executed for internal reasons other than a command
syntax error or command execution error.
Bit 4 EXE (Execution Error)
This bit is set to 1 when the command syntax is correct,
but the command cannot be executed in the current
state.
Bit 5 CME (Command Error)
This bit is set to 1 when there is a command syntax
error.
Bit 7 PON (Power On)
This bit is set to 1 when the GS200 turns on.
Bit Masking
To mask a certain bit of the standard event register so
that it does not cause bit 5 (ESB) in the status byte to
change, set the corresponding bit of the standard event
enable register to 0.
For example, to mask bit 2 (QYE) so that ESB will not
be set to 1 even if a query error occurs, set bit 2 of
the standard event enable register to 0. Do this using
the *ESE command. To query whether each bit of the
standard event enable register is 1 or 0, use *ESE?.
For details on the *ESE command, see section 13.2.11.
Standard Event Register Operation
The standard event register indicates six types of
events that occur inside the GS200. When one of the
bits in this register is 1 (and the corresponding bit of
the standard event enable register is also 1), bit 5 (ESB)
in the status byte is set to 1.
Example
1. A query error occurs.
2. Bit 2 (QYE) is set to 1.
3. When bit 2 of the standard event enable register
is 1, bit 5 (ESB) in the status byte is set to 1.
You can also check what type of event occurred in the
GS200 by reading the contents of the standard event
register.
Reading the Standard Event Register
You can use the *ESR? command to read the contents
of the standard event register. The register is cleared
after it is read.
Clearing the Standard Event Register
The standard event register is cleared in the following
three cases.
• When the contents of the standard event register
are read using the *ESR command.
• When a *CLS command is received
• When the GS200 is restarted.