Checking m2000 status, Serial poll status byte (stb), Figure 7 status register overview – Martel Electronics M2000 User Manual
Page 15
Checking M2000 Status
You have access to status registers, enable registers, and queues in the M2000 to indicate
various conditions in the instrument as shown in Figure 7. 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 8 lists the status registers and gives the
read/write commands and associated mask registers.
Table 8. Status Register Summary
Status Register
Read
Write
Command
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
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 for more information.)
Serial Poll Status Byte (STB)
The Calibrator sends the serial poll status byte (STB) when it responds to a serial poll. This
byte is cleared (set to 0) when the power is turned on. The STB byte is defined as shown in
Figure 7. Refer to the *STB? Command for RS-232 interface operation for more information.
15
0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
&
&
&
&
&
&
&
&
Logical OR
Event Status
Register
Read using *ESR?
Event Status
Enable Register
Read using *ESE?
Write using *ESE
PON 0
CMEEXEDDEQYE0
OPC
0
0
0
0
1
2
3
4
5
7
&
&
&
&
&
&
&
Logical OR
Status Byte Register
Service Request
Enable Register
ESB MAV
Read using *SRE?
Write using *SRE
Error Queue
Read using ERR?
Read by Serial Poll
Read using *STB?
Service Request
Generation
SRQ
on
IEEE bus
Output Buffer
EAV
Data
Available?
Error
Available?
MSS
6
RQS
0
Figure 7
Status Register Overview
Read using FAULT?