20
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.
Command HT carry out horizontal tab.
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
“1234567890123456789” ’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
LPRINT CHR$(13);
The print result of the above program is as following:
HT
Carry out Horizontal Tab Value
Format:
ASCII:
HT
Decimal:
9
Hexadecimal:
09
Explanation:
The print position is advanced to the next horizontal tab position which is set by ESC D
Summary of Contents for SP-RMDIIID
Page 7: ...5 2 2 Outer dimension 2 2 SP RMDIIID model picture...
Page 41: ...39 n 3 Error status n 4 paper feeding status...
Page 48: ...46 Characters Set 2...
Page 49: ...47...