ESC/ P Command Reference

Table Of Contents
ESC/P Command Reference
- 49 -
5. Control Command Details
ESC $ Specify absolute horizontal position
ASCII: ESC $ n1 n2
Hexadecimal: 1B 24 n1 n2
Parameters
0≤n1≤255, 0≤n2255
Description
Specifies the absolute print position (in dots) for the next data.
An absolute print position specifies the next print position as a number of dots from the left margin.
n1 and n2 indicate the number of dots from the left margin.
(Number of dots=n1+n2*256)
The maximum number of dots that can be specified with n1 and n2 depends on the media.
This command is available only with left alignment.
ESC \ Specify relative horizontal position
ASCII: ESC \ n1 n2
Hexadecimal: 1B 5C n1 n2
Parameters
0≤n1≤255, 0≤n2255
Description
Specifies the horizontal print position (in dots) as a relative position from the current position.
A relative position specifies the next print position as a number of dots from the current position.
n1 and n2 indicate the number of dots from the current position. (Number of dots=n1+n2*256)
Left margin positionhorizontal position after moving<right margin position
Horizontal position after moving=n1+n2*256
The specified value for moving to the left is expressed as a two's complement. It is determined by the
following equation.
n1+n2*256=65536-distance actually moved
This command is available only with left alignment.