2600AS-901-01 Rev. B / September 2008
Return to
C-13
Series 2600A System SourceMeter® Instruments Reference Manual
Appendix C: Status Model
Figure C-9
16-bit status register
When using a numeric parameter, registers are programmed by including the appropriate
<mask>
value, for example:
*ese <mask>
status.standard.enable = <mask>
To convert from decimal to binary, use the information shown in
. For example, to set
bits B0, B4, B7, and B10, a decimal value of 1169 would be used for the mask parameter (1169 =
1 + 16 + 128 + 1024).
Reading registers
Any register in the status structure can be read either by sending the common command query
(where applicable), or by including the script command for that register in either the
() or
print(tostring())
command. The
print()
command returns a numeric value, while the
print(tostring())
command returns the string equivalent. For example, any of the following
commands requests the Service Request Enable register value:
*SRE?
print(tostring(status.request_enable))
print(status.request_enable)
The response message will be a decimal value that indicates which bits in the register are set. That
value can be converted to its binary equivalent using
. For example, for a decimal value of
37 (binary value of 100101), bits B5, B2, and B0 are set.
Status byte and service request (SRQ)
Service request is controlled by two 8-bit registers: the Status Byte Register and the Service
Request Enable Register.
shows the structure of these registers.
Status byte register
The summary messages from the status registers and queues are used to set or clear the
appropriate bits (B0, B1, B2, B3, B4, B5, and B7) of the Status Byte Register. These summary bits
do not latch, and their states (0 or 1) are solely dependent on the summary messages (0 or 1). For
(2
7
)
(2
6
)
(2
5
)
(2
4
)
(2
3
)
(2
2
)
(2
1
)
(2
0
)
(2
15
) (2
14
) (2
13
) (2
12
) (2
11
) (2
10
)
(2
9
)
(2
8
)
32768 16384
Bit Position
Binary Value
Decimal
Weights
B7
B6
B5
B4
B3
B2
B1
B0
0/1
0/1
0/1
0/1
0/1
0/1
0/1
0/1
128
64
32
16
8
4
2
1
B15
B14
B13 B12
B11
B10
B9
B8
8192 4096 2048 1024 512
256
0/1
0/1
0/1
0/1
0/1
0/1
0/1
0/1
Bit Position
Binary Value
Decimal
Weights
B. Bits 8 through 15
A. Bits 0 through 7