The indicator responds with 0CRLF to indicate that a command has been accepted, or ?CRLF to indicate that the
command was either not understood or could not be performed. Only the Sxx command and RES command
do not have a response.
Some commands will respond with additional failure codes to help diagnose the problem (e.g: CDL, TAR,
TAV, TAS and PRN): Response of the commands:
?CRLF Command not understood
0CRLF Command correctly operated
1CRLF Command failed: Scale in motion
2CRLF Command failed: Parameter or scale out of range
3CRLF Command failed: System error
4CRLF Command failed: Device not ready
Note
CRLF represents 2 bytes: carriage return (0D
H
) followed by line feed (0A
H
).
21.2.2 Query
A query consists of 3 ASCII characters plus a question mark (e.g. IDN?).
Normally, a query is a request for information. In this case, the indicator will respond with the information
requested. If the query was not understood, the indicator will respond with ?CRLF.
21.2.3 Parameters
A command or query can be followed by one or more parameters.
Parameters are either numeric (e.g. 3000) or strings (e.g. “Otto”).
String parameters are delimited by quote characters (‘“’ ASCII 34). They are taken literally so that “AbCd”
is not the same as “abcd”.
Numeric parameters are variable and leading and trailing spaces are ignored. As a result 003 03 and 3 are
identical.
Parameters are separated by a comma character (‘,’ ASCII 44).
Parameters may be left out completely so that it is possible to change one parameter without altering the
others. For example IAD1,,2; will change the position of the decimal point only.
21.2.4 Termination
Termination characters define the end of a command, query or response.
Permissible termination characters are ‘;’ (ASCII 59), LF (ASCII 10), CRLF (ASCII 13 10), LFCR (ASCII 10
13). E.g. ADR?; is the same as ADR? CRLF
The indicator always uses CRLF as the termination of its responses.
21.2.5 Initial sequence to start communication
The first command to the indicator should be the select command (see Section 21.3.46). This should be sent
even if only one unit is connected.
Note
S99; will select all connected indicators.
120 C500-600-2.0.3