ESC/ P Command Reference
Table Of Contents
- Chapter 1. General Information
- Chapter 2. Command information
- 2-1) Character/style selection commands
- 2-2) Text printing commands
- ESC 4 Apply italic style
- ESC 5 Cancel italic style
- ESC E Apply bold style
- ESC F Cancel bold style
- ESC G Specify double printing
- ESC H Cancel double printing
- ESC P Specify pica pitch
- ESC M Specify elite pitch
- ESC g Specify micron pitch
- ESC p Specify proportional characters
- ESC W Specify double-width characters
- SO Specify auto-cancelling enlarged characters
- ESC SO Specify auto-cancelling enlarged characters
- SI Specify half-width characters
- ESC SI Specify half-width characters
- DC2 Cancel half-width characters
- DC4 Cancel auto-cancelling double-width characters
- ESC - Apply/cancel underlining
- ESC ! Global formatting
- ESC SP Select character spacing for ANK characters
- ESC X Select alphanumeric/kana character size
- 2-3) Line feed amount commands
- 2-4) Horizontal movement commands
- 2-5) Vertical movement commands
- 2-6) Paper formatting
- 2-7) Printer control commands
- 2-8) Graphics commands
- 2-9) Advanced commands
- Chapter 3. Appendix
41
2-9) Advanced commands
ESC i B Bar code
[ASCII] ESC i [parameter] B or b [bar code data] backslash
[Decimal] 27 105 [parameter] 66 or 98 [bar code data] 92
[Hexadecimal] 1B 69 [parameter] 42 or 62 [bar code data] 5C
[Parameters]
T or t (type)
t0: CODE39
t1: INTERLEAVED 2 OF 5
t5: EAN-8, EAN-13, UPC-A
t6: UPC-E
t9: CODABAR
ta: CODE128 *
tb: GS1-128(UCC / EAN128) *
* MW-120 TypeF, MW-140BT TypeF, MW-145BT and MW-260 support these settings.
s (style) Ignored
p (number of passes) Ignored
R or r (Characters below bar code)
r0: OFF
r1: ON
u (units of measurement) Ignored
x (horizontal position) Ignored
y (vertical offset) Ignored
h (size of height)
h n1 n2
Height=n1 + n2 *256 (dots)
48 ≤ Height ≤ 480
If height<48, height=48
If height>480, height=480
w (size of width)
w0: extra small
w1: small
w2: medium
w3: large
w4: extra extra small **










