EPSON
TITLE
SHEET
REVISION
NO.
SHEETNEXT
F
TM-U295/U295P
Specification
(STANDARD)
App.6App.7
APPENDIX E: EXAMPLE PRINTING IN PAGE MODE
Example use of page mode is described in this appendix.
A typical procedure for transmitting commands in page mode is as follows:
À
Transmit
ESC L
to enter page mode.
Á
Specify the printable area using
ESC W
.
Â
Specify the printing direction using
ESC T
.
Ã
Transmit the print data.
Ä
Collectively print the data by sending an
FF.
Å
After printing, the printer automatically returns to standard mode.
Example 1: Sample program in BASIC (assumes transmission to the printer is already possible with
file #1 open)
100 PRINT #1,CHR$(&H1B);"L";
110 PRINT #1,CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);CHR$(0);
120 PRINT #1,CHR$(100);CHR$(0);CHR$(100);CHR$(0);
130 PRINT #1,CHR$(&H1B);"T";CHR$(0);
140 PRINT #1,"Page mode lesson TEST 1"
150 PRINT #1,CHR$(&HC);
In the program for Example 1, a printable area of 100
´
100 dots starting at (0. 0) is set, and characters
are printed on the first line of the area as shown in Figure E.1.1 below.
Figure E.1.1 Page Mode Example 1