beautypg.com

Citizen Systems BD2-2220 User Manual

Page 297

background image

- 297 -

5.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";
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 pitch

es 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 5-3
“Example 1: Results of Print”.

Page mode lesson
Test1

Print area

Paper

400

(0,0) 200

Print Direction

Figure 5-3 Example 1: Results of Print

This manual is related to the following products: