- 438 -
5.1.4 Example of Using PAGE MODE
Thefollowing explainsspecificusesofPAGE MODE.
When inPAGE MODE, the commandsare typicallysent fromthehost tothe printer inthefollowingsequence:
(1) AnESC Lputs the printer inPAGE MODE.
(2) AnESC Wspecifiestheprint area.
(3) AnESC Tspecifies theprint direction.
(4) Print data issent.
(5) AnFFinstructs the printer toprint theprint data ina batch.
(6) After printing,theprinterreturnstoSTANDARD MODE.
<Example1>
100PRINT #1,CHR$(&H1B);"L";
110PRINT #1,CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);CHR$(0);
120PRINT #1,CHR$(200);CHR$(0);CHR$(144);CHR$(1);
130PRINT #1,CHR$(&H1B);"T";CHR$(0);
140PRINT #1,"Page mode lesson Test1"
150PRINT #1,CHR$(&HC);
TheprograminExample1reserves a print area of 200 400 pitches extending from the start point (0,0),andthenprintsthe
text “Page Mode lesson Test 1” on thefirst lineofthe print area asshown in Figure 5-3
“Example 1:Results ofPrint”.
Figure 5-3Example 1:Results of Print
Page mode lesson
Test1
Print area
Paper
400