
13.3 Status Reports
13-31
IM GS210-01EN
Communication Commands
3
2
1
4
5
6
7
8
9
10
11
12
13
14
15
App
Index
Reading the Extended Event Register and
Condition Register
You can use the :STATus:EVENt? command to read
the contents of the extended event register. The
register is cleared after it is read. You can use the
:STATus:CONDition? command to read the contents
of the condition register. The register does not change
even if it is read.
Clearing the Extended Event Register
The extended event register is cleared in the following
three cases.
• When the contents of the extended event register
are read using the :STATus:EVENt? command.
• When a *CLS command is received
• When the GS200 is restarted.
13.3.5 Output Queue and Error
Queue
Output Queue
The output queue stores query response messages.
As shown below, data is stored in order and read from
the oldest message first. The output queue is cleared
in the following cases.
• When a new message is received from the
controller.
• When a deadlock occurs (see page 13-3).
• When a device clear command (DCL or SDC) is
received.
• When the GS200 is restarted.
The *CLS command does not clear the output queue.
You can determine whether or not the output queue is
empty by checking bit 4 (MAV) in the status byte.
D1
D2
D1
D2
D1
Error Queue
When an error occurs, the error queue stores the
error number and message. For example, if the
GS200 receives an incorrect program message from
the controller, the error number (–113) and the error
message (“Undefined header”) are stored in the error
queue when the GS200 displays the error message.
You can use the :SYSTem:ERRor? query to read the
contents of the error queue. Like the output queue, the
messages in the error queue are read from the oldest
one first.
If the error queue overflows, the last message is
replaced with the following message: –350, “Queue
overflow.”
The error queue is cleared in the following cases.
• When a *CLS command is received.
• When the GS200 is restarted.
You can determine whether or not the error queue is
empty by checking bit 2 (EAV) in the status byte.