User-defined character is saved in RAM and will be lost after power off. If several ESC &
commands use the same m value, only the last one is valid. At most 32 characters can be
defined by users. Ref: ESC% and ESC: commands.
ESC %
Format:ASCII:
Decimal:
Hexadecimal:
Explanation:
This command is used to replace character n in current characters set to user-defined
character m. After using this command, the user-defined character m will be printed out
instead of character n in current characters set.
m1,m2......mk is user-defined character code.
n1,n2......nk is replaced character code in current character set.
Both the value of m and n should be 32~255. Subscript k should be 1~32. The largest
character number which can be replaced is 32. Character NUL is added at the end to
mean the command is over. Ref: ESC % and ESC : command.
Remark: No matter in Chinese mode or character mode, replacing character will be
printed when printing this character code.
ESC :
Format: ASCII:
Decimal:
Hexadecimal:
Explanation:
This command is used to recover original character in character set. This character has
been replaced by user-defined character through command ESC % previously. However,
the used-defined character won't be deleted from RAM and still can be used through
ESC % command.
The BASIC programs to observing the effect of ESC &, ESC % and ESC : commands are
as below:
10 LPRINT CHR$(27);"W"; CHR$(8);
20 LPRINT CHR$(27);"&"; CHR$(65);
30 LPRINT CHR$(&H02);CHR$(&H7C); CHR$(&H40);
40 LPRINT CHR$(&HC0);CHR$(&H40); CHR$(&H00);
50 LPRINT CHR$(27);"%"; CHR$(65);CHR$(65); CHR$(0);'ESC % command
60 LPRINT CHR$(65);CHR$(13);
ESC %
m1
n1
27
37
m1
n1
1B
25
m1
n1
ESC
:
27
58
1B
3A
Replace User-defined Character
m2
n2......mk
m2
n2......mk
m2
n2......mk
Recover Character in Character Set
'Enlarge 8times from Width and Height
'ESC &command
'print user-defined character
31
nk NUL
nk 0
nk 00
Need help?
Do you have a question about the SP-RMD11A and is the answer not in the manual?