17
LPRINT CHR$(11);
‘VT command
LPRINT “SPRM2”;
‘print character string
LPRINT CHR$(11);
‘VT command
LPRINT “SPRM3”
‘print character string
The print result of the above program is as following:
VT
Carry out Vertical Tab Value
Format:
ASCII:
VT
Decimal:
11
Hexadecimal:
0B
Explanation:
Feed paper to the next vertical tab position which is set by ESC B command.
Notice: if there is no vertical tab value setting, or the current position equals or is beyond
the last vertical tab position, VT command is to feed paper one line only (same to LF
command).
ESC D
Set Horizontal Tab Value
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 positions are entered as n1, n2 and so on, all of which should be within
the line width of this model printer. Character NUL is added at the end to indicate that the
command is over.
All set horizontal tab positions can be deleted by using this command in ESC D NUL
format.
Example: set three horizontal tab values at 2
nd
, 9
th
line, 14
th
character position in one line,
ASCII:
ESC
D
STX
HT
SO
NUL
Decimal:
27
68
2
9
14
0
Hexadecimal: 1B
44
02
09
0E
00
The BASIC programs for this example are as below:
LPRINT
“12345678901234567890123456789012”
’Ruler
LPRINT CHR$(27); CHR$(68);CHR$(2);CHR$(9);CHR$(14); CHR$(0); ’ESC D command
LPRINT CHR$(9);
‘HT command
LPRIN “HT1”;
‘print character string
LPRINT CHR$(9);
‘HT command
LPRINT “HT2”;
‘print character string
LPRINT CHR$(9);
‘HT command
LPRINT “HT3”;
‘print character string
Summary of Contents for SP-RMD8
Page 9: ...6 Picture 2 5 ...
Page 45: ...42 ...