Rinstrum - 5200 Communications Manual Rev 1.2
Page 8 0025-605-120
2.3. Overview
2.3.1. Commands and Queries
• A Command consists of three ASCII characters (eg. IDN).
• A Query consists of four ASCII characters (the last character being a question
mark) (eg. IDN?).
Before a command or query can be sent, the instrument, which should execute that
command, must be selected. Refer to Sxx: Select Instrument page 48 for more
information.
2.3.2. Responses
The 5200 will return one of the following responses:
Response Description
0 Indicates that a command has been accepted.
1 Indicates that a command failed due to motion.
2 Indicates that a command failed due to an out-of-range condition.
3 Indicates that a command failed due to system errors.
? Indicates that the command was either not understood or could
not be performed.
Specific queries cause the 5200 to respond with the data requested by the query.
For example, if the 5200 was setup with address 4 it would respond with 04 to the
ADR? query.
2.3.3. Parameters
The following rules apply to parameters:
• A command or query can be followed by one or more parameters.
• Parameters are either numeric (eg. 3000) or strings (eg. "Fred").
• String parameters are delimited by quote characters ( " ASCII 34). They are
taken literally (ie. "AbCd" is not the same as "abcd").
• Numeric parameters are variable and leading and trailing spaces are ignored
(ie. 003, 03 and 3 are identical).
• Parameters are separated by the comma character ( , ASCII 44).
• Most parameters may be left out completely. This makes it possible to change
one parameter without altering the others. For example IAD1,,2; would change
only the position of the decimal place.