7-10
Status Structure
Models 2510 and 2510-AT User’s Manual
Status byte and service request commands
The commands to program and read the Status Byte Register and Service Request Enable
Register are listed in
. For details on programming and reading registers, see
“Programming enable registers,” page 7-5
NOTE
To reset the bits of the Service Request Enable Register to 0, use 0 as the param-
eter value for the *SRE command (i.e. *SRE 0).
Programming example — set MSS (B6) when error occurs
The first command of sequence in
enables EAV (error available). When an
invalid command is sent (line 4), bits B2 (EAV) and B6 (MSS) of the Status Byte Register
set to 1. The last command reads the Status Byte Register using the binary format (which
directly indicates which bits are set). The command to select format (FORMat:SREGister)
is documented in
. To determine the exact nature of the error, you will have to
read the Error Queue (see
).
Table 7-3
Status byte and service request enable register commands
Command
Description
Default
*STB?
Read Status Byte Register
*SRE <NDN> or <NRf>
Program the Service Request Enable Register:
<NDN> = #Bxx…x
Binary format (each x = 1 or 0)
= #Hx
Hexadecimal format (x = 0 to FF)
= #Qx
Octal format (x = 0 to 377)
<NRf>
= 0 to 255
Decimal format
(Note)
*SRE?
Read the Service Request Enable Register
Note: *CLS and STATus:PRESet have no effect on the Service Request Enable Register.
Table 7-4
Status byte programming example
Command
Description
*CLS
Clear Error Queue
*SRE 4
Enable EAV
FORM:SREG BIN
Select binary format
*XYZ
Generate error
*STB?
Read Status Byte Register
Summary of Contents for TEC SourceMeter 2510
Page 194: ...A Specifications...
Page 197: ...B StatusandErrorMessages...
Page 206: ...C IEEE 488BusOverview...
Page 221: ...D IEEE 488andSCPI ConformanceInformation...
Page 225: ...E ExamplePrograms...
Page 233: ...F GPIB488 1Protocol...