CONFIDENTIAL
ESC ? n
[Name]
[Format]
[Range]
ESC % n selects or cancels the user-defined character set. When the LSB (least significant bit) of n is 1,
the user-defined character set is selected. When it is 0, the internal character set is selected; this is the
default setting.
ESC & y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)] defines user-defined characters from character
code c1 to c2. y and x are the configuration of a user-defined character. y specifies the number of
bytes in the vertical direction. x specifies the number of dots in the horizontal direction. Character
codes from the alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) can be defined by c1
and c2. Data (d) specifies a bit printed to 1 and not printed to 0. The most significant bit is available
for even number of bits of d. Adjacent dots cannot be set. As the default, user-defined characters are
not defined and the internal character set is printed. Once the user-defined characters have been
defined, they are available until ESC ?, or GS , or ESC @ is executed; the user-defined characters are
redefined; the power is turned off; or the printer is reset. When this command is executed, the
downloaded bit image is cleared.
ESC ? n cancels the user-defined characters defined for the character code n. After the user-defined
characters are canceled, the internal character set is printed.
y=2
PRINT #1, CHR$(&H1B);"&";CHR$(y);"AC";
x=9: PRINT #1, CHR$(x);
FOR i=1 TO y*x
READ d: PRINT #1, CHR$(d);
NEXT i
x=9: PRINT #1, CHR$(x);
FOR i=1 TO y*x
READ d: PRINT #1, CHR$(d);
NEXT i
x=9: PRINT #1, CHR$(x);
FOR i=1 TO y*x
READ d: PRINT #1, CHR$(d);
NEXT i
PRINT #1, CHR$(&H1B);"%";CHR$(0); ←
PRINT #1, "A B C D E"; CHR$(&HA);
PRINT #1, CHR$(&H1B);"%";CHR$(1); ←
PRINT #1, "A B C D E"; CHR$(&HA):
PRINT #1, CHR$(&H1B);"?";"A"; ←
PRINT #1, "A B C D E"; CHR$(&HA);
DATA &H18,&H00,&H00,&H00,&H3C,&H00,&H00,&H00
DATA &H7E,&H00,&H00,&H00,&H3C,&H00,&H00,&H00
1-12 Command Descriptions
Cancel user-defined characters
ASCII
ESC
Hex
1B
Decimal
27
32 ≤ n ≤ 126
Program Example
Defines the
user-defined
characters as
"A","B",and "C"
Select internal character
Select user-defined character
Cancel the user-defined character
?
n
3F
n
63
n
Program Example (continued)
DATA &H18,&H00
DATA &H18,&H00,&H00,&H00,&H24,&H00,&H00,&H00
DATA &H42,&H00,&H00,&H00,&H24,&H00,&H00,&H00
DATA &H18,&H00
DATA &H10,&H00,&H20,&H00,&H5F,&H00,&H00,&H00
DATA &H81,&H00,&H00,&H00,&H5F,&H00,&H20,&H00
DATA &H10,&H00
A B C D E ←
◊
D E ←
◊
D E ←
A
Print Sample
Characters from internal character set
Characters from user-defined character set
Characters from user-defined character set (cancel
one character)
Rev. A