8-11
IM 704420-01E
Communication Function
8
8.6.4 Responses
When the controller sends a message unit that has a
question mark (
?
) in its program header (query), the
instrument returns a response message to the query.
A response message is returned in one of the following
two forms:
• Response consisting of a header and data
If the response can be used as a program message
without any change, it is returned with a command
header attached.
Example;
SAMPLE:GATE:MODE?<PMT>
→
:SAMPLE:GATE:
MODE EVENT<RMT>
• Response consisting of data only
If the response cannot be used as a program
message unless changes are made to it (query-only
command), only the data section is returned.
However, there are query-only commands that
return responses with the header attached.
Example;
STATUS:ERROR?<PMT>
→
0,"NO ERROR"<RMT>
When you wish to return a response without a
header
Responses that return both header and data can be
set so that only the data section is returned. Use
the “
COMMunicate:HEADer
” command for this task.
Abbreviated form
The response header is normally returned with the
lower-case section removed. You can change this
so that the response header is in the full form. Use
the “
COMMunicate:VERBose
” command for this task.
The sections enclosed by braces (
[]
) are also
omitted in the abbreviated form.
8.6.5 Data
Data
Data contain conditions and values that are written
after the header. A space is used to separate the
header and data. Data are classified as follows:
Data
Description
<Decimal>
Value expressed as a decimal number
(Example; Recall the information to be
specified
→
RECALL 2
)
<Voltage><Time>
Physical value
<Phase>
(Example; Gate time
<Percent>
→
SAMPle:GATE:TIME 1MS
)
<Register>
Register value expressed as either binary,
octal, decimal or hexadecimal.
(Example; Extended event register value
→
STATUS:EESE #HFE
)
<Character data>
Predefined character string (mnemonic).
Selectable from
{ }
(Example; Gate mode selection
→
SAMPle:GATE:MODE {EVENt|TIME}
)
<Boolean>
Indicates ON and OFF. Use “
ON
,” “
OFF
,” or a
value.
(Example; Turn ON the equalizer
display
→
INPUT:EQ:MODE ON
)
<Decimal>
<Decimal> indicates a value expressed as a decimal
number, as shown in the table below. Decimal values
are given in the NR form as specified in the ANSI
X3.42-1975.
Symbol
Description
Example
<NR1>
Integer
125 –1 +1000
<NR2>
Fixed point number
125.0 –.90 +001.
<NR3>
Floating point number
125.0E+0 –9E–1 +.1E4
<NRf>
Any of the forms
<NR1>
to
<NR3>
is allowed.
• The instrument can receive decimal values that are
sent from the controller in any of the forms,
<NR1>
to
<NR3>
. This is represented by
<NRf>
.
• For response messages that the instrument returns
to the controller, a specific form
<NR1>
to
<NR3>
is
defined for each query. The same form is used
regardless of the size of the value.
• For the
<NR3>
format, the “
+
” sign after the “
E
” can
be omitted. However, the “
–
” sign cannot be
omitted.
• If a value outside the setting range is entered, the
value will be changed to the closest value inside the
range.
• If a value has more significant digits than the
available resolution, the value is rounded.
8.6 Program Format