Appendix C: Bar codes
C-13
Example: bar code data 1234XYZg
Start in character set C, change to character set A.
a: Ref. Start character Set C = 105
b: Ref. character 12 = 12
c: Ref. character 34 = 34
d: Ref. change to Code A = 101
e: Ref. character X = 56
f: Ref. character Y = 57
g: Ref. character Z = 58
Calculation:
105+(1*12)+(2*34)+(3*101)+(4*56)+(5*57)+(6*58)=1345
1345 modulo 103 = 4 (1345 /103=13 Remainder 6)
Checksum is 6 (Reference value in Set A)
If you calculate this checksum yourself, you have to send the char-
acter HEX 26 to the printer in order to obtain the reference value 6
in Set A.
Table 6
Ref. Code A Code B Code C
Value ASCII Hex ASCII Hex Digit Hex
0 Space = 20 Space = 20 00 = 30,30
1 ! = 21 ! = 21 01 = 30,31
2 “ = 22 “ = 22 02 = 30,32
3 # = 23 # = 23 03 = 30,33
4 $ = 24 $ = 24 04 = 30,34
5 % = 25 % = 25 05 = 30,35
6 & = 26 & = 26 06 = 30,36
7 ‘ = 27 ‘ = 27 07 = 30,37
8 ( = 28 ( = 28 08 = 30,38
9 ) = 29 ) = 29 09 = 30,39
10 * = 2A * = 2A 10 = 31,30
11 + = 2B + = 2B 11 = 31,31
12 , = 2C , = 2C 12 = 31,32
13 - = 2D - = 2D 13 = 31,33
14 . = 2E . = 2E 14 = 31,34
15 / = 2F / = 2F 15 = 31,35