
Model 8210A-2-5
IM-377
Aeroflex / Weinschel
21
7-8.2 SYNTAX OF COMMANDS:
A command message unit is made up of a command header, optionally followed by
an argument and units, and ended by a program message terminator. If multiple commands are made on the same
program line, separate the individual command messages with a semicolon.
Arguments -
The 8210A-2-5 supports a variety of argument types that can be used in program
commands. These types are:
Character Program Data
Integer Numeric Program Data
Real Numeric Program Data
Each data type has its own rules of syntax. The following paragraphs provide the syntax rules for each of the
argument types listed above.
Character Program Data-
This data type is comprised of the set of printable ASCII characters (excluding those
used as delimiters). Character program data represents alpha or alphanumeric strings. The use of alpha
characters is case-insensitive. If the first character of the string is not an alpha character, then the string must be
delimited with either the ASCII single-quote (’) or double-quote (") character in order to distinguish the string from
a numeric data type.
Examples:
ATTEN1
ON
"150T"
Integer Numeric Program Data-
This data type is used to represent integer, binary, or hexidecimal numeric
information, all of which may be used interchangeably. Integer data is comprised of the numeric digits ’0’-’9’,
binary data is comprised of the digits ’0’ and ’1’ preceded by the characters ’#B’, and hexidecimal data is
comprised of the digits ’0’-’9’, and the letters ’A’-’F’, preceded by the characters ’#H’ or the C language style
prefix ’0x’.
Examples:
123 (integer)
#H55 (hex)
0xAA (hex)
#B1010 (binary)
Real Numeric Program Data
-This data type includes decimal numbers containing a sign, decimal point, and/or
an exponent. The format is as follows: [sign]digits[.[digits][E[sign]digits]]
Examples:
2
2.5
-35.25E+2
In the command descriptions that follow, argument types are also described using the following additional
conventions to indicate the relative size of the parameter:
byte
- used to indicate an 8-bit unsigned integer
word
- used to indicate a 16-bit unsigned integer
int8
- 8-bit integer
int16
- 16-bit integer
int32
- 32-bit integer
string
- character data, including the max number of characters allowable.
(i.e., string8 has a max of 8 chars)
Содержание 8210A-2-5
Страница 52: ......