20
the model of printer. (Seeing at Section 1.1).
The default value is n=0, that is, no right margin.
The position is absolutely set by this command, so it is not affected by
ESC U and ESC W character enlarge commands.
If reach to the right margin set by the command, printer would add
Carriage Return and Line Feed automatically.
For example, to set right margin into 24,you can send following
command
ASCII
:
ESC Q
ACK
Decimal
:
27
81
6
Hexadecimal :
1B
51
06
The BASIC program for the above example is shown as follows:
10 PRINT #1, "123456789012345678901234"
20 PRINT #1, CHR$(27);"Q";CHR$(6);
'ESC Q command
30 PRINT #1, "1234567890123456789012345678901234567890"
The printout of running the program in TP UP-PN printer is shown
below:
ESC I
Set left margin
Format:
ASCII
:
ESC I
n
Decimal
:
27
108 n
Hexadecimal
:
1B
6C
n
Explanation:
The value of n should be in 0 to the range of printing width specified by
the model of printer.
The default value is n=0, that is, no left margin.
The position is absolutely set by this command, so it is not affected by
ESC U and ESC W character enlarge commands.
For instance, to set left margin into 6, you can send following command:
21
ASCII
:
ESC l
ACK
Decimal
:
27
108 6
Hexadecimal
:
1B
6C
06
The BASIC program for the above example is shown below:
10 PRINT #1, "123456789012345678901234"
'Scalar
20 PRINT #1, CHR$(27);"l"; CHR$(6);
'ESC l command
30 PRINT #1, "1234567890123456789012345678901234567890"
The printout of running the program in TP UP-PN printer is shown
below:
3.4 Character Setting Commands
ESC U
Enlarge width
Format:
ASCII
:
ESC U
n
Decimal
:
27 85
n
Hexadecimal
:
1B
55
n
Explanation:
The width of character or graphics will be n times wider than normal one.
The value of n should range in 1 - 4. The default value is n=1, that is, normal
width without enlarging.
For observing the enlarging effect of ESC U command, please run
following BASIC program:
10 FOR I=1 TO 3
'From 1 to 3 times
20 PRINT #1, CHR$(27);"U";CHR$(I); 'ESC U command
30 PRINT #1, "TP";
'Print string
40 NEXT I
50 PRINT #1, CHR$(13);
'CR command
The printout of running the program in TP UP-PN printer is shown below:
Summary of Contents for UP-PN24S
Page 25: ...Character code table 2...