COMMAND REFERENCE

4 - 27

*STB?

Status Byte

Syntax:

*STB?

Response:

<integer>

Description:

The *STB? query reports the contents of the Status Byte register (STB). The range of the 8-bit STB contents is between 0 and 255 decimal. The Status Byte Register contains the summary status of all overlaying status registers and queues.

Notes:

-OPER = OPERation status (bit 7)

Contains the summary of the OPERation status register structure.

-RQS = Requested Service (bit 6)

Indicates that the device requests for service, i.e., SRQ=1 in the GPIB interface. It differs from the MSS bit in that the RQS bit is cleared after a serial poll. It is set true again only, when a new event occurs that requires service.

-MSS = Master Summary Status (bit 6)

Indicates that there is an event that causes the device to request service. The MSS bit is cleared when the event(s) in the overlaying status structure that caused the Service Request are cleared.

-ESB = Event Summary Bit (bit 5)

Contains the summary of the Standard Event Status register structure.

-MAV = Message Available (bit 4)

Indicates whether the Output Queue contains at least one message (bit = 1) or is empty (bit = 0).

-QUES = QUEStionable status (bit 3)

Contains the summary of the QUEStionable status register structure.

-bit 2 = Error/Event queue bit

Indicates whether the Error/Event queue contains at least one message (bit = 1) or is empty (bit = 0).

-bit 1 = Device Dependent Status bit (not used)

-bit 0 = Device Dependent Status bit (not used)

Example:

Send *STB?

Read 4 4 is equal to the binary value #B100. This means that bit 2 is set, indicating that there is an error message in the Error/event Queue.

Page 127
Image 127
Fluke PM-3370B, PM-3380B, PM-3390B, PM-3394B, PM-3384B user manual STB? Status Byte, Syntax STB? Response Integer Description