85
ESC+‟W‟+xL+xH+yL+yH+dxL+dxH+dyL+dyH
Function
Set Page mode print area
Code
ASCII
ESC
W
xL xH yL yH dxL dxH dyL dyH
Hex
1B
57h
xL xH yL yH dxL dxH dyL dyH
Decimal 27
87
xL xH yL yH dxL dxH dyL dyH
Range
0≤xL+xH×256≤65535 (0≤xL≤255, 0≤xL≤255)
0≤yL+yH×256≤65535 (0≤yL≤255, 0≤yL≤255)
1≤dxL+dxH×256≤65535 (0≤dxL≤255, 0≤dxL≤255)
1≤dyL+dyH×256≤65535 (0≤dyL≤255, 0≤dyL≤255)
Initial
value
(xL+xH×256)=0 (0mm, xL=0, xH=0)
(yL+yH×256)=0 (0mm, yL=0, yH=0)
(dxL+dxH×256)=448 (56mm, dxL=C0h, dxH=01h)
(dyL+dyH×256)=1200 (150mm, dyL=B0h, dyH=04h)
Description Sets the starting point and size of the printing area.
Horizontal starting point: (xL+xH
×256) × 0.125mm
Vertical starting point: (yL+yH×256) × 0.125mm
Horizontal size: (dxL+dxH×256) × 0.125mm
Vertical size: (dyL+dyH×256) × 0.125mm
The maximum configurable page width is limited to 56mm.
The maximum page length that can be set is limited to 150mm.
Since barcode and graphic data are also edited based on the baseline,
when the size exceeds the baseline, move the baseline to CR or LF to avoid
overlapping.
: Barcode or graphic
Paper
(x,y)
ds
Print area
dy
(x+dx,
y+dy)
Paper
ABCD EFGH Baseline
Move baseline to CR or LF
EFGH
ABCD
Example of printing
before baseline
shift
Example of printing
after baseline shift
CAUTION
www.compodis.com