0x1B 0x21
<ESC !>
Set printing mode
Valid for
TG02H
[Format]
ASCII
ESC !
n
Hex
1B 21 n
Decimal
27 33 n
[Range]
0 ≤ n ≤ 255
[Description]
Selects printing mode using n (see tables below):
BIT OFF/ON
HEX
DECIMAL
FUNCTION
12
cpi
(default)
12/16
cpi
16/22
cpi
0
Off
00
0
Character font A
elected
16 x 24
16 x 24 12 x 24
On
01
1
Character font B
selected
16 x 24
12 x 24
9 x 24
1
-
-
-
Undefined
2
-
-
-
Undefined
3
Off
00
0
Expanded mode not selected
On
08
8
Expanded mode selected
4
Off
00
0
Double-height mode not selected
On
10
16
Double-height mode selected
5
Off
00
0
Double-width mode not selected
On
20
32
Double-width mode selected
6
Off
00
0
Italic mode not selected
On
40
64
Italic mode selected
7
Off
00
0
Underline mode not selected
On
80
128
Modo sottolineato selezionato
[Notes]
• The printer can underline all characters, but cannot underline the spaces set by 0x09, 0x1B 0x24,
0x1B 0x5C and 90°/270° rotated characters.
• This command resets the left and right margin at default value (see 0x1D 0x4C, 0x1D 0x57).
• 0x1B 0x45 can also be used to turn the emphasized mode on/off. However, the last-received setting
command is the effective one.
• 0x1B 0x2D can also be used to turn the underlining mode on/off. However, the last-received setting
command is the effective one.
• 0x1D 0x21 can also be used to select character height/width. However, the last-received setting
command is the effective one.
26 │
ESC/POS™ emulation
Summary of Contents for TG02H
Page 1: ...COMMANDS MANUAL TG02H ...
Page 3: ...ESC POS EMULATION INTRODUCTION ...
Page 4: ......
Page 7: ...ESC POS emulation ...
Page 27: ... Default n 0 Reference 0x1B 0x2D 0x1B 0x45 0x1D 0x21 Example ESC POS emulation 27 ...
Page 30: ... Example 18 dots 11 cpi 14 dots 15 cpi p1 MSB LSB p2 30 ESC POS emulation ...
Page 98: ...98 ESC POS emulation ...
Page 99: ......