
25
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
70 LPRINT CHR$(27)
;
CHR$(58)
;
‘ESC
:
command
80 LPRINT CHR$(65)
;
‘print original character
The print result of the above programs is as following:
Содержание SP-RMD8
Страница 9: ...6 Picture 2 5 ...
Страница 37: ...34 n 3 Error status n 4 paper feeding status 4 2 10 Bar Code Printing Commands GS k m d1 dk NUL Print Barcode ...
Страница 45: ...42 ...