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
32
・ Moves the horizontal print position from the position where HT was entered to the next
nearest horizontal tab position to the right.
ESC $ Specify absolute horizontal position
[ASCII] ESC $ n1 n2
[Decimal] 27 36 n1 n2
[Hexadecimal] 1B 24 n1 n2
[Parameters] 0≤n1≤255 , 0≤n2≤255
[Description]
・ Specifies an absolute position in dots for the print position for the next data.
・ n1 and n2 represent the number of dots from the left margin. (No. of dots = n1 + 256 * n2)
ESC \ Specify relative horizontal position
[ASCII] ESC \ n1 n2
[Decimal] 27 92 n1 n2
[Hexadecimal] 1B 5C n1 n2
[Parameters] 0≤n1≤255, 0≤n2≤255
[Description]
・ Specifies the horizontal print position as a relative position in dots from the current position.
・ n1 and n2 represent the number of dots from the current position. (No. of dots = n1 + 256 *
n2)
・ The specified value for moving to the left is represented as a 2’s complement, and is basically
determined by the following equation.
n1 + n2 * 256 = 65536 – Actual amount moved
ESC a Specify alignment
[ASCII] ESC a n
[Decimal] 27 97 n
[Hexadecimal] 1B 61 n
[Parameters] 0 ≤ n ≤ 3 or “0” ≤ n ≤ “3”
[Description]
・ Aligns and prints the following data according to the value of n as described below.
If n=0, specifies a left alignment.
If n=1, specifies a center alignment.
If n=2, specifies a right alignment.
If n=3, nothing is applied.
・ The default setting is n=0.










