24
40 PRINT #1, "UPT";
'UPSF prints underline
50 PRINT #1, CHR$(27);"-";CHR$(0); 'Turn underline off
60 PRINT #1, "TP"
The printout of running the program in TP UP-PN printer is shown below:
ESC 6
Select Font 1
Format:
ASCII
:
ESC 6
Decimal
:
27
54
Hexadecimal
:
1B
36
Explanation:
All characters in use will be from Font 1 after issuing this command.
There are two sets of fonts available in TP UP-PN printers. Font 1 is
selected when power on or ESC @ command is active.
ESC 7
Select Font 2
Format:
ASCII
:
ESC 7
Decimal
:
27
55
Hexadecimal
:
1B
37
Explanation:
All characters in use will come from Font 2 after issuing this command.
Refer to command ESC 6.
SO
Select double-width p rinting
Format:
ASCII
:
SO
Decimal
:
14
Hexadecimal
:
0E
Explanation:
All characters will be printed with double-width as normal one in the
current line after issuing the command. Carriage Return or DC4 commands
can terminate SO command.
25
However normal and width-enlarging characters can be mixed in the same
line.
DC4
Cancel double-width printing
Format:
ASCII
:
DC4
Decimal :
20
Hexadecimal :
14
Explanation:
Cancel the double-width printing in one line selected by SO command.
This command does not cancel enlarging mode selected by ESC U and ESC W
commands.
ESC i
Turn reverse printing on/off
Format:
ASCII :
ESC i
n
Decimal
:
27
105 n
Hexadecimal
: 1B
69
n
Explanation:
If n=1, then turn on the reverse printing. If n=0 turn off it. Reverse
printing is white on black, as in a photographic negative.
Normal printing is black in white. It is selected when power on or issue
ESC @ command.
The BASIC program for reverse printing is as follows:
10 PRINT #1, CHR$(27);"i";CHR$(1); 'Turn reverse printing on
20 PRINT #1, " ABCDEFGHIJKLMNO"
The printout of running the program in TP UP-PN printer is shown
below:
ESC c
Turn inverse printing on/off
Format:
ASCII
:
ESC c
n
Decimal
:
27
99
n
Hexadecimal
:
1B
63
n
Содержание UP-PN24S
Страница 25: ...Character code table 2...