Command syntax | Parameters | Break Signal

Overview of Messages

The information that is exchanged between the computer and the KES4022/KES4022A is called a message.

There are two types of messages, commands that are sent from the computer to the KES4022/KES4022A and responses that are sent from the KES4022/KES4022A to the computer.

Commands are used to execute functions of the KES4022/KES4022A, change settings, and query settings and status. Responses return the settings and status of the KES4022/KES4022A.

Command syntax

Top | Parameters | Break Signal

This manual denotes commands using the following format.

(Example)

OPERATION {MAN|IEC|STP|SEQ}

A space is required between the program header section and the parameter section.

Multiple parameters, when available, are concatenated using commas.

Compound commands can be created by concatenating two commands with a semicolon.

(Example)

STARTV 12.34;STOPV 23.45;STEPV 1.23

The maximum number of characters that can be transmitted in a single line is 128.

Special symbols and characters

Special symbols and characters used in this manual to describe commands are defined as follow.

Symbols or characters DescriptionDescription
< > Characters strings inside the < and > symbols indicate program data.Characters strings inside the < and > symbols indicate program data.
Do not include these symbols in the actual program.
{ } Characters and numbers delimited by "|" in braces indicate that one of the items is to be selected.
Do not include the braces in the actual program.
[ ] Characters strings inside brackets indicate option data.
When option data is not sent with the program, the default value is sent. Do not include the brackets in the actual program.

 

Query

The device settings or status can be queried.

To make a query, add a question mark at the end of the program header section. If a query has parameters, enter a space after the question mark followed by the parameters.

(Example)

MEN:MEMO? SEQ1

 

note

When transmitting two queries in separate lines, read the response to the first query before transmitting the second line. If you send two lines of query commands at once, an incomplete response may be received.

String termination

All commands must be terminated using a valid terminator.

 

note

CR (ASCII 0x0D) is not a terminator.

Common commands

The IEEE-488.2 contain a set of common commands for reset, self-test, and other functions. These common commands always start with an asterisk. The commands may have one or multiple parameters.

Parameters

Top | Command syntax | Break Signal

The representation system of the program data that is used on the PAT is indicated below.

Non-numeric parameters

The KES4022/KES4022A uses the following two types of non-numeric parameters.

Symbols or characters Description
Character string data
(String)

Used when a series of ASCII characters are requested.
Be sure to enclose a string in double quotations.
   (Example) MEN:MEMO SEQ,1,"ABC"
If you wish to use a quotation mark as a part of the string, enter "\" in front of a quotation mark.
ASCII codes 20H to 7EH can be used.

Character data
(Character)
Used when only a limited number of values is available for the program setting.
   (Example) OPERATION {MAN|IEC|STP|SEQ}

Numeric parameters

The KES4022/KES4022A uses the following two types of numeric parameters.

Symbols or characters Description
NR1 Represents an integer.*1
NR2 Represents a real number (floating point).*1

Details are given in the IEEE 488.2 Standard Digital Interface for Programmable Instrumentation.

Break Signal

Top | Command syntax | Parameters

The break signal functions as a substitute for the IEEE488.1 dcl/sdc (Device Clear, Selected Device Clear) message.