Setting The Horizontal Motion Index (Hmi) - Brother HL-Series Technical Reference Manual

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

Advertisement

Revision C 16/01/96

Setting the horizontal motion index (HMI)

Esc&k#H
# 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.
10 REM ***** SETTING THE CHARACTER PITCH *****
20 ESC$=CHR$(27)
30 REM --- DEFAULT IS 10 CPI PITCH ---
40 LPRINT "10 PITCH "
50 REM --- SET 5 CPI PITCH ---
60 LPRINT ESC$+"&k24H";
70 LPRINT "AAA"
80 REM --- SET 6 CPI PITCH ---
90 LPRINT ESC$+"&k20H";
100 LPRINT "AAA"
110 REM --- SET 8 CPI PITCH ---
120 LPRINT ESC$+"&k15H";
130 LPRINT "AAA"
140 REM --- SET 10 CPI PITCH ---
150 LPRINT ESC$+"&k12H";
160 LPRINT "AAA"
170 REM --- SET 12 CPI PITCH ---
180 LPRINT ESC$+"&k12H";
190 LPRINT "AAA"
200 REM --- SET 0 CPI PITCH ---
210 LPRINT ESC$+"&kH";
220 LPRINT "I CAN'T READ"
230 REM --- PAPER EJECT ----
240 LPRINT CHR$(12);
250 END
< Sample file 2>
(27)(38)(107)#(72)
Chapter 2 "PCL" - 22
<1Bh><25h><6Bh>#<48h>

Advertisement

Table of Contents
loading

Table of Contents