
Model 8310
IM-289A
Aeroflex / Weinschel
20
The Status Reporting Registers may be used for serial communications, with certain limitations. The Status
Byte Register can only be read via the *STB? query command, as the comm port does not provide for a serial poll
operation. Also, as data in the Output Queue is sent automatically during serial operation, the MAV message available
bit in the STB serves no purpose.
5-6. GENERAL SYNTAX STRUCTURE:
The following paragraphs outline the general syntax and command structure
for the Model 8310. This structure is common to all bus flavors of the Model 8310.
NOTE
In the descriptions that follow, the term whitespace is used to define a sequence
of one or more combinations of ASCII Space (20h), Carriage return (0Dh), or
Tab (09h) characters.
5-6.1 SYNTAX OF QUERIES:
A query message unit is made up of a query header ending in an ASCII question mark
character ’?’ (3FH), followed by optional whitespace, and ended by a program message terminator. To form a multiple
query, separate the individual program message units with a semicolon.
Examples :
"ATTN?"
"ASSIGN?"
b. Multiple Query Commands:
"ATTN?; ASSIGN?"
5-6.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 8310 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)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com