IBM￿

Commands￿

 

 

 

 

￿

 

 

 

Notes

 

 

 

 

 

 

Function

(ASCII, Decimal, Hexadecimal)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Print Postnet Bar Code

ASCII: ESC DLE C n [data]￿

 

OKI unique command.￿

 

 

Data￿

Dec: 27 16 67 n [data]￿

 

n: designates amount of data to follow￿

 

 

￿

Hex: 1B 10 43 n [data]￿

 

n=1 to 20￿

 

 

 

 

￿

￿

 

Data consists of single-digit numbers.￿

 

 

￿

￿

 

￿

 

 

 

 

 

 

Select Barcode type

ASCII: ESC [ f Ln Hn Pk Pm Ps Lv

 

Specifies the barcode setting.￿

 

 

 

Hv Pc￿

 

Ln Hn specifies the byte number of pa-

 

 

 

16-digit: 1B 5B 66 Ln Hn Pk Pm Ps

 

rameter.￿

 

 

 

 

 

Lv Hv Pc￿

 

byte number of parameter = Ln+Hn x 256￿

 

 

 

10-digit: 27 91 102 Ln Hn Pk Pm Ps

 

Pk: Barcode type￿

 

 

 

Lv Hv Pc￿

 

￿

 

 

 

 

 

 

 

￿

 

Pk (Hex) ￿

Barcode type￿

 

 

 

 

￿

 

B2￿

￿

EAN-13￿

 

 

 

 

 

 

B3￿

￿

EAN-8￿

 

 

 

 

 

 

B4￿￿

 

 

Code 39￿

 

 

 

 

 

 

B6￿￿

 

 

Interleaved 2 of 5￿

 

 

 

 

 

 

B7￿￿

 

 

UPC-A￿

 

 

 

 

 

 

B9￿￿

 

 

POSTNET￿

 

 

 

 

 

 

BA￿￿

 

 

Code 128￿

 

 

 

 

 

 

￿

 

 

 

 

 

 

 

 

 

Pm: specifies the module width (black or

 

 

 

 

 

SP bar).￿

 

 

 

 

 

 

 

￿

 

 

 

 

 

 

 

 

 

Pm (Hex)

Module width (unit: 1/180")

￿

 

 

 

 

 

00￿￿

 

 

2 dots￿

 

 

 

 

 

 

01￿￿

 

 

1 dot￿

 

 

 

 

 

 

02￿￿

 

 

2 dots￿

 

 

 

 

 

 

03￿￿

 

 

3 dots￿

 

 

 

 

 

 

04￿￿

 

 

4 dots￿

 

 

 

 

 

 

￿

 

 

 

 

 

 

 

 

 

Ps: specifies the PS bar width based on

 

 

 

 

 

the parameter Pm setting.￿

 

 

 

 

 

￿

 

 

 

 

 

 

 

 

 

Ps (Hex)

regulable value for the stan-￿￿

 

 

 

 

 

￿

 

dard width of the SP bar.￿

 

 

 

 

 

FD￿￿

 

 

-3￿

 

 

 

 

 

 

FE￿￿

 

 

-2￿

 

 

 

 

 

 

FF￿￿

 

 

-1￿

 

 

 

 

 

 

00￿￿

 

 

0 (factory default)￿

 

 

 

 

 

 

01￿￿

 

 

+1￿

 

 

 

 

 

 

02￿￿

 

 

+2￿

 

 

 

 

 

 

03￿￿

 

 

+3￿

 

 

 

 

 

 

￿

 

 

 

 

 

 

 

 

 

Lv Hv: specifies the height of the black

 

 

 

 

 

bar (unit: 1/2160")￿

 

 

 

 

 

Height=Lv+Hv x 256￿

 

 

 

 

 

Lv Hv setting will be ignored for

 

 

 

 

 

Pk=07H (when POSTNET specified)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

108

Appendix D: Printer Commands