25 26
Chinese code in double bytes and ASCII code in single byte.
On printing Chinese character the printer accepts only standard
code of each Chinese character according to GB-2312 standard.
This code composed of two bytes: section code adds
160(decimal) to get first byte, and bit code adds 160(decimal)
to get second byte. For example, Chinese
“啊”
has a section
and bit code: 1601, the standard code is B0A1H(hexadecimal).
In personal computer Chinese text is stored usually in the
standard codes.
The range of valued Chinese standard code is as below:
First byte B0H-F7H
Second byte A1H-FEH
FS . Exit Chinese printing mode
Format: ASCII: FS .
Decimal: 28 46
Hexadecimal: 1C 2E
Explanation:
Exit Chinese print mode, enter ASCII character print mode.
The characters in only one byte can be accept.
3.9 Barcode Printing
GS h Set barcode height
Format: ASCII: GS h n
Decimal: 29 104 n
Hexadecimal: 1D 68 n
Explanation:
Set the height of the barcode to be printed.
1
≤
n
≤
2 5 5
n i s t h e n u m b e r o f t h e v e r t i c a l d o t s .
D e f a u l t n = 6 0 .
GS k Print barcode stripe
Format: ASCII: GS k m [d]k NUL
Decimal: 29 107 m [d]k 0
Hexadecimal: 1D 6B m [d]k 00
Explanation:
•
m --- Select barcode system
M
Barcode system
4
CODE39
5
ITF
8
CODE128
•
[d]k--- Character to be printed as barcode. It should be
matched with type of the character specified by barcode
system, and the length of the characters should be fitted
with the valid character number as below table.
•
NUL --- End of the command and print the barcode.
Barcode
system
Barcode width
Valid character
number
2 10
CODE39
3 6
2 22
ITF
3 14
2 15
CODE128
3 9
As the barcode system with variable length, if the input
character length is exceeded the width of the line, the printer
will ignore the exceeded characters, and print out the shorted
barcode completely in order to identify it correctly by barcode
scanner.
•
CODE 39 and ITF do not generate the verifying character
automatically.
CODE 128 generates the verifying character automatically.
CODE 39 generates start bit and stop bit automatically.