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
36
ESC ( V Specify absolute vertical position
[ASCII] ESC ( V nL nH mL mH
[Decimal] 27 40 86 nL nH mL mH
[Hexadecimal] 1B 28 56 nL nH mL mH
[Parameters] nL=2
nH=0
0≤mL≤255
0≤mH≤127
[Description]
・ Specifies the vertical print position as an absolute position from the top margin position.
Vertical position = mL + mH * 256 + Top margin
ESC ( v Specify relative vertical position
[ASCII] ESC ( v nL nH mL mH
[Decimal] 27 40 118 nL nH mL mH
[Hexadecimal] 1B 28 76 nL nH mL mH
[Parameters] nL=2
nH=0
0 ≤ mL ≤ 255
0 ≤ mH ≤ 127
-16384 ≤ (mL+mH*256) ≤ 16383
[Description]
・ Specifies the vertical print position as a relative position from the current position.
Vertical position after movement = mL + mH * 256 + Current position
・ The specified value for moving up is represented as a 2’s complement, and is basically
determined by the following equation.
mL + mH * 256 = 65536 – Actual amount moved










