1-12 Command Descriptions Rev. A
ESC ? n
[Name] Cancel user-defined characters
[Format] ASCII ESC ? n
Hex 1B 3F n
Decimal 27 63 n
[Range] 32 ≤ n ≤ 126
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 int ern al cha rac ter set is selected; this is the
default settin g.
ESC & y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)] defines user-defined characters from chara cter
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)) ca n 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 ES C ?, o r GS ✻, or ES C @ is executed ; the user -defined c haracter s 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.
Program Example Program Example (continued)
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); ←
Select internal character
PRINT #1, "A B C D E"; CHR$(&HA);
PRINT #1, CHR$(&H1B);"%";CHR$(1); ←
Select user-defined character
PRINT #1, "A B C D E"; CHR$(&HA):
PRINT #1, CHR$(&H1B);"?";"A";
←
Cancel the user-defined character
PRINT #1, "A B C D E"; CHR$(&HA);
DATA &H18,&H00,&H00,&H00,&H3C,&H00,&H00,&H00
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
Print Sample
ABCDE
←
Characters from internal character set
♦
◊
DE
←
Characters from user-defined character set
A
◊
DE
←
Characters from user-defined character set (cancel
one character)
DATA &H7E,&H00,&H00,&H00,&H3C,&H00,&H00,&H00
Defines the
user-defined
characters as
"A","B",and "C"
CONFIDENTIAL