CHAPTER 2 PCL - 37
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
Summary of Contents for HL-4140CN
Page 4: ......
Page 15: ...CHAPTER 1 INTRODUCTION 1 CHAPTER 1 INTRODUCTION ...
Page 20: ...CHAPTER 2 PCL 1 CHAPTER 2 PCL PRINTER CONTROL LANGUAGE ...
Page 137: ...CHAPTER 3 PCL5C 1 CHAPTER 3 PCL5C ...
Page 155: ...CHAPTER 4 HP GL 2 1 CHAPTER 4 HP GL 2 GRAPHICS LANGUAGE ...
Page 208: ...CHAPTER 5 PJL 1 CHAPTER 5 PJL PRINTER JOB LANGUAGE ...
Page 285: ...CHAPTER 6 EPSON 1 CHAPTER 6 EPSON FX 850 ...
Page 313: ...CHAPTER 7 IBM PROPRINTER 1 CHAPTER 7 IBM PROPRINTER XL ...
Page 334: ...CHAPTER 8 BAR CODE CONTROL 1 CHAPTER 8 BAR CODE CONTROL ...
Page 346: ...CHAPTER 9 HP GL 1 CHAPTER 9 HP GL GRAPHICS LANGUAGE ...
Page 373: ...CHAPTER 10 CARBON COPY FUNCTION 1 CHAPTER 10 CARBON COPY FUNCTION ...
Page 383: ...APPENDIX A COMPARISON LIST 1 APPENDIX A COMPARISON LIST ...
Page 490: ...APPENDIX C HBP MODE COMMANDS 1 APPENDIX C HBP MODE COMMANDS For HL 820 1020 1040 Only ...