iDP3221 User’s Manual
125
CITIZEN
Example of the Use of Page Mode
The following explains specific uses of page mode.
When in page mode, the commands are typically sent from the host to the printer in the following sequence:
(1) An ESC L puts the printer in page mode.
(2) An ESC W specifies the print area.
(3) An ESC T specifies the print direction.
(4) Print data is sent.
(5) An FF instructs the printer to print the print data in a batch.
After printing, the printer returns to standard mode.
<Example 1>
100 PRINT#1, chr$(&H1b); "L"
110 PRINT#1, chr$(&H1b); "W";chr$(0);chr$(0);chr$(0);chr$(0);
120 PRINT#1, chr$(200) ;chr$(0);chr$(144);chr$(1);
130 PRINT#1, chr$(&H1b); "T";chr$(0);
140 PRINT#1, "Page mode lesson Test1"
150 PRINT#1, chr$(&Hc);
The program in Example 1 reserves a print area of 200 (400 pitches extending from the start point (0, 0)), and then
prints the text "Page mode lesson Test 1" onthe first line of the print area as shown in
Print Area
Paper
Figure 1-1