Select your printer model
<response>
This is an XML document that is sent back from a printer to an application.
Attribute
Attribute |
Description |
---|---|
success |
Print result |
code |
Error code |
status |
Status |
battery |
Battery status |
success
Attribute value |
Description |
---|---|
"true" / "1" |
|
"false" / "0" |
|
code
Attribute value |
Description |
---|---|
"EPTR_AUTOMATICAL" |
Automatic recovery error occurred |
"EPTR_BATTERY_LOW" |
Battery has run out |
"EPTR_COVER_OPEN" |
Cover open error occurred |
"EPTR_CUTTER" |
Auto cutter error occurred |
"EPTR_MECHANICAL" |
Mechanical error occurred |
"EPTR_REC_EMPTY" |
No paper is left in the roll paper end detector |
"EPTR_UNRECOVERABLE" |
Unrecoverable error occurred |
"SchemaError" |
Error exists in the requested document syntax |
"DeviceNotFound" |
Printer specified by the device ID does not exist |
"PrintSystemError" |
Error occurred with the printing system |
"EX_BADPORT" |
An error occurred with the communication port |
"EX_TIMEOUT" |
Print timeout occurred |
"EX_SPOOLER" |
Print queue is full |
"EX_DEVICE_BUSY" |
The specified device is in process and the process cannot be executed. |
"EX_ENPC_TIMEOUT" |
Status check failed. |
"JobNotFound" |
Specified job ID does not exist |
"Printing" |
Printing in progress |
"TooManyRequests" |
The number of print jobs sent to the printer has exceeded the allowable limit. |
"RequestEntityTooLarge" |
The size of the print job data exceeds the capacity of the printer. |
"ERROR_WAIT_EJECT" |
Waiting for paper removal. |
status
One or more of the following values that represent the printer status are combined using bitwise OR operator, and expressed in decimal notation.
Attribute value |
Description |
---|---|
"0x00000001" |
No response from TM printer |
"0x00000002" |
Printing completed |
"0x00000004" |
|
"0x00000008" |
Offline status |
"0x00000020" |
Cover is open |
"0x00000040" |
Paper is being fed by the paper feed switch |
"0x00000200" |
Paper feed switch is held depressed |
"0x00000400" |
Mechanical error occurred |
"0x00000800" |
Auto cutter error occurred |
"0x00002000" |
Unrecoverable error occurred |
"0x00004000" |
Automatic recovery error occurred |
"0x00010000" |
Waiting for insertion of a slip sheet for slip printing |
"0x00020000" |
Roll paper has almost run out |
"0x00040000" |
Waiting for ejection of a slip sheet for slip printing |
"0x00080000" |
Roll paper has run out |
"0x01000000" |
Buzzer is sounding (supported model only) |
"0x01000000" |
|
"0x04000000" |
|
"0x80000000" |
Spooler stopped |
battery
One or more of the following values that represent the battery status are combined using bitwise OR operator, and expressed in decimal notation.
- AC adapter connection status
-
Attribute value
Description
"0x30XX"
AC adapter is connected
"0x31XX"
AC adapter is not connected
- Remaining battery capacity
-
Attribute value
Description
"0xXX36"
Remaining battery capacity 6
"0xXX35"
Remaining battery capacity 5
"0xXX34"
Remaining battery capacity 4
"0xXX33"
Remaining battery capacity 3
"0xXX32"
Remaining battery capacity 2
"0xXX31"
Remaining battery capacity 1 (almost run out)
"0xXX30"
Remaining battery capacity 0 (run out)
Sample program
- When the printer runs out of paper during printing and failed to print
-
<response xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print" success="false" code="EPTR_REC_EMPTY" status="252641308" battery="0" />
- When the printer runs out of battery during printing and failed to print
-
<response xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print" success="false" code="EPTR_BATTERY_LOW" status="251658268" battery="12592" />
Supplementary explanation
- Timing of the printer response differs by printer status.
-
Printer status
Description
The power is on
The timing set on the printer
The power is off
The timing when a client timeout occurs
Printing: an error occurs
Before printing
Printing: print succeeded
After printing completed
- For a model without battery, 0xXX30 is set to the battery constant.
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
- Introduction
- help
- XML for Controlling Printer
- XML for Controlling Customer Display
- Appendix
- XML Supported Printers
- Supported Elements List
- Printer-specific Support Information
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m30III
- TM-m30III-H
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60II (Receipt)
- TM-P60II (Peeler)
- TM-P80
- TM-P80II
- TM-T20III
- TM-T82III
- TM-T88VI
- TM-T88VII
- TM-L100
- TM-U220II
- TM-H6000V
- TM-H6000VI
- TM-L90
- TM-L90 4xx
- TM-T20
- TM-T20II
- TM-T70
- TM-T70II
- TM-T82II
- TM-T83II
- TM-T88IV
- TM-T88V
- TM-T90
- TM-U220
- TM-U330
- TM-H6000IV
- TM-L90-i
- TM-T20II-i
- TM-T70-i
- TM-T82II-i
- TM-T83II-i
- TM-T88V-i
- TM-T88VI-iHUB
- TM-U220-i
- TM-U220IIB-i
- TM-T70II-DT
- TM-T70II-DT2
- TM-T88V-DT
- TM-T88VI-DT2
- TM-H6000IV-DT
- Usage Restrictions by Firmware Version
- ePOS-Print Settings