166
────────────────────────────────────────────────────
11.3 Details of the RS-232C Interface
────────────────────────────────────────────────────
1.3.6 Data Formats
The 3166 uses character string data and decimal numeric data, and the type
used varies according to the command in question.
(1) Character data
Character string data must always begin with an alphabetic character, and
the following characters can be either alphabetic characters or numerals.
Although in character data either upper case letters or lower case letters are
accepted, response messages output by the 3166 are always in upper case
letters.
":VOLTage:AUTO"
(2) Decimal data
The numeric data values are all represented in decimal, in three formats
identified as NR1, NR2 and NR3, and each of these can appear as either a
signed number or an unsigned number. Unsigned numbers are taken as
positive.
Further, if the accuracy of a numerical value exceeds the range with which the
3166 can deal, it is rounded off. (5 and above is rounded up; 4 and below is
rounded down).
NR1 format: integer data (+12, -23, 34)
NR2 format: fixed point numbers (+1.23, -23.45, 3.456)
NR3 format: floating point numbers (+1.2E-2, -2.3E+4)
The term "NRf format" includes all these three formats.
When the 3166 is receiving it accepts NRf format. When it is sending
response messages it utilizes whichever one of the formats NR1 to NR3 is
indicated in the particular command.
All of the following examples set the PT 10:
":SCALe:PT 10"
":SCALe:PT 10.2"
":SCALe:PT 1.04E1"