
In Figure
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";
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 lesson2CAN command";
150PRINT #1, CHR$(&HA);
160PRINT #1, "ABCDEFGHIJKLMNOPQRST1234567890";
170PRINT #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
(0,0) | 200 |
| |
Page Mode lesson | Paper | ||
2 CAN command | |||
| |||
ABCDEFGHIJKLMNOP |
| ||
400 |
|
| |
QRSTU1234567890 | Print area | ||
|
| ||
direction |
|
|
Figure 4-4 Example 2: Result of Print
— 145 —