beautypg.com

3 ascii, Protocol, Command format – INFICON Helium Leak Detector Modul1000 Interface description User Manual

Page 5: 3ascii protocol, 1 command format

background image

ASCII Protocol

1-3

jin

s

80

e.f

m

Op

er

at

in

g M

a

nua

l

(1

01

1)

3

ASCII Protocol

3.1

Command Format

In ASCII protocol any command starts with « * (ASCII code 42dec)» and is finished
with the end sign selected (e.g. CR). There is no differentiation between upper and
lower case. A blank is required between the command and the parameter, no other
blanks are allowed.

There is a short and an extended form of the command. Either the short or the
extended command must be used, no other abbreviations are allowed. Command
Words have to be separated by a colon. A command can be composed of up to three
words. Parameters have to be separated by a comma.

Each command is answered with the requested data „ok“ or „EXX“ (in case of an
error). For a list of all error message see section 4.1.3. The transmission can be
cancelled with ESC (ASCII code 27dec), ^C (ASCII code 3dec) or ^X (ASCII code
24dec).

Some commands can be used as queries, some can be used to set menu parameter
and some can be used for both. A query is marked by a „? (ASCII code 63dec)“ after
the command, for setting data the command has to be followed by the new value to
be set.

Parameter can be Boolean or numerical:

Notice

Always use a point as the decimal marker. If a comma is used during
numerical data entry, the conversion of the number is cancelled at this
point and only the integer part of the number will be used.

Commands in brackets - as in *status[:CAL] - are optional commands and do not
necessarily need to be transmitted.

Timing recommendations:

Sample rate >100 ms

Timeout between request and answer from Modul1000: 1500 ms

After sending a command the answer must be waited for before sending a new
command. Otherwise the receive buffer may be overwritten.

Boolean

0 / 1 or OFF / ON

Numeric representation format: integer, real (15.6) or exponential (4.5E-7)
Format: [space] [sign] [ddd] [.] [ddd] [e[sign]ddd] (d: digit)