
Revision C 16/01/96
Chapter 2 "PCL" - 22
Setting the horizontal motion index (HMI)
Esc&k#H
(27)(38)(107)#(72)
<1Bh><25h><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.
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>
Содержание HL- SERIES
Страница 13: ...Revision A 16 01 96 Chapter 1 Introduction ...
Страница 16: ...Revision C 16 01 96 Chapter 2 PCL 1 Chapter 2 PCL ...
Страница 123: ...Revision C 16 01 96 Chapter 2 PCL 3 W width raster area 78 Y y offset raster 79 ...
Страница 124: ...Revision C 16 01 96 Chapter 3 PJL 1 Chapter 3 PJL Printer Job Language ...
Страница 180: ...Revision C 16 01 96 Chapter 4 Diablo 630 1 Chapter 4 Diablo 630 ...
Страница 200: ...Revision C 16 01 96 Chapter 5 EPSON FX 850 1 Chapter 5 EPSON FX 850 ...
Страница 237: ...Revision C 16 01 96 Chapter 6 IBM Proprinter XL 1 Chapter 6 IBM Proprinter XL ...
Страница 259: ...Revision C 16 01 96 Chapter 7 Bar Codes Control 1 Chapter 7 Bar Code Control ...
Страница 267: ...Revision C 16 01 96 Chapter 8 HP GL2 1 CHAPTER 8 HP GL 2 Graphics Language ...
Страница 280: ...Revision C 16 01 96 Chapter 8 HP GL2 14 220 END Sample 21 ...
Страница 328: ...Revision C 16 01 96 Chapter 9 HP GL 1 CHAPTER 9 HP GL Graphics Language ...
Страница 332: ...Revision C 16 01 96 Chapter 9 HP GL 5 1 3 2 Printing Area a b d c a b c d mm A4 4 5 5 5 Letter 6 5 5 5 Legal 6 5 5 5 ...
Страница 342: ...Revision C 16 01 96 Chapter 9 HP GL 15 Sample 68 ...
Страница 387: ...Revision C 16 01 96 APPENDIX A COMPALISON LIST 24 RESOLUTION 300 600 300 600 300 600 ...