Hach ANATEL PAT700 User Manual - 2.8 Rs-232 Commands
Page 34
Installation
2.8 RS-232 commands
Commands consist of 2-character, ASCII text mnemonics. Some commands require one
or more arguments, each delimited by at least one space (ASCII 32, 20
Hex
), following the
command mnemonic. Each command string is terminated by a carriage return (ASCII 13,
0D
Hex
).
The analyzer responds to commands with an “OK>” prompt after the command has been
processed. Data read and parameter read commands elicit a reply consisting of one or
more numeric or text values delimited by at least one space and terminated by a carriage
return, linefeed pair – “\r\n” (ASCII 13, 10; 0D, 0A
Hex
). Commands and replies use a free
field format, in which the number of delimiting spaces and length of each argument or
data field vary. If a command is rejected (for example, due to invalid syntax), the “OK>”
prompt followed by a question mark (ASCII 63, 3F
Hex
) reply indicates the rejection.
Normally, the analyzer transmits only in response to a specific command. For unattended
data collection, you can issue the “SA” command to make the analyzer transmit results.
You can combine multiple commands on a single line by separating them with a
semicolon. The repeat command (an exclamation point followed by a repetition count,
such as "!10") causes the previous valid command line to repeat for the specified number
of times.
•
To read current values for a parameter set command, enter the command without
arguments.
•
Every command must have a suffix with a carriage return.
•
Send a carriage return without any command to see the "OK>" prompt.
2.8.1 Conventions
•
f = Floating point number (such as 1.23, 1.23e3, –1.23, etc.)
•
u = Unsigned integer from 0 to 65535
•
s = ASCII text string
•
YYYY mm DD = 4-digit year, month (where 1 = January and 12 = December), day of
month (1 to 31)
•
HH MM SS = Hours, minutes, seconds
•
Any command that replies with temperature is in °C.
2.8.2 Setup
The PAT700 communicates at 9600 baud with no parity, 8 data bits, 1 stop bit. The
analyzer supports full-duplex communication without hardware or software handshaking.
The “BD” command can be used for temporarily increasing the baud rate to 115200 baud
to reduce the time required for downloading the data log.
•
“BDu” = Set baud rate, Where u: 0 = 9600 baud or 1 = 115200 baud
•
“BD” = Get baud rate, returns 0 = 9600 baud or 1 = 115200 baud