5522A
Operators Manual
5-34
Table 5-10. Response Data Types (cont.)
Data Type Description
Binary Block Data
A special data type defined by the IEEE-488.2 standard. This type is
used in *PUD? query. It is defined as follows:
#(non-zero digit) (digits) (user data)
The non-zero digit specifies the number of characters that will follow in
the <digits> field. Characters allowed in the digits field are 0 through 9
(ASCII 48 through 57 decimal). The value of the number in the <digits>
field in decimal defines the number of user data bytes that follow in the
<user data> field. The maximum response is 64 characters.
Example: *PUD “test1”; *PUD?
returns: #205test1
Checking 5522A Status
The programmer has access to status registers, enable registers, and queues in the
Calibrator to indicate various conditions in the instrument as shown in Figure 5-8. Some
registers and queues are defined by the IEEE-488.2 standard. The rest are specific to the
Calibrator. In addition to the status registers, the Service Request (SRQ) control line, and
a 16-element buffer called the Error Queue provide status information. Table 5-11 lists
the status registers and gives the read/write commands and associated mask registers.
Table 5-11. Status Register Summary
Status Register
Read
Command
Write
Command
Serial Poll Status Byte (STB) *STB? ⎯
Service Request Enable Register (SRE) *SRE? *SRE
Event Status Register (ESR) *ESR? ⎯
Event Status Enable Register (ESE) *ESE? *ESE
Instrument Status Register (ISR) ISR? ⎯
Instrument Status Change Register (ISCR) ISCR? ⎯
ISCR 1 to 0 transition ISCR0? ⎯
ISCR 0 to 1 transition ISCR1? ⎯
Instrument Status Change Enable Register (ISCE) ISCE? ISCE
ISCE 1 to 0 transition ISCE0? ISCE0
ISCE 0 to 1 transition ISCE1? ISCE1
Each status register and queue has a summary bit in the Serial Poll Status Byte. Enable
registers are used to mask various bits in the status registers and generate summary bits in
the Serial Poll Status Byte. For IEEE-488 interface operation, the Service Request Enable
Register is used to assert the SRQ control line on detection of any status condition or
conditions the programmer chooses. For RS-232 interface operation, the SRQSTR string
is sent over the serial interface when the SRQ line is set. (See the SRQSTR command
description in Chapter 6 for more information.)