Model 6517B Electrometer Reference Manual
Section 12: Common commands
6517B-901-01 Rev. C / August 2015
12-13
*STB? (status byte query)
This command reads the status byte register.
Details
The
*STB?
query command is used to acquire the value (in decimal) of the status byte register. The
status byte register is shown in the following table. The binary equivalent of the decimal value
determines which bits in the register are set.
All bits, except Bit 6, in this register are set by other event registers and queues. Bit 6 sets when one
or more enabled conditions occur.
The
*STB?
query command does not clear the status byte register. This register can only be cleared
by clearing the related registers and queues. Register and queue structure are explained in
Status
structure
(on page 13-1).
For example, for an acquired decimal value of 48, the binary equivalent is 00110000. This binary
value indicates that Bits 4 and 5 of the status byte register are set.
Status bye register
Bit
position
B7 B6 B5 B4 B3 B2 B1 B0
Event
OSB MSS,
RQS
ESB MAV QSB EAV — MSB
Decimal
Weighting
128
(2
7
)
64
(2
6
)
32
(2
5
)
16
(2
4
)
8
(2
3
)
4
(2
2
)
—
1
(2
0
)
Value
0/1 0/1 0/1 0/1 0/1 0/1 — 0/1
Values
are:
1 = Event Bit Set
0 = Event Bit Cleared
Events
are:
OSB = Operation Summary Bit
MSS = Master Summary Status
RQS = Request Service
ESB = Event Summary Bit
MAV = Message Available
QSB = Questionable Summary Bit
EAV = Error Available
MSB = Measurement Summary BitWhere:
The bits of the status byte register are described as follows:
Bit 0, measurement status (MSB):
Set bit indicates that a measurement event has occurred. The
event can be identified by reading the measurement event status register using the
:STATus:MEASurement?
command (see
SCPI command reference
(on page 14-1)).
Bit 1:
Not used.