4-1
IM DLM4038-17EN
Programming Overview
1
2
3
4
5
6
App
Index
Program Message Unit Syntax
The program message unit syntax is as follows:
,
<Program header>
<Program data>
Space
<Program Header>
The program header indicates the command type. For
details, see page 4-3.
<Program Data>
Attach program data if there are conditions that are
required to execute a command. Separate the program
data from the header with a space (ASCII code 20H).
If there are multiple data values, separate each data
value with a comma.
For details, see page 4-5.
Example
:ACQuire:MODE NORMal<PMT>
Header
Data
Response Message
The response message syntax is as follows:
<RMT>
;
<Response message unit>
<Response Message Unit>
A response message consists of one or more
response message units; each response message unit
corresponds to one response.
Separate each response message unit with a
semicolon.
For details on the response message syntax, see the
next page.
Example
Unit
Unit
:ACQUIRE:MODE NORMAL;RESolution 1<RMT>
<RMT>
RMT stands for “response message terminator.” The
response message terminator is
NL^EOM
.
Messages
Messages are used to exchange information between
the controller and the DLM4000. Messages that are
sent from the controller to the DLM4000 are called
program messages, and messages that are sent from
the DLM4000 back to the controller are called response
messages.
If a program message contains a command that
requests a response (query), the DLM4000 returns
a response message upon receiving the program
message. The DLM4000 returns a single response
message in response to a single program message.
Program Message
The program message syntax is as follows:
<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 DLM4000 executes the commands in
the order that they are received.
Separate each program message unit with a
semicolon.
For details on the program message syntax, see the
next section.
Example
Unit
Unit
:ACQuire:MODE NORMal;RESolution 1<PMT>
<PMT>
<PMT> is a program message terminator. The
following three terminators are available.
NL
(new line):
Same as LF (line feed). ASCII
code “0AH”
^EOM
:
The END message as defined by
USBTMC
(The data byte that is sent with
the END message is the last data
byte of the program message.)
NL^EOM
:
NL with an END message
attached.
(NL is not included in the program
message.)
4.1 Messages
Chapter 4 Programming Overview