ESC W xL xH yL yH dxL dxH dyL dyH
[Name]
Set printing area in page mode.
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤ xL xH yL yH dxL dxH dyL dyH ≤255 (except dxL=0 or dyL=dyH=0)
[Description]
The horizontal starting position, vertical starting position, printing area width, and printing area height
are defined as x0, y0, dx (inch), respectively.
x0 = [(xL + xH ×256)] ×(horizontal motion unit)]
y0 = [(yL + yH ×256)] ×(vertical motion unit)]
dx = [(dxL + dxH ×256)] ×(horizontal motion unit)]
dy = [(dyL + dyH ×256)] ×(horizontal motion unit)]
The printing area is set as shown in the figure below.
ESC ₩ n
[Name]
Set relative print position.
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤nL ≤255
0 ≤nH ≤255
[Description]
Set the print starting position based on the current position by using the horizontal or vertical motion
unit.
* This command sets the distance from the current position to
[(nL + nH ×256) ×horizontal or vertical motion unit]
ESC a n
[Name]
Select justification.
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤nL ≤2, 48 ≤nL ≤50
[Description]
Aligns all the data in one line to the specified position.
n selects the type of justification as follows :
n
0, 48
Left justification
1, 49
Centering
2, 50
Right justification
ESC c 3 n
[Name]
Select paper sensor(s) to output paper end signals.
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤n ≤255
[Description]
Selects the paper sensor(s) to output paper end signals.
* Each bit of n is used as follows.
Bit
Off/On
0
Off
On
1
Off
On
2
Off
On
3
Off
On
4-7
-
8-8
ESC
W
xL xH yL yH dxL dxH dyL dyH
1B
57
xL xH yL yH dxL dxH dyL dyH
27
87
xL xH yL yH dxL dxH dyL dyH
ESC
nL
₩
1B
5C
nL
nH
27
92
nL
nH
ESC
a
n
1B
61
n
27
97
n
ESC
c
3
n
1B
63
33
n
27
99
51
n
Hex
Decimal
00
0
01
1
00
0
02
2
00
0
04
4
00
0
08
8
-
-
nH
Justification
Paper roll near-end sensor disable.
Paper roll near-end sensor enable.
Paper roll near-end sensor disable.
Paper roll near-end sensor enable.
Paper roll end sensor disable.
Paper roll end sensor enable.
Paper roll end sensor disable.
Paper roll end sensor enable.
Undefined.
Function
Samsung Electro-Mechanics
Command