OKI ML3390 01091308*01256402 User Manual

Product codes
01091308*01256402
Page of 349
Appendix C: Bar codes
C-17
The checksum code for character set A, B and C are different.
Therefore you must ensure that the code of the character set se-
lected last is used.
Character set C consists of 100 two-digit numbers with the value
00 to 99. This makes numerical display in double density possi-
ble. Subsequently, two bytes are combined to one character
when character set C is used. (see Table 6). However, if the
amount of print data is an odd number, a zero is added before
the first number. Otherwise a zero would be added to the last
byte.
Example: bar code data “555”
The character string “0555” has to be sent to the printer.
A wrong character string “555”  results in “5505”.
Examples
The following are examples of the printing of bar codes and the
command sequences in a hexadecimal format:
Bar code 
EAN8
, 0.5 inch high, smallest width, plain writing LQ
1B 10 41 08 00 01 00 06 01 01 01 01
Select bar code
1B 10 42 08 31 32 33 34 35 36 37 40
Print bar code
Bar code 
EAN13
, 1 inch high, medium width, plain writing LQ
1B 10 41 08 00 02 01 02 04 01 01 01
Select bar code
1B 10 42 0D 31 32 33 34 35 36 37 38
Print bar code
39 30 31 32 40
Bar code 
UPC-A
, 2 inch high, largest width, no plain writing
1B 10 41 08 01 00 02 04 07 01 01 00
Select bar code
1B 10 42 0C 31 32 33 34 35 36 37 38
Print bar code
39 30 31 40