Setting The Left And Right Margins - Brother HL-Series Technical Reference Manual

Hide thumbs Also See for HL-Series:
Table of Contents

Advertisement

Revision C 16/01/96

Setting the left and right margins

Esc&a#L
# stands for the distance between the left edge of the logical page and the left margin in columns.
Esc&a#M
# 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 to be further right than the right edge of the logical page.
• 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
(27)(38)(97)#(76)
(27)(38)(97)#(77)
Chapter 2 "PCL" - 19
<1Bh><26h><61h>#<4Ch>
<1Bh><26h><61h>#<4Dh>

Advertisement

Table of Contents
loading

Table of Contents