88
────────────────────────────────────────────────────
7.3 Command Transfer Methods
────────────────────────────────────────────────────
Response format
When a command is sent to 3158 processes the command. When processing is
completed, 3158 always returns a response.
(1) When there is no information from 3158,
OK ( + delimiter )
(2) When there is information from 3158 (measurement values, etc.),
Response character string related to the command ( +delimiter )
(3) When the command contained an error,
CMDERR(+delimiter) : Command error
EXEC ERR ( + delimiter ) : Execution error
(4) When the command contained an Transmission error,
TIME OUT ERR ( + delimiter ):
Time out error (When the delimiter is not transmitted for
approximately 10 seconds)
SI0 ERR : Serial Transmission error
Parameters
The 3158 uses parameters composed of decimal numbers. There are three different
formats for decimal data: NR1, NR2, and NR3. Each has two values: one with a
code and one without it. A value without a code is regarded as a positive number.
If a number exceeds the accuracy resolution of the 3158, the value is rounded up or
down.
NR1 format: Integer data
+12, -23, 34
NR2 format: Fixed point numbers
+1.23, -23.45, 3.456
NR3 format: Floating point numbers.
+1E-2, -2.3E+4
The format that contains all three formats is referred to as the "NRf format." In the
3158, a format is specified for each command. For details, see 7.5, "Transmission
and Response Formats."
Delimiter
Depending on transmission direction, the delimiter is as follows.
From computer to 3158: CR or CR + LF
From 3158 to computer: CR + LF