Select your printer model

Parameters are refined by the selected printer.
  • EU-m30
  • TM-J2000
  • TM-J2100
  • TM-L90
  • TM-L90 LFC
  • TM-L100
  • TM-m10
  • TM-m30
  • TM-m30II
  • TM-m30II-H
  • TM-m30III
  • TM-m30III-H
  • TM-m30II-NT
  • TM-m30II-S
  • TM-m30II-SL
  • TM-m50
  • TM-m50II
  • TM-m50II-H
  • TM-P20
  • TM-P20II
  • TM-P60
  • TM-P60II
  • TM-P80
  • TM-P80II
  • TM-T20
  • TM-T20II
  • TM-T20III
  • TM-T20IIIL
  • TM-T20IV-L
  • TM-T20X
  • TM-T20X-II
  • TM-T70
  • TM-T70II
  • TM-T81III
  • TM-T82II
  • TM-T82III
  • TM-T82IIIL
  • TM-T82IV-L
  • TM-T82X
  • TM-T82X-II
  • TM-T83III
  • TM-T83IV
  • TM-T88IV
  • TM-T88V
  • TM-T88VI
  • TM-T88VII
  • TM-T90
  • TM-T100
  • TM-U220
  • TM-U220II
  • TM-U230

ESC W


[Name]

Set print 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]

(xL + xH × 256) = 0 – 65535
(yL + yH × 256) = 0 – 65535
(dxL + dxH × 256) = 1 – 65535
(dyL + dyH × 256) = 1 – 65535

[Default]

Horizontal logical origin and vertical logical origin = 0
(xL + xH × 256) = 0
(yL + yH × 256) = 0
Print area width (dxL + dxH × 256) and print area height (dyL + dyH × 256) = entire printable area:
different depending on the printers

[Description]

in Page mode, sets the size and the logical origin of the print area as follows:
  • Horizontal logical origin = (xL + xH × 256) × (horizontal motion unit) from absolute origin.
  • Vertical logical origin = (yL + yH × 256) × (vertical motion unit) from absolute origin.
  • Print area width = (dxL + dxH × 256) × (horizontal motion unit)
  • Print area height = (dyL + dyH × 256) × (vertical motion unit)

[Notes]

  • This command can be used in Page mode. Page mode is selected by ESC L.
  • With this command, the printing position is moved to a starting point selected by ESC T in the print area set.
  • For this command, the horizontal direction means the direction perpendicular to paper feeding direction and the vertical direction means the paper feeding direction.
  • Both print area width and height cannot be set to 0.
  • The horizontal logical origin and the vertical logical origin cannot be set outside the printable area.
  • The absolute origin is the upper left of the printable area.
  • Horizontal logical origin and print area width are calculated using the horizontal motion unit.
  • Vertical logical origin and print area height are calculated using the vertical motion unit.
  • If [horizontal logical origin + print area width] exceeds the printable area, the print area width is automatically set to [horizontal printable area - horizontal logical origin].
  • If [vertical logical origin + print area height] exceeds the printable area, the print area height is automatically set to [vertical printable area - vertical logical origin].
  • Keep the following conditions in mind for printers that support GS ( P   <Function 48> .
    • The maximum area that can be specified by this command is the same as the printable area specified by GS ( P   <Function 48> .
    • The origin of this command is the same as the upper left point of the printable area specified by GS ( P   <Function 48> .
    • When adjusting the printable area of the Page modewith GS ( P   <Function 48> , specify the printable area to be the same as the setting of the printable area by this command after executing ESC L.
  • Even if the horizontal or vertical motion unit is changed after changing the printable area, the setting of the printable area will not be changed.
  • Settings of this command are effective until FF (in Page mode) is executed, ESC @ is executed, the printer is reset, or the power is turned off.
  • This command setting has no effect in Standard mode.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

ESC/POS® includes patented or patent pending commands. The contents must not be disclosed to third parties.


ESC/POS® Command Reference for TM Printers

Jump to the top