27 28
CODE 128 supports Code A, B and C, and conversion of
them.
The example of printing CODE 128 is as below:
[Example] Print “UPPH32S OK” by using CODE 128 Code
A, the ASCII code sequence and decimal datat sequence are as
below:
GS K 8 STARTA ‘UPPH32S OK’,NUL
29 107 8 168 85 80 80 72 51 50 81 32 79 75 00
CODE 128 does not need input stop character.
The detail explanation of CODE 128 barcode system is in
Appendix 1.
GS w Set barcode horizontal width
Format: ASCII: GS w n
Decimal: 29 119 n
Hexadecimal: 1D 77 n
Explanation:
Set horizontal width of the barcode stripe to be printed by
using n.
2
≤
n
≤
3
The width of the barcode stripe specified by n is shown as
below table:
2-cell barcode stripe width
n
Narrow stripe(mm)
Wide stripe(mm)
2 0.250
0.625
3 0.375
1.000
CODE39, ITF, and CODE128 are 2-cell barcode system.
3.
1
0 Black Mark Detecting
GS FF Detect black mark and feed to next page top
Format: ASCII: GS FF
Decimal: 29 12
Hexadecimal: 1D 0C
Explanation:
This command is valid only on using the paper with pre-
printed black mark.
The printer will detect the black mark on the paper while
paper feeding. When the black mark is detected the printer will
feed the black mark to the paper tear bar. But if no black mark
is detected on feeding paper 150mm long, the printer will stop
the detecting and feeding, the red LED will flash to indicate no
black mark is found out.
After power on, printer defaultsthe black mark has been at
the paper tear bar. The content to be printed should be between
two black marks in sequence.
Notice for black mark printing:
The black mark should be printed on the printing side of the
paper. The position of the black mark is the paper tearing line.
The position and size of the black mark printed are shown as
below picture.