c: Control flag
c
Control flag
b0: Check Digit
0: No check code is generated by the printer.
The host computer should generate the check code.
1: Check code is generated automatically by the printer.
b1: Human Readable Character
0 : Print On
1 : Print Off
Note: Human readable character is proportionally printed
b2: EAN-13, UPC-A flag character position
(EAN-13 : 13th digit)
(UPC-A : number system character)
0 : Center
1 : Under
b3-b7: not used
Set barcode data
n 1 , n 2 : Command length
n 1, n 2
Command length
"n1, n2" show data quantity followed "ESC [ p n1, n2".
"n1" is a low byte of command length data in hexadecimal.
"n2" is a high byte of command length data in hexadecimal.
"n1,n2" value should be the value in the following tables.
If undefined value is found in data string, the printer will ignore
all the received barcode data which length is defined as "n1, n2".
1) Case of "automatic check digit generation flag off"
Barcode Style
EAN-13
EAN-8
CODE 39
INTERLEAVED 2 of 5
UPC-A
CODE 128
2) Case of "automatic check digit generation flag on"
Barcode Style
EAN-13
EAN-8
CODE 39
INTERLEAVED 2 of 5
UPC-A
CODE 128
under the barcode in OCR-B font.
n1 (lowbyte)
0D hex
08 hex
01 to FF hex
01 to FF hex
0C hex
02 to FF hex
n1 (lowbyte)
0C hex
07 hex
01 to FF hex
01 to FF hex
0B hex
02 to FF hex
ESC [p (n 1 ) (n 2 ) (data)
n2 (high byte)
00
00
00
00
00
00
n2 (high byte)
00
00
00
00
00
00
Command Sets
C-11