CHAPTER 2 PCL - 40
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>
4.2.16.
Setting line spacing
Esc&
l
#D (27)(38)(108)#(68)
<1Bh><26h><6Ch>#<44h>
# stands for the number of lines to be printed per inch.
ï‚Ÿ
# can have any of the following values: 1, 2, 3, 4, 6, 8, 12, 16, 24 or 48.
ï‚Ÿ
This command performs the same function as the VMI command.
ï‚Ÿ
Changing the line spacing setting does not affect the position of the top margin.
ï‚Ÿ
The factory default setting is 6 - that is, the printer will print six lines of text per inch.
ï‚Ÿ
Depending on your printer model, the number of lines per page can also be set from the printer's control
panel or remote printer console (see the User Guide).
4.2.17.
Text length
Esc&
l
#F (27)(38)(108)#(70)
<1Bh><26h><6Ch>#<46h>
# stands for the number of lines of text (at the current VMI) to be printed on each page.
ï‚Ÿ
Values for # should be within the value (Logical Page length-Top margin).
ï‚Ÿ
Text is printed from the top margin downwards.
ï‚Ÿ
If you specify a value that would cause the text area to extend beyond the end of the logical page, the
command is ignored.