
Thermal Printer Technical Manual
27
[Notes]
This command is effective only when processed at the beginning of the line.
In page mode, the printer performs only internal flag operations.
This command does not affect printing in page mode.
If the [left printing area width] exceeds the printable area, the printer uses
[Printable area width - left margin].
The horizontal and vertical motion units are specified by GS P. Changing the horizontal and
vertical motion units does not affect the current left margin.
The horizontal motion unit is used for calculating the printing area width.
[Default]
(nL + nH × 256 ) = 576
[
80mm paper width model
,
72mm printable width
]
(nL + nH × 256 ) = 512
[
80mm paper width model
,
64mm printable width
]
(nL + nH × 256 ) = 384
[
58mm paper width model
]
[Rerference]
GS L, GS P
[Example]
char SendStr[10] = {0x1D,0x57,0x20,0x00,0x31,0x32,0x33,0x34,0x34,0x0A};
SendData(SendStr, 10);
ESC W xL xH yL yH dxL dxH dyL dyH Set printing area in page mode
[Name]
Set printing area in page mode
[Format]
ASC II ESC W xL xH yL yH dxL dxH dyL dyH
Hex 1B 57 xL xH yL yH dxL dxH dyL dyH
Decimal 27 87 xL xH yL yH dxL dxH dyL dyH
[Range]
0 £ xL, xH, yL, yH, dxL, dxH, dyL, dyH £ 255 (except dxL=dxH=0 or dyL=dyH=0)
[Description]
The horizontal starting position, vertical starting position, printing area width,
and printing area height are defined as x0, y0, dx (inch), dy (inch), respectively.
Each setting for the printing area is calculated as follows:
x0 = [(xL + xH ´ 256) ´ 0.125 mm]
y0 = [(yL + yH ´ 256) ´ 0.125 mm]
dx = [(dxL + dxH ´ 256) ´ 0.125 mm]
dy = [(dyL + dyH ´ 256) ´ 0.125 mm]
[Notes]
If this command is input in standard mode, the printer executes only internal flag operation. This
command does not affect printing in standard mode.
If the horizontal or vertical starting position is set outside the printable area, the printer stops
command processing and processes the following data as normal data.
If the printing area width or height is set to 0, the printer stops command processing and
processes the following data as normal data. This command sets the position where data is
buffered to the position specified by ESC T within the printing area.
12
34
4