TE Technology TC-720 User Manual

Page 75

Advertising
background image

II Examples:

A) Send the set temperature of 10.00 to the controller.

1. The control command, CC, for “FIXED DESIRED CONTROL SETTING” is 1c.

2. Multiply the desired set-point temperature by 100

10

(10.00

10

x 100

10

= 1000

10

).

3. Convert 1000

10

decimal to hexadecimal (3e8

16

) and add on leading zeros to make the four-character

send value DDDD (03e8).

4. Compute the checksum (SS) by adding the hexadecimal values of the following ASCII characters: 1, c,

0, 3, e, and 8:

ASCII Character:

Hexadecimal Value:

1

31

c

63

0

30

3

33

e

65

8

38

Sum

194

16

The 8-bit checksum is the 8 least significant binary bits of the sum, represented as 94 in hexadecimal.

5. Combining all of these characters in one string we send: (stx)1c03e894(etx).

6. If the temperature controller receives the command and the checksum is correct, it will send back:

(stx)03e800(ack). If the checksum is not correct the temperature controller will send back:

(stx)XXXX60(ack).

B) Send the set temperature of -1.50 °C.

1. The controller command, CC, is 1c.

2. Multiply the desired set-point temperature by 100

10

(-1.50 x 100 = -150).

3. Convert -150

10

to hexadecimal by taking the two’s complement of the number. (This can be easily

done by using the formula 2

n

N, where n is the word-bit size and N is the absolute value of the

number being converted.) Hence, you have 2

16

- 150 = 65386

10

. This value then converts to ff6a

16

.

4. Compute the checksum (SS) by adding the hexadecimal ASCII values of the following characters: 1, c,

f, f, 6, a,:

ASCII Character:

Hexadecimal Value:

1

31

c

63

f

66

f

66

6

36

a

61

Sum

1f7

16

The 8-bit checksum is the 8 least significant binary bits of the sum, represented as f7 in hexadecimal.

5. Combining all of these characters in one string we send: (stx)1cff6af7(etx).

6. If the temperature controller receives the command and the checksum is correct, it will send back:

(stx)ff6a63(ack). If the checksum is not correct the temperature controller will send back:

(stx)XXXX60(ack).

75

Advertising
This manual is related to the following products: