REGO Thermal Printer Technical Manual
www.regotek.com
21
Table 1 Table 2
[Notes]
This command is effective for all characters (ASCII and Chinese) except for HRI characters.
If n is outside of the defined range, this command is ignored.
In standard mode, the vertical direction is the paper feed direction, and the horizontal direction is
perpendicular to the paper feed direction. However, when character orientation changes in
90°clockwise-rotation mode, the relationship between vertical and horizontal directions is
reversed.
In page mode, vertical and horizontal directions are based on the character orientation.
When characters are enlarged with different sizes on one line, all the characters on the line are
aligned at the baseline.
ESC ! command can also turn double-width and double-height modes on or off. However, the last
received command is effective.
[Default]
n = 0
[Reference]
ESC !
[Example]
char SendStr[14] ={0x1D,0x21,0x77,0x31,0x32,0x33,0x0A,0xB9,0xFE, 0xB9,0xFE,
0xB9,0xFE,0x0A};
SendData(SendStr, 14);
GS B n
Turn white/black reverse printing mode
[Name]
Turn white/black reverse printing mode
[Format]
ASCII
GS
B
n
Hex
1D
42
n
Decimal
29
66
n
[Range]
0 ≤ n ≤ 255
[Description]
Turn on or off white/black reverse printing mode.
When the LSB of n is 0, white/black reverse mode is turned off.
When the LSB of n is 1, white/black reverse mode is turned on.
[Notes]
Only the lowest bit of n is valid.
This command is available for all characters
(
except for HRI characters.
)
.
Character Height Selection
Character Width Selection
Hex
Decimal
Vertical Enlarge
Hex
Decimal
Horizontal Enlarge
00
0
1 (normal)
00
0
1 (normal)
01
1
2(2 double-height)
10
16
2
(
2 double-width
)
02
2
3
20
32
3
03
3
4
30
48
4
04
4
5
40
64
5
05
5
6
50
80
6
06
6
7
60
96
7
07
7
8
70
112
8
123
哈哈哈