8-9
(4) Clearing the STB register using a ∗CLS common command
The ∗CLS common command clears all status structures, except the output
queue and MAV summary message (i.e., event registers and queues), and
the corresponding summary messages.
The output queue and the MAV summary message are also cleared in the
following case:
30 WRITE @ADR : “CNT 1305.8 ; SPN 1000”
40 WRITE @ADR : “∗CLS ; CNT?”
That is, issuing a ∗CLS command after the <PROGRAM MESSAGE TER-
MINATOR> element or before the <Query MESSAGE UNIT> element
clears all status bytes. With this method, all unread messages in the output
queue are cleared and the MAV message becomes false. When replying to
the ∗STB?, the MSS message becomes false, too. Values of enable registers
are not affected by ∗CLS.
7
ESB
MAV
3
2
1
0
MSS 6 RQS
Standard event
register
Status summary
message
Status Byte Register
……Output Queue
Extended event
register or queue
Extended event
register or queue
Extended event
register or queue
Extended event
register or queue
Extended event
register or queue
(Queue is not used)
(Queue is not used)
(Not used)
(Not used)
(Not used)
Service request
occurrence
Data
Data
Data
Data
Data
8.2 Status Byte (STB) Register