29
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 %
Replace User-defined Character
Format: ASCII:
ESC %
m1
n1
m2
n2……mk
nk NUL
Decimal:
27
37
m1
n1
m2
n2……mk
nk 0
Hexadecimal:
1B
25
m1
n1
m2
n2……mk
nk 00
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 :
Recover Character in Character Set
Format:
ASCII:
ESC
:
Decimal:
27
58
Hexadecimal:
1B
3A
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)
;
‘Enlarge 8times from Width and Height
20 LPRINT CHR$(27)
;
“&”
;
CHR$(65)
;
‘ESC
&
command
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)
;
‘print user-defined character
Содержание SP-RMDIIID
Страница 7: ...5 2 2 Outer dimension 2 2 SP RMDIIID model picture...
Страница 41: ...39 n 3 Error status n 4 paper feeding status...
Страница 48: ...46 Characters Set 2...
Страница 49: ...47...