Commands, Section 5.5, Figure 5.4: hp-85 ieee-488 basic driver program – INFICON STM-100/MF Thin Film Deposition Monitor User Manual
Page 62: Response format
![background image](/manuals/562496/62/background.png)
COMMANDS
While there are 2 protocols for RS-232, one for IEEE-488, and another for
BITBUS, the command set for all of these is the same. The only things that
change are the prefix before the command and the suffix after. All commands and
data are in printable ASCII form. Only the prefix and suffix characters that make
up the protocol-dependent data are allowed to be non-printable. All commands
are a single character. There can be modifying data associated with the
command, but the command is a single character. Table 5.2 contains a list of all
commands. Section 5.6 has a detailed description of each command
5
DISP "ENTER CMD, CR TO QUIT"
10
INPUT A$
12
GOSUB 20
14
GOTO 5
20
N=LEN(A$)
25
IF N=0 THEN GOTO 5
30
B$=VAL$(N)&"A"
40
OUTPUT 700 USING B$ ; A$
50
ENTER 700 ; A$
60
DISP A$
62
RETURN
65
DISP "DONE"
70
END
Figure 5.4: HP-85 IEEE-488 BASIC Driver Program.
RESPONSE FORMAT
All commands received by the STM-100 / MF will return a response. The
minimum response (not including protocol dependent characters) is a single ASCII
character. This character indicates two things. First, the success or failure of the
command which was sent. One of four result types is returned, to indicate success
(AOK), illegal command token (not in Table 5.2), illegal data value (number out of
range for command), and illegal modifier (something other than required ?,!,@, =
sent after command token).
Second, the returned response character reports the power on reset status
of the STM-100 / MF. Each of the four response codes (see below) is modified
after a reset until the L command resets the power failure flag. In this way each
response message informs the host as to the occurrence of an instrument reset
since the last exchange. The reason this is done is so that in every communication
exchange a power on reset can be detected and the correct exception processing
be performed via host software, without special polling overhead.
Message
Power Lost
No Reset
Message AOK
B
A
Illegal Command
G
F
Illegal Data Value
I
H
llegal Cmnd. Modifier
K
J
SECTION 5.5
Page 5 - 7
COMPUTER INTERFACING