
7/17/2009
CHAPTER 2 "PCL" - 29
•
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-2600CN Series
Page 4: ......
Page 15: ...2009 06 29 CHAPTER 1 INTRODUCTION 1 CHAPTER 1 INTRODUCTION ...
Page 20: ...2009 06 29 CHAPTER 1 INTRODUCTION 6 ...
Page 21: ...7 17 2009 CHAPTER 2 PCL 1 CHAPTER 2 PCL PRINTER CONTROL LANGUAGE ...
Page 129: ...2009 06 29 CHAPTER 3 PCL5C 1 CHAPTER 3 PCL5C ...
Page 147: ...2009 06 29 CHAPTER 4 HP GL 2 1 CHAPTER 4 HP GL 2 GRAPHICS LANGUAGE ...
Page 200: ...2009 06 29 CHAPTER 4 HP GL 2 54 ...
Page 201: ...2009 06 29 CHAPTER 5 PJL 1 CHAPTER 5 PJL PRINTER JOB LANGUAGE ...
Page 276: ...2009 06 29 CHAPTER 6 EPSON 1 CHAPTER 6 EPSON FX 850 ...
Page 304: ...2009 06 29 CHAPTER 7 IBM PROPRINTER 1 CHAPTER 7 IBM PROPRINTER XL ...
Page 325: ...2009 06 29 CHAPTER 7 IBM PROPRINTER 22 ...
Page 326: ...2009 06 29 CHAPTER 8 BAR CODE CONTROL 1 CHAPTER 8 BAR CODE CONTROL ...
Page 337: ...2009 06 29 CHAPTER 9 HP GL 1 CHAPTER 9 HP GL GRAPHICS LANGUAGE ...
Page 364: ...2009 06 29 CHAPTER 9 HP GL 28 ...
Page 365: ...2009 06 29 CARBON COPY FUNCTION 1 CHAPTER 10 CARBON COPY FUNCTION ...
Page 373: ...2009 06 29 APPENDIX A COMPARISON LIST 1 APPENDIX A COMPARISON LIST ...
Page 475: ...2009 06 29 APPENDIX C HBP MODE COMMANDS 14 ...
Page 485: ...2009 06 29 APPENDIX D REFERENCE LIST OF MX 2000 4000 5000 7000 SERIES UNIQUE COMMANDS 10 ...