Specifications

No
EPSON
TITLE
EPSON Advanced Printer Driver for TM series
StatusAPI
Reference Manual
Revision
L
NEXT
11
SHEET
10
3.2. Printer Statuses that Can Be Acquired
In Status API, using the Automatic Status Back command supported by TM printers, the following statuses are acquired and
offered to the application. The acquired status changes into the DWORD value and notifies the application. ON/OFF of each
bit with the value of DWORD corresponds to each printer status like the table below. However, depending on the model of
printer used, a status may not be necessary, so please use them after you have a good understanding of the Automatic Status
Back command specifications for the printer you are using.
Macro Definition Value OFF ON
ASB_NO_RESPONSE
0x00000001 Printer Responds Printer does not respond.
ASB_PRINT_SUCCESS
0x00000002 - Printing Finished
ASB_UNRECOVER_ERR
0x00002000 No non-recoverable error. A non-recoverable error has
occurred.
ASB_AUTORECOVER_ERR
0x00004000 No auto-recoverable error. An auto-recoverable error has
occurred.
ASB_OFF_LINE
0x00000008 On-line Off-line
ASB_PRINTER_FEED
0x00000040 Not feeding paper by the
paper feed switch.
Feeding paper by the paper feed
switch.
ASB_PANEL_SWITCH
0x00000200 Panel switch OFF Panel switch ON
ASB_MECHANICAL_ERR
0x00000400 No mechanical error A mechanical error has occurred.
ASB_AUTOCUTTER_ERR
0x00000800 No cutter error. A cutter error has occurred.
ASB_DRAWER_KICK
0x00000004 Drawer kick-out connector
pin 3 is LOW.
Drawer kick-out connector pin 3 is
HIGH.
ASB_RECEIPT_END
0x00080000 Paper at the receipt end
detector.
No paper at the receipt end
detector.
ASB_COVER_OPEN
0x00000020 Cover is closed. Cover is open.
ASB_RECEIPT_NEAR_END
0x00020000 Paper at the receipt near end
detector.
No paper at the receipt near end
detector.
ASB_SLIP_TOF
0x00200000 Paper at the Slip TOF
detector.
No Paper at the Slip TOF detector.
ASB_SLIP_BOF
0x00400000 Paper at the Slip BOF
detector.
No Paper at the Slip BOF detector.
ASB_SLIP_SELECTED
0x01000000 Slip is selected. Slip is not selected.
ASB_PRINT_SLIP
0x02000000 Can print on slip. Can not print on slip.
ASB_VALIDATION_
SELECTED
0x04000000 Validation is selected. Validation is not selected.
ASB_PRINT_VALIDATION
0x08000000 Can print on validation. Can not print on validation.
ASB_VALIDATION_TOF
0x20000000 Paper at the validation TOF
detector.
No Paper at the validation TOF
detector.
ASB_VALIDATION_BOF
0x40000000 Paper at the validation BOF
detector.
No Paper at the validation BOF
detector.
[Supplement]
It prepares a macro definition file of the above status. As for the location, refer to chapter Installation.
EpsStmApi.h - VC include file
Module1.bas - VB module file
Transition in the Close printing status (ASB_PRINT_SUCCESS) is as follows.
1. It goes Off when printing starts, and goes On when printing is finished.
2. According to BiGetStatus(), or BiSetStatusBackFunction() or BiSetStatusBackWnd(), after status back notifies of ON
once, it goes OFF.