Setting the vertical motion index (vmi), Setting the horizontal motion index (hmi) – Brother HL-2170W User Manual
Page 54
CHAPTER 2 PCL - 35
4.2.14.
Setting the vertical motion index (VMI)
Esc&
l#C (27)(38)(108)#(67) <1Bh><26h><6Ch>#<43h>
# stands for the height of one row in 1/48".
# can have any value in the range 0-32767.
The distance specified by the VMI is the vertical distance moved down the page when the printer performs a
line feed. The VMI is also sometimes referred to as the line pitch.
If you try to set a VMI that is greater than the current length of the logical page the command is ignored.
Changing the VMI setting does not affect the position of the top margin.
The factory default setting is 8 - that is, the printer will print six lines of text per inch.
Depending on your model, you can change the number of lines per page setting from the printer's control
panel or remote printer console. If you change its setting, the VMI will change automatically.
10 REM ***** SETTING THE LINE PITCH *****
20 ESC$=CHR$(27)
30 REM
40 REM --- SET LINE PITCH TO 1/48 INCH ---
50 LPRINT ESC$+"&l1C";
60 FOR I=1 TO 10
70 LPRINT "I can't read."
80 NEXT
90 LPRINT ESC$+"&l8C";
100 LPRINT
110 LPRINT
120 REM --- SET LINE PITCH TO 1/12 INCH ----
130 LPRINT ESC$+"&l4C";
140 LPRINT "line pitch is 1/12 inch"
150 REM --- SET LINE PITCH TO 1/8 INCH ----
160 LPRINT ESC$+"&l6C";
170 LPRINT "line pitch is 1/8 inch"
180 REM --- SET LINE PITCH TO 1/6 INCH ----
190 LPRINT ESC$+"&l8C";
200 LPRINT "line pitch is 1/6 inch"
210 REM --- SET LINE PITCH TO 1/4 INCH ----
220 LPRINT ESC$+"&l12C";
230 LPRINT "line pitch is 1/4 inch"
240 LPRINT "line pitch is 1/4 inch"
250 REM --- PAPER EJECT ----
260 LPRINT CHR$(12);
270 END
4.2.15.
Setting the horizontal motion index (HMI)
Esc&k#H (27)(38)(107)#(72)
<1Bh><26h><6Bh>#<48h>
# stands for the width of one column in 1/120".
# can have any value in the range 0-32767 and can have up to four decimal places.
If you are using a fixed space font the HMI is the horizontal distance moved across the page when the printer
prints one character.
If you are using a proportionally spaced font the HMI is the horizontal distance moved across the page when
the printer receives a space control code <20h>.
If any font characteristics are changed, or a Select Primary Font or Select Secondary Font control code is
sent to the printer, the HMI is set to correspond to the default pitch value of the newly selected font.
Changing the HMI setting does not affect the positions of the left and right margins.
The factory default setting is 12 - that is, the printer will print ten characters of fixed pitch text per inch.
- 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