Status Byte And Service Request Commands; Status Register Sets; Register Bit Descriptions - Keithley 2308 User Manual

Portable device battery/charger simulator
Hide thumbs Also See for 2308:
Table of Contents

Advertisement

Section 7: Status Structure

Status byte and service request commands

The commands to program and read the status byte register and service request enable register
are listed in
enable registers
NOTE
Programming example — read status byte
The following command sequence enables EAV (error available), sends an invalid command, and
then reads the status byte register:
*CLS
*SRE 4
BAD:COMMand
*STB?

Status register sets

As shown in
supply: standard event status, operation event status, measurement event status and
questionable event status.

Register bit descriptions

Standard event status
The used bits of the standard event register (shown in
Bit B0, operation complete (OPC) - Set bit indicates that all pending selected device
operations are completed and the power supply is ready to accept new commands. This bit
only sets in response to the *OPC command (see
Bit B2, query error (QYE) - Set bit indicates that you attempted to read data from an empty
output queue.
Bit B3, device-dependent error (DDE) - Set bit indicates that an instrument operation did
not execute properly due to some internal condition.
Bit B4, execution error (EXE) - Set bit indicates that the power supply detected an error
while trying to execute a command.
7-8
Table
7-3. For details on programming and reading registers, see
and
Reading
registers.
To reset the bits of the service request enable register to 0, use 0 as the
parameter value for the *
Table 7-3
Common and SCPI Commands - status byte and service request enable registers
Command
Description
*STB?
Read status byte register
*SRE <NRf>
Program the service request enable register: 0 to 255
*SRE?
Read the service request enable register
Note: *CLS and STATus:PRESet have no effect on the service request enable register.
Figure
7-1, there are four status register sets in the status structure of the power
Return to
Model 2308 Portable Device Battery/Charger Simulator User's Manual
SRE
command (i.e.
' Clear Status Byte Register.
' Enable EAV.
' Send an invalid command to generate an error.
' Read status byte. The value 68 will be returned to indicate
that bits B2 (EAV) and B6 (MSS) of the Status Byte Register
are set.
Figure
Section Topics
Programming
*SRE 0
).
7-3) are described as follows:
Section 8
for details on *OPC).
2308-900-01 Rev. A / July 2008
Default
(Note)

Advertisement

Table of Contents
loading

Table of Contents