iDP3221 User’s Manual

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"

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);

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" on the first line of the print area as shown in

Paper

Print Area

Figure 1-1

125

CITIZEN

Page 141
Image 141
Citizen iDP3221 manual Example of the Use of Page Mode