Reading Registers; Table 13-2 Scpi Command — Data Formats For Reading Status Registers - Keithley 6514 Instruction Manual

System electrometer
Hide thumbs Also See for 6514:
Table of Contents

Advertisement

13-6
Status Structure
Figure 13-2
A. Bits 0 through 7
16-bit status
register
Binary Value
Decimal Weights
B. Bits 8 through 15
Binary Value
Decimal Weights

Reading registers

Any register in the status structure can be read by using the appropriate query (?) command.
The following explains how to interpret the returned value (response message). The actual query
commands are covered later in this section (see Tables 13-3 through 13-6).
The response message will be a value that indicates which bits in the register are set. That
value (if not already binary) will have to be converted to its binary equivalent. For example, for
a binary value of 100101, bits B5, B3, and B0 are set.
The returned value can be in the binary, decimal, hexadecimal, or octal format. The
FORMat:SREGister command is used to select the data format for the returned value (see Table
13-2).
For non-decimal formats, one of the following headers will accompany the returned value to
indicate which format is selected:
#B = Header for binary values
#H = Header for hexadecimal values
#Q = Header for octal values
Table 13-2
SCPI command — data formats for reading status registers
Command
:FORMat
:SREGister <name>
Bit Position
B7
B6
0/1
0/1
128
7
(2 )
(2 )
Bit Position
B15
B14
0/1
0/1
32768
16384
15
(2 )
(2 )
Description
FORMat subsystem
Select data format for reading status registers:
<name> = ASCii
B5
B4
0/1
0/1
64
32
16
5
6
4
(2 )
(2 )
B13
B12
0/1
0/1
8192
4096
12
14
13
(2 )
(2 )
HEXadecimal
OCTal
BINary
B3
B2
B1
0/1
0/1
0/1
8
4
2
3
2
1
(2 )
(2 )
(2 )
B11
B10
B9
0/1
0/1
0/1
2048
1024
512
11
10
9
(2 )
(2 )
(2 )
Decimal format
Hexadecimal format
Octal format
Binary format
B0
0/1
1
0
(2 )
B8
0/1
256
8
(2 )
Default
ASCii

Advertisement

Table of Contents
loading

Table of Contents