16
ESC N
Set bottom margin
Format:
ASCII
:
ESC N
n
Decimal
:
27
78
n
Hexadecimal
:
1B
4E
n
Explanation:
Set bottom margin into n lines. The value of n should be in 0 - 255. The
default value is n=0.
The bottom margin means the numbers of space line from the last
printable line on one page to the end of the page.
For instance, if set bottom margin is 3 lines then issue the following code
sequence:
ASCII
:
ESC N
ETX
Decimal
:
27
78
3
Hexadecimal
:
1B
4E
03
The BASIC program sending above code sequence is below:
PRINT #1, CHR$(27);"N";CHR$(3);
ESC O
Cancel bottom margin
Format:
ASCII
:
ESC O
Decimal
:
27
79
Hexadecimal
:
1B
4F
Explanation:
Set bottom margin to 0 line. It means that printer will prints one by one
line without space lines between two continual pages.
ESC B
Set vertical tabs
Format:
ASCII
:
ESC B
n1
n2
n3
...
NUL
Decimal
:
27
66
n1
n2
n3
...
0
Hexadecimal
:
1B
42
n1
n2
n3
...
00
Explanation:
The vertical tab position is defined as n1, n2 and etc. All its values must
be limited to the range of page length set by ESC C command.
The character NUL added at last indicates the end of the command.
All the vertical tab position can be canceled by ESC B NUL command.
VT command executes the vertical tab and feed paper to the position of
17
next vertical tab.
For example: set three positions of vertical tab separately in line 2,5 and 8.
You can send following command.
ASCII
:
ESC B
STX ENQ BS NUL
Decimal
:
27
66
2
5
8
0
Hexadecimal
:
1B
42
02
05
08
00
Its BASIC program is:
10 PRINT #1, CHR$(27);"B";CHR$(2);CHR$(5);CHR$(8);CHR$(0);'ESC B
command
20 PRINT #1, CHR$(11);
'VT command
30 PRINT #1, "VTAB1";
'Print string
40 PRINT #1, CHR$(11);
'VT command
50 PRINT #1, "VTAB2";
'Print string
60 PRINT #1, CHR$(11);
'VT command
70 PRINT #1, "VTAB3";
'print string
The printout running this program in TP UP-PN is as follows:
VT
Vertical tab
Format:
ASCII
:
VT
Decimal
:
11
Hexadecimal
:
0B
Explanation:
Feed paper to the position of the next vertical tab set by ESC B.
Note: if no vertical tab setting before or the current position equals or
exceeds the last position of vertical tab, VT command only feeds paper one
line (same as LF command).
VTAB1
VTAB2
VTAB3
Summary of Contents for UP-PN24S
Page 25: ...Character code table 2...