|
|
|
|
|
Calculation of Code128 Check Character
Code 128A
Data - ABCDEF
Data Characters | A | B | C | D | E | F |
Multiply each of the character (the Code 128 value) with an increasing weight. |
Code 128 Value | 33 | 34 | 35 | 36 | 37 | 38 |
Weight | *1 | *2 | *3 | *4 | *5 | *6 |
Sum : | (33*1) + (34*2) + (35*3) + (36*4) + (37*5) + (38*6) = 763 |
For Code 128A, add an additional of 103 to the sum above |
Total | 763 + 103 = 866 |
Modulo 103 Check Character: | 866 % 103 = 42 (which maps to the character 'J') |
Code 128B
Data - abcdef
Data Characters | a | b | c | d | e | f |
Multiply each of the character (the Code 128 value) with an increasing weight. |
Code 128 Value | 65 | 66 | 67 | 68 | 69 | 70 |
Weight | *1 | *2 | *3 | *4 | *5 | *6 |
Sum : | (65*1) + (66*2) + (67*3) + (68*4) + (69*5) + (70*6) = 1435 |
For Code 128B, add an additional of 104 to the sum above |
Total | 1435 + 104 = 1539 |
Modulo 103 Check Character: | 1539 % 103 = 97 |
Code 128C
Data - 345678
Data Characters | 3 | 4 | 5 | 6 | 7 | 8 |
Multiply each of the two digits with an increasing weight. |
Weight | *1 | *2 | *3 |
Sum : | (34*1) + (56*2) + (78*3) = 380 |
For Code 128C, add an additional of 105 to the sum above |
Total | 380 + 105 = 485 |
Modulo 103 Check Character: | 485 % 103 = 73 (which maps to the character 'i') |
Back to Code 128 Barcode Font
|
|
|
|