Specifications

1-26 Command Descriptions Rev. A
GS L nL nH
[Name] Set left margin
[Format] ASCII GS L
nL nH
Hex 1D 4C nL nH
Decimal 29 76 nL nH
[Range] 0 nL 255
0
nH 255
GS W nL nH
[Name] Set printing area width
[Format] ASCII GS W
nL nH
Hex 1D 57 nL nH
Decimal 29 87 nL nH
[Range] 0 nL 255
0
nH 255
GS L
nL nH sets the left margin to [(nL + nH × 256) × (horizontal motion unit)] inches from the
beginning of a line. The default setting is
nL=0, nH=0. This command is enabled only at the beginning
of a line in standard mode. If this command is entered in page mode, an internal flag is activated and
the command is enabled when the printer returns to standard mode.
GS W
nL nH sets the printing area width to [(nL + nH × 256) × (horizontal motion unit)] inches. The
default setting is
nL=144, nH=1. This command is enabled only at the beginning of a line in standard
mode. If this command is entered in page mode, an internal flag is activated and the command is
enabled when the printer returns to standard mode.
If the above commands set the printing area width to less than the width of one character, the
printing area width is extended to accommodate one character for the line.
The horizontal motion units use the horizontal value set by the GS P command. The default setting is
1/160 inch.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(160);CHR$(144);
PRINT #1, CHR$(&H1B);:c0:;CHR$(1);Select paper rol l
PRINT #1, "01234567890123456789"; CHR$(&HA);
PRINT #1, CHR$(&H1B);"c1";CHR$(1);Select paper rol l
PRINT #1, CHR$(&H1D);"L";CHR$(60);CHR$(0);
PRINT #1, CHR$(&H1D);"W";CHR$(120);CHR$(0);
PRINT #1, "01234567890123456789"; CHR$(&HA);
01234567890123456789
0123456789
0123456789
Left Printing area
margin width