Resetting the horizontal margins, Setting the top margin – Brother HL-2170W User Manual
Page 53
CHAPTER 2 PCL - 34
If the current cursor position is to the right of your new right margin setting, the cursor will be moved to the
new right margin.
The factory default left and right margin settings are at the left and right edges of the logical page
respectively.
Depending on your model, margin settings can be made from the printer's control panel (see the User
Guide).
10 REM ***** SET AND CLEAR SIDE MARGINS *****
20 ESC$=CHR$(27)
30 WIDTH "LPT1:",255
40 REM --- END OF LINE WRAP ON ---
50 LPRINT ESC$+"&s0C";
60 REM --- LEFT MARGIN SET TO 10 COLUMNS ----
70 LPRINT ESC$+"&a10L";
80 REM --- RIGHT MARGIN SET TO 70 COLUMNS ----
90 LPRINT ESC$+"&a70M";
100 REM --- PRINT "0123456789" 10 TIMES
110 FOR I=1 TO 10
120 LPRINT "0123456789";
130 NEXT
140 LPRINT
150 REM --- CLEAR SIDE MARGIN ----
160 LPRINT ESC$+"9";
170 REM --- PRINT "0123456789" 10 TIMES
180 FOR I=1 TO 10
190 LPRINT "0123456789";
200 NEXT
210 REM --- PAPER EJECT ----
220 LPRINT CHR$(12);
230 END
4.2.12.
Resetting the horizontal margins
Esc9 (27)(39)
<1Bh><39h>
This command resets the left and right margins to the left and right edges of the logical page respectively.
4.2.13.
Setting the top margin
Esc&
l#E (27)(38)(108)#(69) <1Bh><26h><6Ch>#<45h>
# stands for the distance between the top of the logical page and the top margin in rows.
The row height is as defined by the VMI. If you subsequently change the VMI (or the line spacing) the top
margin position that you have set does not change - that is, when you specify the top margin position it
remains fixed physically until you specify a new one or reset it to a default value.
The top margin command is ignored if you try to set a margin greater than the current length of the logical
page.
The top margin command is ignored if the current VMI is 0.
The factory default top margin setting is half an inch below the top of the logical page.
Depending on your model, the top margin can be set from the printer's control panel (see the User Guide).
10 REM ******* SET TOP MARGIN TO 10 LINES *******
20 REM
30 ESC$=CHR$(27)
40 LPRINT ESC$+"&l10E";
50 LPRINT "10 LINES "
60 LPRINT CHR$(12);
70 END
- 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