
REGO Thermal Printer Technical Manual
www.regotek.com
12
ESC % n Select/cancel user-defined character set
[Name]
Select/cancel user-defined character set
[Format]
ASCII
ESC
%
n
Hex
1B
25
n
Decimal
27
37
n
[Range]
0 ≤ n ≤ 255
[Description]
Select or cancel the user-defined character set.
When the LSB of n is 0, the user-defined character set is canceled.
When the LSB of n is 1, the user-defined character set is selected.
[Notes]
When the user-defined character set is canceled, the internal character set is automatically
selected.
n is available only for the least significant bit.
[Default]
n = 0
[Reference]
ESC &, ESC ?
ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)]
Define user-defined characters
[Name]
Define user-defined characters
[Format]
ASCII
ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)]
Hex
1B
26 y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)]
Decimal
27
38 y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)]
[Range]
y = 3
32 ≤ c1 ≤ c2 ≤ 126
0 ≤ x ≤ 12 Standard ASCII Font A (12× 24)
0 ≤ x ≤ 9 Compressed ASCII Font B (9 × 17)
0 ≤ d ≤ 255
k = c2 – c1 +1
[Description]
Define user-defined characters.
y specifies the number of bytes in the vertical direction.
c1 specifies the beginning character code for the definition, and c2 specifies the final code.
x specifies the number of dots in the horizontal direction.
[Notes]
The allowable character code range is from ASCII code <20>H to <7E>H (95 characters).
It is possible to define multiple characters for consecutive character codes.
If only one character is desired, use c1 = c2.
d is the dot data for the characters. The dot pattern is in the horizontal direction from the left
side. Any remaining dots on the right side are blank.
The data to define a user-defined character is (y× x) bytes.
Set a corresponding bit to 1 to print a dot or 0 to not print a dot.
The user-defined character definition is cleared when:
-ESC @ is executed.
-ESC ? is executed.
-FS q is executed.
- GS * is executed.
-2-D bar code is executed.
-The printer is reset or the power is turned off.
When the user-defined characters are defined in font B (9 × 17), only the most significant bit of
the 3rd byte of data in vertical direction is effective.
[Default]
The internal character set