Specifications

TH230/TH230+ Programmers Guide
63
ESC W
Function:
Set printing area in page mode
Code ASCII: ESC W x
L
x
H
y
L
y
H
dx
L
dx
H
dy
L
dy
H
Code HEX: 0x1B 0x57 x
L
x
H
y
L
y
H
dx
L
dx
H
dy
L
dy
H
Range:
0 x
L
x
H
y
L
y
H
dx
L
dx
H
dy
L
dy
H
255
Default: Horizontal logical origin and vertical logical origin= 0
x
L
= 0, x
H
= 0, y
L
= 0, y
H
= 0
Printing area width and printing area height = entire printable area
dx
L
= 64, dx
H
= 2, dy
L
= 64, dy
H
= 2 (576x576 - 80 mm paper)
dx
L
= 152, dx
H
= 1, dy
L
= 64, dy
H
= 2 (408x576 - 57.5 mm paper)
A dimension higher as possible will be ignored.
Description: In page mode, sets the size and the logical origin of the printing area as
follows:
• Horizontal logical origin = (x
L
+ x
H
× 256) × (horizontal motion unit) from
absolute origin.
• Vertical logical origin = (y
L
+ y
H
× 256) × (vertical motion unit) from
absolute origin.
• Printing area width = (dx
L
+ dx
H
× 256) × (horizontal motion unit)
• Printing area height = (dy
L
+ dy
H
× 256) × (vertical motion unit)
Notes:
Both printing area width and height cannot be set to 0.
The absolute origin is the upper left of the printable area.
If the horizontal or vertical logical origin is set outside the printable area,
this command is cancelled, and the following data is processed as
normal data.
If [horizontal logical origin + printing area width] exceeds the printable
area, the printing area width is automatically set to [horizontal printable
area horizontal logical origin].
If [vertical logical origin + printing area height] exceeds the printable
area, the printing area height is automatically set to [vertical printable
area vertical logical origin].
The printing area and the logical origin set by this command are
effective only in page mode.
This command setting has no effect in standard mode. If this command
is processed in standard mode, the logical origin and the printing area
are set, and they are enabled when the printer selects page mode.
Horizontal logical origin and printing area width are calculated using the
horizontal motion unit.
Vertical logical origin and printing area height are calculated using the
vertical motion unit.
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.