Homelite HL-1660E, 2400C Setting the vertical motion index VMI, Esc&l#C 2738108#67 1Bh26h6Ch#43h

Models: HL-1250 HL-1270N HL-1470N 2400C HL-1050 HL-P2500 2060 HL-1660E HL-1070 HL-1450 HL-2400CE

1 431
Download 431 pages 8 Kb
Page 45
Image 45

10/10/03

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 *****

20ESC$=CHR$(27)

30REM

40REM --- SET LINE PITCH TO 1/48 INCH ---

50LPRINT ESC$+"&l1C";

60FOR I=1 TO 10

70LPRINT "I can't read."

80NEXT

90LPRINT ESC$+"&l8C";

100LPRINT

110LPRINT

120REM --- SET LINE PITCH TO 1/12 INCH ----

130LPRINT ESC$+"&l4C";

140LPRINT "line pitch is 1/12 inch"

150REM --- SET LINE PITCH TO 1/8 INCH ----

160LPRINT ESC$+"&l6C";

170LPRINT "line pitch is 1/8 inch"

180REM --- SET LINE PITCH TO 1/6 INCH ----

190LPRINT ESC$+"&l8C";

200LPRINT "line pitch is 1/6 inch"

210REM --- SET LINE PITCH TO 1/4 INCH ----

220LPRINT ESC$+"&l12C";

230LPRINT "line pitch is 1/4 inch"

240LPRINT "line pitch is 1/4 inch"

250REM --- PAPER EJECT ----

260LPRINT CHR$(12);

270END

<Sample file 1>

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.

CHAPTER 2 "PCL" - 27

Page 45
Image 45
Homelite HL-1660E, HL-P2500, HL-2400CE Setting the vertical motion index VMI, Esc&l#C 2738108#67 1Bh26h6Ch#43h, Sample file