Coordinates, Units, Unit of measure – Brother HL-2170W User Manual
Page 52: Setting the left and right margins
CHAPTER 2 PCL - 33
4.2.8.
Coordinates
The printer control language coordinate system has its origin at the intersection of the left edge of the logical
page and the top margin. The x-coordinate value of the current cursor position increases as the cursor moves
from left to right, the y-coordinate value increases as the cursor moves down the page. The cursor can be
explicitly positioned anywhere on the current logical page using the PCL coordinate system. In addition, the
cursor's coordinate position will change as text and graphics are printed.
4.2.9.
Units
You can specify cursor movement within the PCL coordinate system using one of three different unit systems.
Decipoints
A decipoint is one-tenth of a typographic point measurement = 1/720".
Rows and columns
Using the horizontal motion index (HMI) (Esc&k#H) and vertical motion index (VMI)(Esc&l#C) commands
you can set the width of a column and the height of a row. You can then use the column width and row height as
the units of the coordinate system. The line-spacing command is an alternative to the VMI command.
Units
The unit of measurement used must be defined by the unit of measure command as described in 4.2.10.
4.2.10.
Unit of measure
Esc&u#D (27)(38)(117)#(68)
<1Bh><26h><75h>#<44h>
# value can be 96, 100, 120, 144, 150, 160, 180, 200, 225, 240, 288, 300, 360, 400, 450, 480, 600, 720, 800,
900, 1200, 1440, 1800, 2400, 3600, 7200.
# stands for the unit of measurement in dots per inch.
The value set by this command is used as the unit setting for use by other setting commands such as
ESC*p#X.
The default value of # is 300.
Example)
Esc&u300D Esc*p+100x+200Y
move cursor 100/300 inch right and 200/300 inch down.
Esc&u600D Esc*p+100x+200Y
move cursor 100/600 inch right and 200/600 inch down.
4.2.11.
Setting the left and right margins
Esc&a#L (27)(38)(97)#(76)
<1Bh><26h><61h>#<4Ch>
# stands for the distance between the left edge of the logical page and the left margin in columns.
Esc&a#M (27)(38)(97)#(77)
<1Bh><26h><61h>#<4Dh>
# stands for the distance between the left edge of the logical page and the right margin in columns.
The column width is as defined by the HMI. If you subsequently change the HMI, the margin positions that
you have set do not change - that is, when you specify margin positions they remain fixed physically until
you specify new ones or reset them to default values.
You cannot specify a value for the left margin that is greater than the value of the current right margin.
If the current cursor position is to the left of your new left margin setting, the cursor will be moved to the
new left margin.
You cannot set the right margin further right than the right edge of the logical page.
- HL-1670N HL-6050D HL 5250DN HL-5070N HL-2460 HL-6050DN HL-2150N HL 2700CN HL-2130 HL-S7000DN HL-3040CN HL 1650 HL-6050 HL-5240 HL-5240L HL-1470N HL 3070CW HL 5170DN HL-3450CN HL-3140CW HL 5470DW HL-5140 HL-5440D HL-7050 HL-2240 HL-5040 HL-4070CDW HL-1870N HL-1110 HL-1850 HL 4150CDN HL-8050N HL 5450DN HL 5370DW HL-5050 HL-2140 HL 1270N HL-2600CN HL-6180DW HL-5350DN HL-4050CDN HL-2070N HL-3260N HL-5150D HL-5280DW HL-3170CDW HL-4570CDW HL-3150CDW HL 4040CN HL-4140CN HL 2240D HL 2270DW HL-1250 HL-7050N HL 5340D HL-2250DN HL-1450 HL-L9200CDWT HL-1112 HL-5270DN HL-5450DNT HL-L8250CDN HL 4570CDWT HL-5380DN HL-6180DWT HL-L8350CDW HL-4040CDN HL-L8350CDWT HL-2230 HL-5470DWT HL 2220 HL-1110E HL-1112E