3 – 24
Set Left and Right Margin Decimal Hex ASCII Comp
Set left margin 27 108 n 1B 6C n ESC l n E
n = 0 to 255
Set right margin 27 81 n 1B 51 n ESC Q n E
n = 1 to 255
Set Left and Right Margin Decimal Hex ASCII Comp
Set left and right margin 27 88 n1 n2 1B 58 n1 n2 ESC X n1 n2 P A
n1 = left margin n2 = right margin; n1 = 0 to 245 n2 = 1 to 255
In both margin commands, you set margins by columns. The actual position of the
margin depends on the current pitch: a margin of 10 columns will come out as one inch
in 10 CPI and one half inch in 20 CPI. However, once you have set a margin, its
absolute position remains the same, even if you change pitch, until you specifically
reset the margin. This saves you the work of adjusting margins with every pitch change
in your document.
You should always send margin commands at the beginning of a line.
Be sure to specify a right margin that is at least one more than the left margin.
Epson
Sending the left margin command will cancel any horizontal tab stops you may have
set, returning the printer to its default of tab stops every eight columns.
Range of Margin Settings
ML590 Elite ML591 Elite
Pitch Left Right Left Right
10 CPI/proportional 0-70 10-80 0-126 10-136
12 CPI 0-84 12-96 0-151 12-163
15 CPI 0-115 15-120 0-189 15-204
17.1 CPI 0-119 18-137 0-252 18-233
20 CPI 0-140 20-160 0-252 20-255