Serial commands, command set -12 – Hardy HI 2151/30WC Single-Scale Controller User Manual

Page 110

Advertising
background image

HI 2151/30WC MANUAL

7-12

NOTE:

The example uses decimal and mnemonic abbreviation format for clarity, however,
the actual data would be in ASCII format. A leading zero (i.e. 01) is required for sin-
gle digit addresses for serial port #2.

4. There is one space (20 hex) required between each type of data fol-

lowing the INSTRUMENT ADDRESS, hence, the outgoing com-
mand represented in hex format would be:

3E

31

30

20

58

20

47

0D

34

44

04

>

1

0

X

G

CR

4

D

EOT

An example using the "x" transmit command without Hardy Link

is:

Serial Commands,
Command Set

The checksum is computed by totaling the bytes in the command
stream starting with the INSTRUMENT ADDRESS through (and
including) the CR and then subtract 256 from the total until the remain-
der is less than 256 (to achieve a one byte maximum). The result is then
represented as two ASCII bytes and appended to the command, fol-
lowed by an EOT (04).

Value

Description

31

address - instrument number 10 - ASCII "1"

30

address - instrument number 10 - ASCII "0"

20

space

58

X

20

space

47

G

0D

CR

---------------
=

14d

Value

Description

-

100

---------------
=

4d

Serial commands are transmitted from the instrument back to the host
in the format they were received from the host with the return data (and
units) added to the message and an LF added to the CR.

Using the above example, the return data would be:

START

CHAR

CMD

SUB-CMD

CR

2 BYTE CHECKSUM

EOT

CHK-1

CHK-2

>

X

G

CR

CHK-1

CHK-2

EOT

Advertising