18
ESC D
Set horizontal tabs
Format:
ASCII
:
ESC D
n1
n2
n3
...
NUL
Decimal
:
27
68
n1
n2
n3
...
0
Hexadecimal
:
1B
44
n1
n2
n3
...
00
Explanation:
The horizontal tab position is defined as n1, n2 and etc. All its values must
be limited to the range of printing width based on the model of printer (Seeing
at Section 1.1).
The character NUL added at last indicates the end of this command.
All the setting base on ESC D can be cancel by the form ESC D of this
command.
HT command executes the horizontal tab.
For example: set three positions of horizontal tab separately in column 2, 9
and 14. You can send following command.
ASCII
:
ESC D
STS HT SO NUL
Decimal
:
27
68
2
9
14
0
Hexadecimal
:
1B
44
02
09
0E
00
Its BASIC program is:
10 PRINT #1, "1234567890123456"
'Scalar
20 PRINT #1, CHR$(27);"D";CHR$(2);CHR$(9);CHR$(14);CHR$(0); 'ESC
D command
30 PRINT #1, CHR$(9);
'HT command
40 PRINT #1, "HT1";
'Print string
50 PRINT #1, CHR$(9);
'HT command
60 PRINT #1, "HT2";
'Print string
70 PRINT #1, CHR$(9);
'HT command
80 PRINT #1, "HT3";
'Print string
The printout of running this program in TP UP-PN is as follows:
19
HT
Horizontal tab
Format:
ASCII
:
HT
Decimal
:
9
Hexadecimal
:
09
Explanation:
Printing continues to the position of next horizontal tab set by ESC D.
If no horizontal tab setting before or if the current position equals or
exceeds the last position of horizontal tab. HT command will be no action.
ESC f
Print blank character or lines
Format:
ASCII
:
ESC f
m n
Decimal
:
27
102 m
n
Hexadecimal
:
1B
66
m
n
Explanation:
If m=0
,
ESC f NUL n command prints n blank characters. The value of n
should be in the range of printing width specified by the model of printer.
(Seeing at Section 1.1).
If m=1, ESC f SOH n command prints n blank lines. The value of n
should range among 0 and 255.
For instance: Print 6 blank characters in one line, you can send following
command:
ASCII
:
ESC f
NUL ACK
Decimal
:
27
102 0
6
Hexadecimal :
1B
66 00
06
Another instance is printing 6 blank lines. You can send the follows:
ASCII
:
ESC f
SOH ACK
Decimal
:
27
102 1
6
Hexadecimal :
1B
66
01
06
ESC Q
Set right margin
Format:
ASCII
:
ESC Q
n
Decimal
:
27
81
n
Hexadecimal
:
1B
51
n
Explanation:
The value of n should be in 0 to the range of printing width specified by
Содержание UP-PN24S
Страница 25: ...Character code table 2...