PPTII-A Programming Manual
www.hprt.com
22
[Example]
ESC c 0 n
[Name]
Select paper type
[Format]
ASCII
ESC
c
0
n
Hex
1B
63
30
n
Decimal
27
99
48
n
[Range]
0≤n≤2
[Dscription]
Select paper type, the type of paper using n:
n
paper type
0
receipt paper
1
label paper
2
label paper
[Notes]
• This command using to select paper type.
• The printer turns into standard mode automatically when selecting receipt paper.
• The printer turns into page mode automatically when selecting label paper.
• Paper type recovers to the default after printer resetting, re-up electricity and
executing ESESC d n
[Name]
Print and feed n lines
[Format]
ASCII
ESC d
n
Hex
1B
64
n
Decimal 27
100
n
[Range]
0 ≤n ≤ 255
[Dscription]
Prints the data in the print buffer and feeds n lines.
[Notes]
This command sets the print starting position to the beginning of the line.
This command does not affect the line spacing set by ESC 2 or ESC 3.
The maximum paper feed amount is 900 mm. If the paper feed amount (n
line
spacing) of more than 900 mm is specified, the printer feeds the paper only 900 mm .
ESC l n X0l X0h Y0l Y0h X1l X1h Y1l Y1h
[Name]
crossed instruction
[Format]
ASCII
ESC
l
n
X0l X0h Y0l Y0h X1l X1h Y1l Y1h
Hex
1B
6C
n
X0l X0h Y0l Y0h X1l X1h Y1l Y1h
Decimal
27
108
n
X0l X0h Y0l Y0h X1l X1h Y1l Y1h
[Range]
0 ≤n ≤ 255
[Dscription]
Set the starting point and terminal point coordinate, and generate into straight line on
the printing buffer area.
N is for setting line width.
X0l X0h Y0l Y0h are for setting the start point coordinate
(
X0
,
Y0
)
, X1l X1h Y1l Y1h
are for setting line terminal point
(
X1
,
Y1
)
.
X0 = X0l + X0h×255
,
Y0 = Y0l + Y0h×255
,
X1 = X1l + X1h×255
,
Y1 = Y 1l + Y1h×255.
[Notes]
• This command affect only in page mode.
• The command can generate into horizontal line or vertical line, not oblique line. So if
X0≠X1
,
Y0 should be equal to Y1.
The same situation, if YO≠Y1
,
XO should be equal to X1.
• This command does not affect when the starting point and ending point beyond
printing area.
Содержание PPTII-A
Страница 47: ...PPTII A Programming Manual www hprt com 47...
Страница 48: ...PPTII A Programming Manual www hprt com 48...
Страница 49: ...PPTII A Programming Manual www hprt com 49...
Страница 52: ...PPTII A Programming Manual www hprt com 52...