13 14
Chapter 3 Print Control Command
3.
1
Command Introduction
TP UP-PH portable thermal printer provides a set of print
control commands compatibale ESC/POS.
The format of command description is following:
Control Code Function
Format: ASCII: ASCII character sequence
Decimal: Decimal number sequence
Hexadecimal: Hexadecimal number sequence
Explanation:
Explain the function and of the command and method of
usage.
Example: list some program example for understanding the
command usage more easily.
3
33
3 .2
.2
.2
.2 Paper Feed
LF
Print and line feed
Format: ASCII: LF
Decimal: 10
Hexadecimal: 0A
Explanation:
Print content in line buffer and feed paper one line. If line
buffer is empty, feed one line only.
ESC J Print and feed paper n dotline
Format: ASCII: ESC J n
Decimal: 27 74 n
Hexadecimal: 1B 4A n
Explanation:
Print content in line buffer and feed paper n dotline(1/203
inch) as shown as following figure.
The function of the command is valid only in current line.
3
33
3 .3
.3
.3
.3 Line Space Setting
ESC 2 Set line space in default value
Format: ASCII: ESC 2
Decimal: 27 50
Hexadecimal: 1B 32
Explanation:
Set line space in 30 dotline(default value).
ESC 3 Set line space in n dotline(
1
/203 inch)
Format: ASCII: ESC 3 n
Decimal: 27 51 n
Hexadecimal: 1B 33 n
Explanation:
Set line space in n dotline(1/203 inch) as shown as following
figure. n=0–255. Default n=30.