beautypg.com

Checksum, Hecksum i – Rockwell Automation 2071-Axx Kinetix 3 Component Servo Drive Serial Host Command Reference Manual User Manual

Page 30

background image

30

Rockwell Automation Publication 2071-RM001B-EN-P - April 2013

Chapter 2

Communication Protocol (RS-232/ASCII)

If the drive receives the host's command with a communication error (for
example, parity or checksum errors), the drive sends an

NAK

. The host should

assume a communication error occurred if a response from the drive does not
occur within a time-out period (generally 200 ms).

If drive does not recognize the command, it sends a

US

response.

Checksum

The checksum range consists of ID to Separator fields. Checksum is the ASCII
hex code of the least significant digit from the sum of hexadecimal codes in the
checksum range.

For example, this VER command has a checksum of 42 (ASCII hex code of B).

30H+31H+23H+56H+45H+52H+3AH = 1ABH
The ASCII hex code of B is 42.

However, this VER command response also has a checksum of 35 (ASCII hex
code of 5).

30H+31H+24H+56H+45H+52H+20H+31H+2EH+30H+32H+3AH = 295H
The ASCII hex code of 5 is 35.

Command

STX

0

1

#

V

E

R

:

B

ETX

ASCII

2

30

31

23

56

45

52

3A

42

3

Command

STX

0

1

&

V

E

R

9

.

0

2

:

5

ETX

ASCII

2

30

31

24

56

45

52

20

39

2E

30

32

3A

35

3

This manual is related to the following products: