TECHNICAL MANUAL
[Reference] ESC !, ESC -
ESC W
xL xH yL yH dxL dxH dyL dyH
[Name]
Set printing area in page mode
[Format]
ASCII
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
[Description]
ESC W sets the position and size of the printing area.
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 printable area is calculated as follow:
x0 = [(xL + xH x 256) x (horizontal motion unit)]
y0 = [(yL + yH x 256) x (vertical motion unit)]
dx = [(dxL + dxH x 256) x (horizontal motion unit)]
dy = [(dyL + dyH x 256) x (vertical motion unit)]
[Notes]
If this command is input in standard mode, the printer executes 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.
If (horizontal starting po printing area width) exceeds the printable
area, the printing area width is a automatically set to (horizontal printable
- horizontal starting position).
If (vertical starting position + printing area height) exceeds the printable
area, the printing area height is automatically set to( vertical printable
area - vertical starting position).
The horizontal and vertical motion units are specified by GS P.
Changing the horizontal or vertical motion unit does not affect the current
printing area.
The GS P command can change the horizontal (and vertical) motion unit.
However, the value cannot be less than the minimum horizontal movement
amount, and it must be in even units of minimum horizontal movement
amount.
TITLE : WTP-100
Page43