1-20 Command Descriptions Rev. A
ESC { n
[Name] Turn upside-down printing mode on/off
[Format] ASCII ESC { n
Hex 1B 7B n
Decimal 27 123 n
[Range] 0 ≤ n ≤ 255 (Only the least significant bit of n is enabled.)
ESC { n turns upside-down printing mode on or off. When the LSB (least significant bit) of n is 1,
upside-down printing mode is turned on; when it is 0, upside-down printing mode is turned off. The
default setting is n=0. When upside-down mode is turned on, the printer prints 180°-rotated
characters from right to left. The line printing order is not reversed; therefore be careful of the order of
the data transmitted. In standard mode, this command is enabled only when input at the beginning of
a line. In page mode, an internal flag is activated and this command is enabled when the printer
returns to standard mode.
Program Example Print Sample
PRINT #1, CHR$(&H1B);"{";CHR$(0); ← Cancel
GOSUB printing
PRINT #1, CHR$(&H1B);"{";CHR$(1); ← Select
GOSUB printing
END
printing:
PRINT #1, "ABCDE"; CHR$(&HA);
PRINT #1, "BCDEF"; CHR$(&HA);
RETURN
Normal prin ting
ABCDE
BCDEF
BCDEF
ABCDE
Upside-down
printing
Comments to this Manuals