ESC/P Command Reference
- 52 -
5. Control Command Details
5.6 Paper formatting commands
ESC (c
Specify page format
ASCII: ESC
(
c nL
nH
tL
tH
BL
BH
Decimal: 27 40 99 nL nH
tL tH BL
BH
Hexadecimal:
1B 28 63 nL nH
tL tH BL
BH
Parameters
nL=4, nH=0
(
tL+tH*256
)
<
(
BL+BH*256
)
Top margin<bottom margin
Description
z
Specifies settings for the top and bottom margins.
z
The physically printable area depends on the media.
The top margin and the bottom margin are specified in units of 1/203 inch (=1 dot) using the top edge of
the physically printable area as the reference.
(The left margin and the right margin use the left edge of the physically printable area as the reference.)
z
Top margin=tL+tH*256
z
Bottom margin= BL+BH*256
z
The top margin position is the TOF in the vertical direction.
z
All previously entered text is cleared.
z
When this command is used previously specified top and bottom margins are canceled.
z
A standard unit is not used.
z
If the print media is continuous length tape, the printing orientation is landscape and the page length is not
specified, commands specifying the page format are ignored.