
Technical Updates SNBC CONFIDENCIAL
Shandong New Beiyang Information Technology Co.,Ltd.
Page 21
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 (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 respectively. Each setting for the printing
area is calculated as follows:
horizontal starting position x0 = [( xL + xH × 256) × (horizontal motion unit)]
vertical starting position y0 = [( yL + yH × 256) × (vertical motion unit)]
printing area width dx = [ dxL + dxH × 256] × (horizontal motion unit)]
printing area height dy = [ dyL + dyH × 256] × (vertical motion unit)]
[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 current printing position together with
ESC T.
· If (horizontal starting po printing area width) exceeds the printable area, the
printing area width shall be adjusted as horizontal printable width automatically, namely
horizontal starting position.
·If (vertical starting po printing area width) exceeds the printable area, the
printing area width shall be adjusted as horizontal printable width automatically, namely
horizontal starting position.
· The horizontal and vertical motion unit are specified by
GS P
. Changing the
horizontal or vertical motion unit does not affect the current printing area.
· Use 0.125 mm unit (x) for setting the horizontal starting position and printing area width,
and use 0.125mm unit ( y) for setting the vertical starting position and printing area height.
· When the horizontal starting position, vertical starting position, printing area
width, and printing area height are defined as X, Y, Dx, and Dy respectively, the
printing area is set as shown in the figure below.