Interface Control Code List
02H
SAM
Set Addressable mode.
03H
UNA
Universal Unaddress control code.
04H
LNA
Lock Non-Addressable mode control code.
06H
ACK
Acknowledge that listen address received.
0AH
UCT
Universal Command and response Terminator.
0DH
CR
Formatting code, otherwise ignored.
11H
XON
Restart transmission.
12H
LAD
Listen Address - must be followed by an ad-
dress belonging to the required instrument.
13H
XOFF
Stop transmission.
14H
TAD
Talk Address - must be followed by an address
belonging to the required instrument.
18H
UDC
Universal Device Clear.
TF830 Command Formats
Serial input to the instrument is buffered in a 16 byte input queue which
is filled, under interrupt, in a manner transparent to all other instrument
operations. The instrument will send XOFF when approximately 8 char-
acters are in the queue. XON will be sent when the queue has been
emptied. This queue contains raw (un-parsed) data which is taken, by
the parser, as required. Commands (and queries) are executed in order
and the parser will not start a new command until any previous command
or query is complete. There is no output queue which means that the
response formatter will wait, indefinitely if necessary, until the instrument
is addressed to talk and the complete response message has been sent.
Due to the very short input queue available in the TF830 it is essential to
read the response to any query before any new commands or queries
are sent. This will ensure that a deadlock state (where the input queue
is full and the TF830 is not emptying it because it is waiting to send a
response) cannot occur.
Commands are sent as <
PROGRAM MESSAGES
message consists of zero or more <
separated by <
PROGRAM MESSAGE UNIT SEPARATOR
4
> by the controller, each
> elements
PROGRAM MESSAGE UNIT
> elements.
<
> are separated by <
PROGRAM MESSAGES
> elements which consist of the new line character (0AH).
TOR
A <
PROGRAM MESSAGE UNIT SEPARATOR
(3BH).
A <
> is any of the commands in the following
PROGRAM MESSAGE UNIT
sections.
Responses from the instrument to the controller are sent as <
>. A <
MESSAGES
RESPONSE MESSAGE
> followed by a <
AGE UNIT
RESPONSE MESSAGE TERMINATOR
A <
RESPONSE MESSAGE TERMINATOR
followed by the new line character (0DH 0AH). The CR character is
optional and may not be sent by all instruments.
Each query produces a specific <
along with the command in the following sections.
<
> is ignored except in command identifiers. e.g. 'X Z' is
WHITE SPACE
not equivalent to 'XZ'. <
WHITE SPACE
to 20H inclusive with the exception of the ARC interface codes listed
above.
The high bit of all characters is ignored.
The commands are case insensitive.
The command sections use the following nomenclature:
<pmt>
<
PROGRAM MESSAGE TERMINATOR
<rmt>
<
RESPONSE MESSAGE TERMINATOR
<n>
A single digit number.
<nrf>
A number in any format e.g. 12, 12.00, 1.2 e1
and 120 e-1 are all accepted as the number 12.
Any number, when received, is converted to the
required precision consistent with the use, then
rounded up to obtain the value of the com-
mand.
<nr1>
A number with no fractional part, ie. an integer.
<nr2>
A number in fixed point format, e.g. 11.52, 0.78
etc.
PROGRAM MESSAGE TERMINA-
> is the semi-colon character ';'
RESPONSE
> consists of one <
RESPONSE MESS-
>.
> is the carriage return character
> which is listed
RESPONSE MESSAGE
> is defined as character codes 00H
>.
>.