37
Remote Commands
(TG2000 only)
RS-232 Remote Command Formats
Serial input to the instrument is buffered in an input queue which is filled, under interrupt, in a
manner transparent to all other instrument operations. The instrument will send XOFF when the
queue is nearly full; XON will be subsequently be sent when sufficient space becomes available
for more data to be received. 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. In non–addressable RS-232
mode responses to commands or queries are sent immediately; there is no output queue. In
addressable mode the response formatter will wait indefinitely if necessary, until the instrument is
addressed to talk and the complete response message has been sent, before the parser is
allowed to start the next command in the input queue.
Commands must be sent as specified in the commands list and must be terminated with the
command terminator code 0AH (Line Feed, LF). Commands may be sent in groups with
individual commands separated from each other by the code 3BH (;). The group must be
terminated with command terminator 0AH (Line Feed, LF).
Responses from the instrument to the controller are sent as specified in the commands list. Each
response is terminated by 0DH (Carriage Return, CR) followed by 0AH (Line Feed, LF).
<WHITE SPACE>
is defined as character codes 00H to 20H inclusive with the exception of those
which are specified as addressable RS-232 control codes.
<WHITE SPACE>
is ignored except in command identifiers. e.g. '*C LS' is not equivalent to '*CLS'.
The high bit of all characters is ignored.
The commands are case insensitive.
Each query produces a specific
<RESPONSE MESSAGE>
which is listed along with the command in
the remote commands list.
<WHITE SPACE>
is ignored except in command identifiers. e.g. '*C LS' is not equivalent to '*CLS'.
<WHITE SPACE>
is defined as character codes 00H to 20H inclusive with the exception of the NL
character (0AH).
The high bit of all characters is ignored.
The commands are case insensitive.
Command List
This section lists all commands and queries implemented in this instrument. The commands are
listed in alphabetical order within the function groups.
Note that there are no dependent parameters, coupled parameters, overlapping commands,
expression program data elements or compound command program headers; each command is
completely executed before the next command is started. All commands are sequential and the
operation complete message is generated immediately after execution in all cases.
The following nomenclature is used:
<rmt>
<RESPONSE MESSAGE TERMINATOR>
<cpd> <
CHARACTER PROGRAM DATA
>, i.e. a short mnemonic or string such as ON or OFF.
<nrf>
A number in any format. e.g. 12, 12.00, 1.2 e 1 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 command.
<nr1> A number with no fractional part, i.e. an integer.
[…]
Any item(s) enclosed in these brackets are optional parameters. If more than one item is
enclosed then all or none of the items are required.