
10-2
IM 704610-01E
<PMT>
PMT stands for program message terminator. The
following three types are available.
• NL (newline)
Same as LF (Line Feed). ASCII code “0 AH”
• ^END
The END message (EOI signal) as defined in
IEEE488.1. (The data byte that is sent with the END
message will be the last data of the program
message.)
• NL^END
END message added to NL (NL is not included in
the program message)
Program Message Unit Format
The following is the format for program message units.
,
<Program header>
<Program data>
Space
<Program Header>
The program header expresses the type of command.
For details, see page 10-3.
<Program Data>
Program data contains any conditions or other
information that may be required to execute a
command. A space (ASCII code “20H”) separates the
program data from the header. If multiple data are
used, each data is separated by a comma (
,
).
For details, see page 10-5.
Example:
Header
Data
:SAMPLE:GATE:MODE TIME<PMT>
10.1 Program Format
Response Messages
Data that are sent from the instrument to the controller
are called response messages. The following is the
format for response messages.
<RMT>
;
<Response message unit>
<Response Message Units>
A response message consists of a chain of one or
more response message units. A response message
unit corresponds to a single response. Response
message units are delimited by a semicolon (
;
). For
details regarding the format of the response message
unit, see the next section.
Example :
Unit
Unit
:SAMPLE:INHIBIT:STATE 1;POLARITY POSITIVE<RMT>
<RMT>
RMT stands for the response message terminator,
which is NL^END.
Response Message Unit Format
The response message unit format is shown below.
,
<Response Header>
<Response Data>
Space
<Response Header>
Response headers can be added to the front of
response data. Header and data are separated by a
single space. For details, see page 10-5.
<Response Data>
The response data consists of the contents of the
response. If multiple data are used, each data is
separated by a comma (
,
).
Example :
Data
Header
Data
500.0E-03<RMT> :SAMPLE:GATE:MODE TIME<RMT>
If multiple queries are present within a program
message, the order of responses follows the order of
the queries. Most queries are answered with a single
response message unit, but sometimes multiple units
are returned. The first query is answered by the first
response unit, but the nth response does not
necessarily correspond to the nth unit. When you want
to necessarily generate a response, separate the
program messages.