
Status and Events
OA 5000 Series User Manual 3 --- 3 9
The OA 5000 status and event reporting systemcontains two queues: the
Output Queue and the Event Queue.
The Output Queue
The Output Queue stores up to8000 bytes of a query response while it is
waiting to be output. The Output Queueis emptied each time a new com-
mand or query message is received, so that any query response must be
read before the next command or queryis sent, or responses to earlier
queries will be lost,and an error may result.
The Event Queue
The Event Queue stores detailedinformation on up to 32 events. If more
than 32 events stack up in the Event Queue, the 32nd event is replaced by
event code 350, “Toomany events.”
Read the Event Queue with either the EVENT? query (which returns onlythe
event number) or with the EVMSG? query (which returns the event number
and a text description ofthe event). Reading an event removes it fromthe
queue.
Before reading an event from the Event Queue, youmust use the *ESR?
query to read the summary ofthat event from the SESR. This makes the
events summarized by the *ESR? read availableto the EVENT? and
EVMSG? queries, and empties the SESR.
Reading the SESR erases any events that were summarized by a previous
*ESR? read but not read from the Event Queue. Events that followan *ESR?
read are put in the Event Queue but are not availableuntil *ESR? is used
again.
Figure 3-11, on page 3---40,shows how to use the status and event handl-
ing system. In the explanationthat follows, numbers in parentheses refer to
numbers in Figure 3-11.
When an event occurs, a signal is sent tothe D ESER (1). If that type of
event is enabled in the DESER (that is, if the bitfor that event type is set to
1), the appropriate bit in the SESR isset to one and the event is recorded in
the Event Queue (2). If the corresponding bitin the ESER is also enabled
(3), then the ESB bit in the SBR is set to one(4).
When output is sent to the OutputQueue, the MAV bit in the SBR is set to
one (5).
When a bit in the SBR is set toone and the corresponding bit in the SRER is
enabled (6), the MSS bit in the SBR is set to one and a servicerequest is
generated (7).
QueuesEvent HandlingSequence