Checksum calculation for the symbol cat – Tally Genicom Matrix Printer User Manual

Page 65

Advertising
background image

7265 Programmer’s Manual

61

Copyright © 2004 TallyGenicom Chapter 3 ANSI Bar Codes

Checksum calculation for the symbol Cat

Data

C

<CTRL> +

A

<CTRL> +

T

"C"

"K"

Data Values

12

46

10

46

29

C Weights

5

4

3

2

1

K Weights

6

5

4

3

2

1

1) For "C", sum the products of the (C WEIGHTS * DATA VALUES).

(1 * 29) + (2 * 46) + (3 * 10) + (4 * 46) + (5 * 12) = 395

2) Divide 395 by 47.

395 / 47 = 8 remainder 19.

Therefore, the value of "C" is 19, which corresponds to character J.

3) For "K", sum the products of the (K WEIGHTS * DATA VALUES), starting with the newly

calculated "C" digit.

(1*19) + (2*29) + (3*46) + (4*10) + (5*46) + (6*12) = 557

4) Divide 557 by 47.

611 / 47 = 11 remainder 40

5) The value of “K” therefore is 40, corresponding to character /. Send to the printer:

Advertising