Table 9: EPSON Barcodes Commands
Escape Sequence Function
ESC ( B P1 P2 k m s v1 v2 c BarCodeData
Specify and
Print barcode
P1 P2 number of data bytes to follow:
6 bytes + number of BarCodeData
= P1 + P2 x 256
k specifies the barcode type:
k = 0/2 Interleaved 2 of 5
k = 0/5 Code 39
k = 06 Code 128
m specifies the module width (unit 1/180 inch)
m = 0/2 2 dots (default)
m = 0/3 3 dots
m = 0/4 4 dots
m = 0/5 5 dots
s specifies the space adjustment value
(unit 1/360 inch)
-3 <= s <= 3 (F/D <= s <= 0/3)
v1 and v2 specifies the bar length (v1+v2x256)
(unit 1/180 inch)
range : 45/180 inch <= bar legth <= 8.25 inch
c specifies the control flag
bit 0 : Check digit
0: host generates check digit
1: printer generates check digit
bit 1 : human readable character
0: print hr character ; 1: no print of character
bit 2 to bit 7 : reserved
Actual number of barcode data
Interleaved 2 of 5 : 2 .. 255
Code 39 : 1 .. 255
Code 128 : 2 .. 255
Valid range of BarCodeData
Interleaved 2 of 5 : 0
9 (30H
39H)
Code 39 : 0
9 (30H
39H),
(41H - 5AH) (20H, 24H, 25H, 2BH, 2DH, 2EH,
2FH)
Code 128 : uses the code sets A, B, and C
Code sets A, B, and C:
Code set A Code set B Code Set C
Data characters x00
x5F x20 - x7F x30
x39
Code A - x1E x3B
Code B x64 - x3A
Code C x63 x1C -
Shift x62 x1B -
FNC 1 x66 x1F x3C
FNC 2 x61 x1A -
FNC 3 x60 x19 -
FNC 4 x65 x1D -