Chapter 12 Programming Overview; Messages - YOKOGAWA 2560A User Manual

Precision dc calibrator
Hide thumbs Also See for 2560A:
Table of Contents

Advertisement

Chapter 12
Programming Overview

12.1 Messages

Messages
Messages are used to exchange information between
the controller and the 2560A. Messages that are sent
from the controller to the 2560A are called program
messages, and messages that are sent from the 2560A
back to the controller are called response messages.
If a program message contains a command that
requests a response (a query), the 2560A returns
a response message upon receiving the program
message. The 2560A returns a single response
message in response to a single program message.
Program Messages
The program message format 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. The 2560A 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
:SOURce:FUNCtion VOLTage; :SOURce:LEVel lV
Unit
<PMT>
This is a program message terminator. The following
three types are available.
NL (new line): Same as LF (line feed). ASCII code
"0AH."
^END :
The END message as defined by IEEE
488.1
(The data byte that is sent with the END
message is the last data byte of the
program message.)
NL^END :
NL with an END message attached.
(NL is not included in the program
message.)
IM 2560A-01EN
Program Message Unit Syntax
The program message unit syntax is shown below.
<Program header>
<Program Header>
The program header indicates the command type. For
details, see section 12.2.
<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 sets of program data, separate each
<PMT>
set with a comma.
For details, see section 12.4.
Example
Response Messages
The response message syntax is as follows:
<Response Message Unit>
A response message consists of one or more response
Unit
message units. Each 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
<RMT>
RMT is a response message terminator. It is NL^END .
Space
:SOURce:LEVel 1V<PMT>
Header
Data
;
<Response message unit>
<RMT>
Unit 1
:SOURCE:FUNCTION VOLTAGE;
RANGE 10V
Unit 2
1
2
3
,
<Program data>
4
5
6
7
8
9
10
11
12
13
14
15
16
App
Index
12-1

Advertisement

Table of Contents
loading

Table of Contents