1-24 Command Descriptions Rev. A
GS L
n
L
n
H
[Name] Set left margin
[Format] ASCII GS L
n
L
n
H
Hex 1D 4C
n
L
n
H
Decimal 29 76
n
L
n
H
[Range] 0 ≤
n
L
≤ 255
0 ≤
n
H
≤ 255
GS W
n
L
n
H
[Name] Set printing area width
[Format] ASCII GS W
n
L
n
H
Hex 1D 57
n
L
n
H
Decimal 29 87
n
L
n
H
[Range] 0 ≤
n
L
≤ 255
0 ≤
n
H
≤ 255
GS L
n
L
n
H
sets the left margin to (
n
L
+
n
H
× 256) × (horizontal motion unit) from the beginning of a
line. The default setting is
n
L
=0,
n
H
=0. In standard mode, this command is enabled only when
processed at the beginning of a line. In page mode, an internal flag is activated and this command is
enabled when the printer returns to standard mode.
GS W
n
L
n
H
sets the printing area width to (
n
L
+
n
H
× 256) × (horizontal motion unit). The default
setting is
n
L
=0,
n
H
=2. In standard mode, this command is enabled only when processed at the
beginning of a line. In page mode, an internal flag is activated and this command is enabled when the
printer returns to standard mode.
Program Example Print Sample
PRINT #1, "0123456789012345678901234567890123456";
PRINT #1, CHR$(&HA);
GOSUB ht
PRINT #1, CHR$(&H1B);"D";CHR$(10);CHR$(20);
PRINT #1, CHR$(30);CHR$(0);
GOSUB ht
END
ht:
FOR i=1 TO 4
PRINT #1, CHR$(&H9); "H";
NEXT i
PRINT #1, CHR$(&HA);
RETURN
0123456789012345678901234567890123456
HHHH
HHHH
↑↑↑
8162432
Tab
position
10
Default
→
Tab
position
30
Tab
position
20