Specifications

TH230/TH230+ Programmers Guide
79
ESC {
Function:
Turn upside-down printing mode on/off
Code ASCII: ESC { n
Code HEX: 0x1B 0x7B n
Range:
0 ≤ n ≤ 255
Default: n = 0
Description: In standard mode, turns upside-down printing mode on or off.
• When the LSB of n is 0, upside-down printing mode is turned off.
• When the LSB of n is 1, upside-down printing mode is turned on.
Notes:
When standard mode is selected, this command is enabled only when
processed at the beginning of the line.
The upside-down printing mode is effective for all data in standard
mode.
The upside-down printing mode has no effect in page mode. If this
command is processed in page mode, an internal flag is activated, and
this flag is enabled when the printer returns to standard mode.
The settings of this command are effective until ESC @ is executed, the
printer is reset, or the power is turned off.
When upside-down printing 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.
ESC w n _ g e t _ l a s t _ e r r o r
FUNCTION: Returns the last occurred error.
Code ASCII:
ESC w n _ g e t _ l a s t _ e r r o r NULL
Code HEXGS
(:
0x1B 0x77 0x6E 0x5F 0x67 0x65 0x74 0x5F 0x6C 0x61 0x73 0x74 0x5F 0x65
0x72 0x72 0x6F 0x72 0x00
Description:
This function returns the last occurred error.
Notes: The printer transmits the “Header to NUL” data shown below:
Transmit data Hex Decimal Description Data
quantity
Header 0x37 55 1 byte
Identifier 1
0x77
119
1 byte
Identifier 2
0x6E
110
1 byte
Last error
0x00
0
No error
1 byte
0x01 1 Byte allocation
failure
1 byte
0x02 2 QR Encoding failure 1 byte
0x03
3
Not at start of line
1 byte
0x04 4 No error 1 byte
NULL 0x00 0 1 byte