5-12
Programming Commands
Common Commands
*STB?
The *STB (status byte) query returns the current value of the instrument’s
status byte.
Syntax
*STB?
Description
The master summary status (MSS) bit 6 indicates whether or not the device
has at least one reason for requesting service. When you read the status byte
register, the value returned is the total of the bit weights of all of the bits set to
one at the time you read the byte. The following table shows each bit in the
status byte register and its bit weight. The *STB? query does not affect the
contents of the status byte register.
Query Response
<integer>
from 0 to 255.
Example
OUTPUT 720;”*STB?”
ENTER 720;Value
PRINT Value
Table 5-6. Status Byte Register
Bit Bit Weight Condition
7 128 Not Used
6 64 Master Summary Status (MSS)
5 32 Event Status Bit (ESB)
4 16 Message Available (MAV)
3 8 Not Used
2 4 Error queue status
1 2 Not Used
0 1 Not Used