Specifications

TH230/TH230+ Programmers Guide
41
After command, printer isn’t at start of line, independent from given
value (nL + nH × 256)
ESC %
Function: Select/cancel user-defined character set
Code ASCII: ESC % n
Code HEX:
0x1B 0x25 n
Range:
0 n 255
Default:
n = 0
Description: Selects or cancels the user-defined character set.
• When the LSB of n is 0, the user-defined character set is cancelled.
• When the LSB of n is 1, the user-defined character set is selected.
Notes:
When the user-defined character set is cancelled, the resident character
set is automatically selected.
Settings of this command are effective until ESC @ is executed, the
printer is reset, or the power is turned off.
ESC &
Function: Define user-defined characters
Code ASCII: ESC & y c1 c2 [x1 d1…d(y * x1)] … [xk d1 ... d(y * xk)]
Code HEX:
0x1B 0x26 0x03 c1 c2 [x1 d1…d(y * x1)] … [xk d1 ... d(y * xk)]
Range: y = 3
32 ≤ c1 c2 ≤ 255
0 ≤ x ≤ 16
0 ≤ d ≤ 255
k = c2c1 + 1
Description: Defines user-defined characters from character code check c1 to c2.
y specifies the number of bytes in the vertical direction.
x specifies the number of dots in the horizontal direction.
d is the dot data for the user-defined characters.
Notes:
Character codes from the alphanumeric characters (20H (decimal 32) to
FFH (decimal 255)) can be defined.
Data d
specifies a bit printed to 1 and not printed to 0. 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.
When the value of y, c1, c2, or x is out of the range, this command is
cancelled, and the following data is processed as normal data.
This command can define user-defined characters for each font (Font
A or Font B) independently. To select a font, use ESC !.