Select your printer model

Parameters are refined by the selected printer.
  • EU-m30
  • TM-J2000
  • TM-J2100
  • TM-L90
  • TM-L90 LFC
  • TM-L100
  • TM-m10
  • TM-m30
  • TM-m30II
  • TM-m30II-H
  • TM-m30III
  • TM-m30III-H
  • TM-m30II-NT
  • TM-m30II-S
  • TM-m30II-SL
  • TM-m50
  • TM-m50II
  • TM-m50II-H
  • TM-P20
  • TM-P20II
  • TM-P60
  • TM-P60II
  • TM-P80
  • TM-P80II
  • TM-T20
  • TM-T20II
  • TM-T20III
  • TM-T20IIIL
  • TM-T20IV-L
  • TM-T20X
  • TM-T20X-II
  • TM-T70
  • TM-T70II
  • TM-T81III
  • TM-T82II
  • TM-T82III
  • TM-T82IIIL
  • TM-T82IV-L
  • TM-T82X
  • TM-T82X-II
  • TM-T83III
  • TM-T83IV
  • TM-T88IV
  • TM-T88V
  • TM-T88VI
  • TM-T88VII
  • TM-T90
  • TM-T100
  • TM-U220
  • TM-U220II
  • TM-U230

ESC &


[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]

32 ≤ c1c2 ≤ 126
d = 0 – 255
k = c2 - c1 + 1
y, x: different depending on the printers

[Default]

None

[Description]

Defines the user-defined character pattern for the specified character codes.
  • 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 from the left. Any remaining dots on the right side are blank.
  • d specifies the definition data (column format).
  • k indicates the number of definition data. k is an explanation parameter; therefore it does not need to be transmitted.

[Notes]

  • Character codes from the alphanumeric characters in Hexadecimal: 20h – 7Eh / in Decimal: 32 – 126 can be defined.
  • The dot pattern is specified by data (d) in the horizontal direction from the left side. The definition data specifies a bit printed to 1 and not printed to 0.
  • 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 canceled, and the following data is processed as normal data.
  • This command can define user-defined characters for each font independently. To select a font, use ESC ! or ESC M.
  • A user-defined character, download graphics, and downloaded bit image cannot be defined simultaneously on some printer models.
  • Once the user-defined characters have been defined, they are available until ESC ?, GS *   [obsolete command] , or ESC @ is executed; the user-defined characters are redefined; the power is turned off; or the printer is reset.
  • The user-defined characters are not defined at the default, and the resident characters are printed.
  • The relationship between the definition data and printing result is as follows.
  • Example: 
    Downloaded character definition consists of 7 × 9 dots. (x = 7, y = 2)
    (In the second byte in the vertical direction (d2, d4, d6, d8, d10, d12, d14), use MSB only.)
  • Graphic
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

ESC/POS® includes patented or patent pending commands. The contents must not be disclosed to third parties.


ESC/POS® Command Reference for TM Printers

Jump to the top