Serial commands -11, Serial commands - data transmission format -11 – Hardy HI 2151/30WC Single-Scale Controller User Manual
Page 109

Chapter 7 - Operation
7-11
Transmitted
Correct?
Received Reason
-12345
Y
-12345
5 numerics + minus
sign (B above)
-123456
N
-12345
The "6" would be
truncated since only 5
numerics + the minus sign
is legal (B above).
12345.67
N
12345.6
The "7" would be
truncated since only a
maximum of 6 numerics +
decimal points is legal (A
above).
Serial Commands
Serial commands are transmitted to the instrument in ASCII format.
Each command has a single letter corresponding to the command. The
instrument will accept command strings up to 40 characters (the 40th
will internally default to a carriage return).The front panel serial port
menu allows setup of serial communication parameters, i.e. BAUD,
parity, etc.
Serial Commands -
Data Transmission
Format
The following table uses the mnemonics corresponding to the outgoing
command format (some of which are optional):
Mnemonic
Meaning
Number of ASCII Bytes
CMD
Command
1
SUB-CMD
Subcommand
1 to 3
DATA-n
Data byte n
1 to 7
MODE
Mode 1
CR
Carriage return
1
1. Serial commands are transmitted from the host to the instrument (in
ASCII bytes) in the format:
2. Control characters are transmitted in HEX. (See the ASCII to HEX
table in Appendix A)
3. An example using the "x" transmit command with Hardy Link and
an address of 10 is:
START
CHAR
INSTRUMENT
ADDRESS
CMD
SUB-CMD
CR
2 BYTE CHECKSUM
EOT
CHK-1
CHK-2
>
10
X
G
CR
CHK-1
CHK-2
EOT