5-10 Commands
n
specifies the print direction and starting position as follows:
ESC V
n
[Name] Turn 90° clockwise rotation mode on/off
[Format] ASCII ESC V
n
Hex 1B 56
n
Decimal 27 86
n
[Range]
n
= 0, 1, 48, 49
[Description] Turns 90° clockwise rotation mode on/off
n
is used as follows:
ESC W
x
L
x
H
y
L
y
H
dx
L
dx
H
dy
L
dy
H
[Name] Set printing area in page mode
[Format] ASC II ESC W
x
L
x
H
y
L
y
H
dx
L
dx
H
dy
L
dy
H
Hex 1B 57
x
L
x
H
y
L
y
H
dx
L
dx
H
dy
L
dy
H
Decimal 27 87
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
(except
dx
L
=dx
H
=0 or dy
L
=dy
H
=
0)
[Description] • The horizontal starting position, vertical starting position,
printing area width, and printing area height are defined as x0,
y0, dx, dy, respectively.
Each setting for the printing area is calculated as follows:
x0 = [(
x
L
+
x
H
( 256) × (horizontal motion unit)]
y0 = [(
y
L
+
y
H
( 256) × (vertical motion unit)]
d
x
= [
dx
L
+
dx
H
( 256) × (horizontal motion unit)]
d
y
= [
dy
L
+
dy
H
( 256) × (vertical motion unit)]
n Print Direction Starting Position
0, 48 Left to right Upper left
1, 49 Bottom to top Lower left
2, 50 Right to left Lower right
3, 51 Top to bottom Upper right
n Function
0, 48 Turns off 90
°
clockwise rotation mode
1, 49 Turns on 90
°
clockwise rotation mode