4.1.4 Example of Using 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.

(6)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 Figure 4-3 “Example 1: Results of Print”.

(0,0)

200

 

Page Mode lesson

Paper

Test 1

 

 

 

400

 

Print area

 

 

Print

 

 

direction

 

 

Figure 4-3 Example 1: Results of Print

— 144 —

Page 149
Image 149
Citizen CT-S300 manual Example of Using page Mode