ESC/ P Command Reference

Table Of Contents
ESC/P Command Reference
- 56 -
5. Control Command Details
ESC (v Specify relative vertical position
ASCII: ESC v nL nH mL mH
Hexadecimal: 1B 28 76 nL nH mL mH
Parameters
nL=2
nH=0
0≤mL255
0≤mH63, 192mH255
-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
When moving upwards, the specified value is expressed as a two's complement.
It is determined by the following equation.
mL+mH*256=65536–distance actually moved
Settings moving the print position above the top margin are ignored.
If a position extending beyond the bottom margin is specified, printing starts.
With left alignment, the print position for the next line becomes the end position of the current line.
(The horizontal position does not move to the left margin.)
With right alignment and center alignment, the horizontal position moves to the beginning of the line.
Auto-canceling double-width characters specified with SO or ESC SO are canceled.
Abcdefg
ABC
SDFASG
Abcdefg
ABC
SDFASG
Abcdefg
ABC
SDFASG
Example:
Moving to a vertical position specified after the second line
Left alignment
Center alignment
Right alignment