Chapter 3 Before Programming; Messages - YOKOGAWA PZ4000 User Manual

Power analyzer communication interface
Hide thumbs Also See for PZ4000:
Table of Contents

Advertisement

Chapter 3 Before Programming

3.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 message unit, 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.
;
<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.
:TRIGger:MODE AUTO;SOURCE 1<PMT>
Example
Unit
<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.)
IM 253710-11E
Program message unit format
The format of a program message unit is shown below.
<Program header>
A program header is used to indicate the command
type. For details, refer to page 3-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 3-5.
<PMT>
Example
Response Messages
The format of a response message is shown below.
<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
Unit
page.
Example
<RMT>
RMT is the terminator used for every response
message. Only one type of response message is
available; NL^END.
<Program header>
Space
:TRIGger:MODE AUTO<PMT>
Header
Data
;
<Response message unit>
<RMT>
:TRIGger:MODE AUTO;SOURCE 1<RMT>
Unit
3.1 Messages
,
<Program data>
3
"
,
;
".
Unit
3-1

Advertisement

Table of Contents
loading

Table of Contents