26
Explanation:
If n=1, then turn inverse printing on. If n=0, turn it off. Reverse printing
is usual in wall-mounted printer, so that the printout is easy to read. The
default is n=0.
3.5 User-Defined Character Commands
ESC &
Define user-defined character
Format:
ASCII
:
ESC &
m
n1
n2
...
n6
Decimal
:
27
38
m
n1
n2
...
n6
Hexadecimal
:
1B
26
m
n1
n2
...
n6
Explanation:
The command allows user to define a user-defined character. The
parameter m is the code of this character. The value of the code ranges among
32 and 255.
Parameter n1, n2, … , n6 are the structure code of the character. The
character is composed of 6X8 dot matrix, that is, 6 dot-columns by 8 dot -lines.
One byte of the data corresponds to one column of the character. The MSB of
the byte is at top of the column. Refer to following structure:
User-defined characters are stored in RAM but they will be lost when
power off.
If several ESC & commands used the identical value of the m only the
last m would be available. The number of the user-defined character is able up
to 32. Please refer to ESC % and ESC : commands.
27
ESC %
Replace with 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 can replace the character n of current fonts with
user-defined character m. the user-defined character m will be printed after
issuing the command, which is substitute for the character n in current fonts.
m1, m2…mk are codes of user-defined character.
n1, n2…nk are codes of characters in current fonts and will be replaced.
Value for both m and n ranges among 32 and 255.
The value of subscript ? ranges among 1 and 32. The maximum number
of characters that can be replaced is 32.
The character NUL adds in the last to indicate the end of the command.
Please refer to ESC & and& ESC : commands.
ESC :
Restore the font character
Format:
ASCII
:
ESC :
Decimal
:
27
58
Hexadecimal
:
1B
3A
Explanation:
The command restores the original character of Font, which has been
replaced with the user-defined character set by ESC % command. However the
user-defined character is still in RAM and can be called back by the ESC %
command.
Using the following BASIC program can observe the effect of ESC &,
ESC % and ESC : commands.
10 PRINT #1, CHR$(27);"W";CHR$(2); 'Enlarge in V and H
20 PRINT #1, CHR$(27);"&";CHR$(65); 'ESC & command
30 PRINT #1, CHR$(&H02)CHR$(&H7C)CHR$(&H40);
40 PRINT #1, CHR$(&HC0)CHR$(&H40)CHR$(&H00);
50 PRINT #1, CHR$(27);"%";CHR$(65)CHR$(65)CHR$(0); 'ESC %
command
60 PRINT #1, CHR$(65)
'Print defined character
70 PRINT #1, CHR$(27);":";
'ESC :command
Summary of Contents for UP-PN24S
Page 25: ...Character code table 2...