Specifications
Confidential
SHEET
107
NO.
SHEET
REVISION
I
TITLE
NEXT
108
TM-H5000II
IIII
II series
Specification
(STANDARD)
ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)]
[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] For paper roll: y = 3
32 ≤ c1 ≤ c2 ≤ 126
0 ≤ x ≤ 12 (when Font A (12 × 24) is selected)
0 ≤ x ≤ 9 (when Font B (9 × 17) is selected)
0 ≤ d1 ... d(y × xk) ≤ 255
For slip: y = 2
32 ≤ c1 ≤ c2 ≤ 126
0 ≤ x ≤ 12 (when Font A (9 × 9) is selected)
0 ≤ x ≤ 9 (when Font B (7 × 9) is selected)
0 ≤ x ≤ 6 (when Font C (5 × 9) is selected in page mode)
0 ≤ d1 ... d(y × xk) ≤ 255
[Description] Defines 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.
[Details] • 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.
• This command can define different user-defined character patterns for each
font. To select a font, use ESC ! or ESC M. However, font C is always set in
page mode when slip is selected, regardless of selecting of any types of font.
• A user-defined character and a downloaded bit image cannot be defined
simultaneously. When this command is executed, the downloaded bit image is
cleared.
• The user-defined character definition is cleared when:
① ESC @ is executed.
② ESC ? is executed.
③ FS q is executed.
④ GS ∗
∗∗
∗ is executed.
⑤ The printer is reset or the power is turned off.
• User-defined characters are defined for the paper types selected by ESC c 1.
• When receipt paper is selected and 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.
J