Example Of Using - Citizen CT-S2000 Command Reference Manual

Line thermal printer
Hide thumbs Also See for CT-S2000:
Table of Contents

Advertisement

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";
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  4 00 pitches
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)
Page Mode lesson
Test 1
400
Print Direction
Figure 4-3 Example 1: Results of Print
extending from the start point (0, 0),
200
Print area
- 166 -
Paper

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents