Citizen CT-S300 Printer User Manual


 
145
In Figure 4-3, a line feed occurs between lesson and Test 1 because the space next to lesson does
not fit in the horizontal range of the 200 × 400-pitch print area. The line feed width conforms to the value
specified by a command such as ESC 3.
It is possible to set as many print areas as desired before executing FF. If print areas overlap each other, the
print area setup data are ORed with the previous data.
If you want to erase a section of mapped data, use the CAN command. The CAN command erases all data in
the print area being specified. You can, therefore, use an ESC W to define a print area that encloses the
section you want to erase, and then execute the CAN command, so that the section of the data is erased.
It is important to remember that any part of a character that overlaps with the specified print area will be
erased.
< Example 2 >
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 lesson2CAN command";
150 PRINT #1, CHR$(&HA);
160 PRINT #1, "ABCDEFGHIJKLMNOPQRST1234567890";
170 PRINT #1, CHR$(&HC);
First, an ESC L is sent to switch to PAGE MODE (100th line). Next, an ESC W is used to send eight arguments,
n1 to n8, to reserve a print area. In this example, the arguments are sent in the sequence of 0, 0, 0, 0, 200, 0,
144, and 1, to reserve a print area that measures 200 from the start point (0, 0) in the x direction and 400 in
the y direction (110th to 120th line). Furthermore, an ESC T is isued to specify the print direction to be 0
(130th line).
After the above setup, print data is sent (140th to 160th line). Finally, an FF is sent (170th line) to produce a
print-out as shown in Figure 4-4 Example 2: Result of Print.
Figure 4-4 Example 2: Result of Print
Print area
Paper
Page Mode lesson
2 CAN command
ABCDEFGHIJKLMNOP
QRSTU1234567890
200(0,0)
400
Print
direction