Set Left Margin - NCR 7158 Owner's Manual

Thermal receipt and impact printer
Table of Contents

Advertisement

Set Left Margin

ASCII:
Hexadecimal:
Decimal:
Range of nL:
Range of nH:
Default
Sets the left margin of the printing area. The left margin is set to (((nH
X 256) + nL) times horizontal motion unit) inches. The horizontal
motion units are set by the Set Horizontal and Vertical Minimum
Motion Units command (1D 50), described in this manual.
The width of the printing area is set by the Set Printing Area Width
command (1D 57), which follows this command. See the Set Printing
Area Width command (1D 57) in this document for a description of
that command.
If the setting exceeds the printable area, the maximum value of the
printable area is used. The maximum printable area is 576 dots. See the
illustration.
Formulas:
To set the left margin to one inch at the default horizontal motion unit
of 1/203 inches, send the four-byte string:
GS
L
203
Or, to set the left margin to two inches at the default horizontal motion
unit of 1/203 units per inch, send the four-byte string:
GS
L
150
Where 2 inches = 406/203, and 406 = (1 X 256) + 150.
←
←Left margin→
Exceptions:
The command is effective only at the beginning of a line.
This command is ignored if the line buffer is not empty, and only
effects the Receipt interface.
GS L nL nH
1D 4C nL nH
29 76 nL nH
0 - 255
0 - 255
:
576 dots (the maximum printable area)
0
1
Printable area 576 dots→
←Printing area width→
Chapter 7: Programming Guide 7-51

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents