4-1
IM 701730-17E
Before Programming
4
Program Message Unit Format
The format of a program message unit is shown below.
,
<Program header>
<Program data>
Space
<Program Header>
A program header is used to indicate the command
type. For details, refer to page 4-3.
<Program Data>
If certain conditions are required for the execution of a
command, program data must be added. Program
data must be separated from the header by a space
(ASCII code
"20H"
). If multiple items of program data
are included, they must be separated by a
","
(comma). For details, refer to page 4-5.
Example
:ACQuire:MODE NORMal<PMT>
Header
Data
Response Messages
The format of a response message is shown below.
<RMT>
;
<Response message unit>
<Response Message Units>
A response message consists of one or more
response message units: each response message unit
corresponds to one response.
Response message units are delimited by a
";."
For the response message format, refer to the next
page.
Example
Unit
Unit
:ACQUIRE:MODE NORMAL;COUNT 1<RMT>
<RMT>
RMT is the terminator used for every response
message. Only one type of response message is
available;
NL^END
.
4.1
Messages
Blocks of message data are transferred between the
controller and this instrument during communications.
Messages sent from the controller to this instrument
are called program messages, and messages sent
back from this instrument to the controller are called
response messages.
If a program message contains a query command, i.e.
a command which requests a response, this
instrument returns a response message. A single
response message is always returned in reply to a
program message.
Program Messages
The format of a program message 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. This instrument executes commands one
by one according to the order in which they are
received.
Program message units are delimited by a
";."
For a description of the format of the program
message unit, refer to the explanation given further
below.
Example
Unit
Unit
:ACQuire:MODE NORMal;COUNt 1<PMT>
<PMT>
PMT is a terminator used to terminate each program
message. The following three types of terminator are
available.
NL
(New Line) : Same as LF (Line Feed). ASCII code
"0AH"
is used.
^END
: END message defined in IEEE488.1.
(EOI signal)
(The data byte sent with an END
message will be the final item of the
program message unit.)
NL^END
: NL with an END message attached
(NL is not included in the program
message unit.)
Chapter 4 Before Programming
4.1 Messages