1-26 Command Descriptions Rev. A
ESC T n
[Name] Select print direction in page mode
[Format] ASCII ESC T n
Hex 1B 54 n
Decimal 27 84 n
[Range] 0 ≤ n ≤ 3
48 ≤ n ≤ 51
ESC T n sets the print direction and starting position in page mode specified by n as shown below.
The default setting is n=0. This command is enabled only in page mode. If this command is
processed in standard mode, an internal flag is activated and this command is enabled when the
printer returns to page mode. .
The parameters for the horizontal or vertical motion units (x or y) differ depending on the starting
position of the printing area as follows:
If the starting position is the upper left or lower right of the printing area (n = 0, 2, 48, or 50):
❏ These commands use horizontal motion units: ESC SP, ESC $, ESC \
❏ These commands use vertical motion units: ESC 3, ESC J, GS $, GS \
Program Example Print Sample
PRINT #1, CHR$(&H1B);"L";
←
Select page mode
PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);CHR$(0);CHR$(180);
CHR$(0);CHR$(132);CHR$(3);
PRINT #1, CHR$(&H1B);"T";CHR$(0);
←
Select print direction
PRINT #1, "AAAAA"; CHR$(&HA);
←
Store characters for printing
PRINT #1, "BBBBB"; CHR$(&HA);
←
Store characters for printing
PRINT #1, CHR$(&H1B);"T";CHR$(2);
←
Select print direction
PRINT #1, "CCCCC"; CHR$(&HA);
←
Store characters for printing
PRINT #1, "DDDDD"; CHR$(&HC);
←
Batch print and return to standard mode
n Print Direction Starting Position
0, 48 Left to right Upper left (A in the figure)
1, 49 Bottom to top Lower left (B in the figure)
2, 50 Right to left Lower right (C in the figure)
3, 51 Top to bottom Upper right (D in the figure)
AAAAA
BBBBB
CCCCC
DDDDD
Printing
by ESC W
area set
←
A
D
C
B
Printing area
Paper feed direction