
3-1
IM 703155-17E
3
Before Programming
Chapter 3 Before Programming
<Program Data>
If certain conditions are required in executing a
command, program data is added. A space (ASCII
code “20H”) separates the program data from the
header. If there are multiple sets of program data, they
are separated by commas (,).
For details, see page 3-4.
Ex. :CLOCk:REFerence INTernal<PMT>
Header Data
Response Messages
<Response Message Unit>
A response message consists of one or more
response message units; each response message unit
corresponds to one response.
Response message units are separated by a
semicolon (;).
Ex.
Unit Unit
:CLOCk:REFrence:INTernal;INPut INTernal<RMT>
<RMT>
<RMT> is a response message terminator. It is NL.
Response Message Unit Format
The response message unit format is shown below.
<RMT>
;
<Response message unit>
<Response Header>
A response header sometimes precedes the response
data. A space separates the data from the header.
For details, see page 3-3.
<Response Data>
Response data contains the content of the response.
If there are multiple sets of response data, they are
separated by commas (,). For details, see page 3-4.
Ex.
100.00E-3<RMT> :CLOCk:REFerence INTernal<RMT>
HeaderData Data
If there are multiple queries in a program message,
responses are made in the same order as the queries.
In most cases, a single query returns a single
response message unit, but there are a few queries
that return multiple units. The first response message
unit always corresponds to the first query, but the nth
response unit may not necessarily correspond to the
nth query. Therefore, if you want to make sure that
every response is retrieved, divide the program
messages into individual messages.
3.1 Messages
Messages
Messages are used to exchange information between
the controller and the instrument. Messages that are
sent from the controller to the instrument are called
program messages and messages that are sent back
from the instrument to the controller are called
response messages.
If a program message contains a message unit that
requests a response (a query), the instrument returns
a response message upon receiving the program
message. A single response message is always
returned in response to a single program message.
Program Messages
The program message format is shown below.
<PMT>
;
<Program message unit>
<Program Message Unit>
A program message consists of one or more program
message units; each unit corresponds to one
command. The instrument executes the received
commands in order.
Each program message unit is separated by a
semicolon (;).
For details regarding the format of the program
message unit, see the next section.
Example
Unit Unit
:CLOCk:REFerence INTernal;INPut INTernal<PMT>
<PMT>
PMT is a program message terminator.
NL (New Line): Same as LF (Line Feed). ASCII code
“0AH”
Program Message Unit Format
The program message unit format is shown below.
,
<Program header> <Program data>Space
<Program Header>
The program header indicates the command type. For
details, see page 3-2.
3.1 Messages