The text of a manual · part 6 of 12
TM-T88II/T88III Technical Reference Guide: Chapter 3, pages 37 to 44
Pages 37 to 44 of 88, from TM-T88II/T88III Technical Reference Guide
The original document is the PDF (1.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Epson TM-T88ii and Epson TM-T88iii
Page 37
TM-T88II/T88III Technical Reference Guide
Chapter 3
Application Development Information This chapter describes how to control the printer and gives information useful for printer application development.
3.1 Introducing the Control Methods The TM printer can be controlled and can print using any of the following 3 methods. 1. Windows printer driver (EPSON Advanced Printer Driver or APD) 2. EPSON OPOS ADK 3. ESC/POS commands Depending on the driver and interface used, the IP setup tool for the Ethernet model, USB device driver, logo printing registration utility (TMFlash logo utility), etc. are available. Get the latest information from one of the following URLs: For customers from North America, go to the following web site: http://pos.epson.com/ For customers from other countries, go to the following web site: http://www.epson-pos.com/ Select the product name from the “Select any product” pull-down menu.
3.1.1 Windows Driver (EPSON Advanced Printer Driver) The EPSON Advanced Printer Driver provides the TM printer with satisfactory control as a Windows driver.
3.1.1.1 EPSON Advanced Printer Driver overview EPSON Advanced Printer Driver has the following features: ❏ Supplies a Windows printer driver for the TM printer to enable printing from a general Windows application. ❏ Can execute POS printer-specific functions, such as cutting paper and opening a drawer. ❏ Can print printer-resident fonts by selecting the font type. ❏ Can get the printer status using programming languages, such as Visual Basic (VB), via status API. This uses the printer’s bidirectional communication capability in the Windows standard printer driver operating environment. Note: The status API is a printer control API originally supplied by EPSON. This can be used to get the printer status and send ESC/POS commands.
Rev. A
Application Development Information 3-1
Page 38
3.1.1.2 EPSON Advanced Printer Driver contents The installer automatically evaluates the target PC environment and automatically installs the DLL and software components necessary for operation. You can select the drivers, sample programs, and manuals to be installed. ❏ Drivers You can select the driver, based on its purpose (drivers also can be installed simultaneously), including two-color printing, smoothing, continuous printing, cutting method options, and other functions. •
Receipt: For receipt printing
•
Reduce 35: Reduces A4 vertical size 35% to enable printing on 80 mm {3.15"} -wide receipts
❏ Sample programs You can install sample programs in Visual Basic and Visual C++ to use status API. ❏ Manuals The following manuals can be installed: •
User's manual (for developers)
•
Engineering data for each status
•
Main function control methods (for WordPad and VB)
3.1.1.3 EPSON Advanced Printer Driver support environment ❏ Supported interfaces •
Serial, parallel, USB, Ethernet
❏ Supported operating systems (with confirmation of system operation) •
Windows 95 Standard, OSR 2.5
•
Windows 98 Second Edition
•
Windows NT Ver. 4.0 SP5, SP6
•
Windows 2000 Professional
•
Windows XP Professional
Refer to the release note for the driver for the latest information. ❏ Supported development languages •
Visual Basic
•
Visual C++
❏ Supported devices Refer to the release note for the driver for details on available equipment. •
EPSON receipt printer
3-2 Application Development Information
Rev. A
Page 39
TM-T88II/T88III Technical Reference Guide •
EPSON customer display
•
EPSON cash drawer
Note: A separate USB device driver is required for a USB model printer, and a separate IP setup utility is required for an Ethernet model printer. See the manual packed with the APD. When you use the APD for the TM-T88III serial model or the TM-T88II, using TrueType fonts may slow printing down, due to the speed of communication between the printer and host computer. If this happens, we recommend using printer-resident fonts. For details on how to use resident fonts, see the user's manual for the APD. Printing with TrueType fonts on other interfaces may have a slight influence on customer applications. In that case, use the printer-resident fonts. Because of the restrictions of some customer applications, when the APD is used with that application, resident fonts sometimes cannot be used, even if they are specified. When OPOS is used, this problem does not arise because only the printer-resident fonts are available.
3.1.1.4 Driver information and download destination Get the latest driver information from one of the following URLs: For customers from North America, go to the following web site: http://pos.epson.com/ For customers from other countries, go to the following web site: http://www.epson-pos.com/ Select the product name from the “Select any product” pull-down menu.
3.1.2 EPSON OPOS ADK The EPSON OPOS ADK supports the development environment required for OPOS application development using OPOS Control as described by the OLE for Retail POS (simply called “OPOS” from here on) Technology Association to supply the OPOS-compliant printer driver (OCX). Use this control method to develop OPOS-compliant applications. EPSON’s OPOS ADK has the following features: ❏ The EPSON OPOS ADK comprehensively supports the development environment required for OPOS application development at customer sites, including not only OPOS Control (CO + SO) proposed by the OPOS Association, but also the contents necessary for development, ranging from the installers and setup utilities to sample programs and manuals, and the function for getting logs for debugging, and silent installation that achieves ease of installation on a target PC. ❏ The EPSON OPOS ADK reduces the man-hours for application development, since it handles the following functions that application developers up till now have had to consider. The functions are supported by EPSON-original Direct IO with parameters, power-on notification, offline buffer clear processing, and so on. Note: For details on the API functions, refer to the “Application Programmers Guide Specification” provided by the OLE POS Technology Association.
Rev. A
Application Development Information 3-3
Page 40
3.1.2.1 EPSON OPOS ADK (OPOS Control) overview OPOS Control included with the EPSON OPOS ADK has the following features: ❏ Supplies the CO for each device class and SO for EPSON devices. ❏ Direct IO with parameters available: •
Gets the printer maintenance counter value
•
Prints NVRAM-stored bit images, etc.
❏ Power-on notification function (at power on, this function automatically restores the printer to the state that was active before power off). ❏ Offline buffer clear processing (clears the print buffer contents in offline mode). ❏ Debugging function (trace function): •
Obtains a log between the application and CO (target: used API and its return value)
•
Device status acquisition log (gets the offline and error causes that actually occurred in the devices)
3.1.2.2 EPSON OPOS ADK contents The installer of the EPSON OPOS ADK, Ver. 2.10 or later, has a silent installation function, which can install the OPOS environment without a user interface and facilitate installation. With the installer, the following OPOS-compliant OPOS Control for EPSON devices, manuals, various utilities, and sample programs can be installed. ❏ OPOS Control for EPSON devices Header files for CO, SO, C++, header files for VB, TLB file of CO, device information files, etc., can be installed. ❏ Manuals •
User's guide (environment construction manual: installation/uninstallation, usage methods for various utilities)
•
Application Development Guide (manual for OPOS-compliant application developer: common manual, manual for each device)
❏ Various utilities •
SetUpPOS utility Facilitates selection of equipment and connection ports and various settings (print wait time, etc.).
•
TM Flash logo utility Saves a bitmap file to the printer or customer display, for example.
•
USB device driver This driver is necessary to connect a USB model printer.
3-4 Application Development Information
Rev. A
Page 41
TM-T88II/T88III Technical Reference Guide •
Sample programs Sample programs for VB, VC++ can be installed.
3.1.2.3 EPSON OPOS ADK support environment ❏ Supported interfaces •
Serial, parallel, USB, Ethernet
❏ Supported OSes (with confirmation of system operation) •
Windows 95 Standard, OSR 2.5
•
Windows 98 Second Edition
•
Windows NT Ver. 4.0 SP5, SP6
•
Windows 2000 Professional
•
Windows XP Professional
Refer to the release note of the driver for the latest information. ❏ Supported development languages •
Visual Basic
•
Visual C++
3.1.2.4 Driver information and download destination Get the latest driver information from one of the following URLs: For customers from North America, go to the following web site: http://pos.epson.com/ For customers from other countries, go to the following web site: http://www.epson-pos.com/ Select the product name from the “Select any product” pull-down menu.
3.1.3 ESC/POS Commands To directly control the TM printer using ESC/POS commands, EPSON proposes printing/ control via ESC/POS commands. The printer can be controlled directly by sending ESC/POS commands from an application to the printer. For detailed information about ESC/POS commands, please contact EPSON or your dealer.
Rev. A
Application Development Information 3-5
Page 42
3.1.4 Various Utilities We provide the utilities described below for developers of TM printer applications. You can obtain the utilities from one of the following URLs: For customers from North America, go to the following web site: http://pos.epson.com/ For customers from other countries, go to the following web site: http://www.epson-pos.com/ Select the product name from the “Select any product” pull-down menu.
3.1.4.1 IP address setup utility for UB-E02 This utility and its detailed manual for developers allow you to set an IP address for a 10Base-T/ 100Base-TX Ethernet interface installed in the TM printer. Customers who have purchased the Ethernet model TM printer need this utility.
3.1.4.2 Electronic logo storage utility for NVRAM This utility is designed to save logos (bitmaps) to NVRAM (non-volatile RAM). By storing shop logos to NVRAM, the print speed can be increased.
3.1.4.3 USB interface ID code rewrite utility This utility is designed to edit the identification code (ID) of a USB interface. Note: Each USB model TM printer has its own ID. So, two TM-88IIIs can be controlled independently from a host computer. Therefore, when replacing a TM printer that has been connected to a host computer with another printer (including same model), you must change the USB port in the printer driver on the host computer. Use of this utility, for example, frees you from changing the USB port in the printer driver.
3.2 Switches and Buttons On this printer, you can disable or enable the paper FEED button. For details on how to switch between disabled or enabled, refer to the documentation for OPOS Advanced Printer Driver and ESC/POS commands, respectively.
3.2.1 Paper FEED Button The printer feeds paper based on the line spacing set by the control method (OPOS, Advanced Printer Driver, ESC/POS commands). However, you cannot feed paper using the paper FEED button under the following conditions: •
When the roll paper cover is open.
•
When performing a self-test (Press the FEED button to stop the self-test and press it again to resume it).
•
When the paper FEED button has a function defined in a macro definition command (when ESC/POS commands are used).
3-6 Application Development Information
Rev. A
Page 43
TM-T88II/T88III Technical Reference Guide
3.3 Panel LEDs and Error Status 3.3.1 Power LED Table 3-1 Power LED Item
Specifications
LED color
Green
LED states
Off
Power is not supplied.
On
Power is supplied.
3.3.2 No Roll Paper (PAPER OUT) LED Table 3-2 No roll paper (PAPER OUT) LED Item
Specifications
LED color
Red
LED states
Off
Roll paper is loaded.
On
A roll paper near end or paper end is detected.
Flashing
Self-test standby state or standby state when a macro execution command is used.
Note: The macro function is available only when ESC/POS commands are used.
3.3.3 Error LED Table 3-3 Error LED Item
Specifications
LED color
Red
On states
Rev. A
Off
Printer is performing regular operations or is online.
On
Offline (excluding self-test with the paper FEED button).
Flashing
Error state.
Application Development Information 3-7
Page 44
3.3.3.1 Error Codes There are three possible error types: automatically recoverable errors, recoverable errors, and unrecoverable errors. ❏ For automatically recoverable errors, the user does not have to take any action. The error recovers automatically when the head temperature returns to normal or the cover is correctly closed. ❏ A recoverable error recovers by resetting the printer or sending a command from the driver after the cause of the error is eliminated. ❏ For unrecoverable errors, the printer or the power supply may be malfunctioning and must be repaired. Automatically recoverable errors Although normal printer operation is no longer possible when automatically recoverable errors occur, they do not represent printer failure. They can be recovered easily, as described below. Table 3-4 Automatically recoverable errors Error
Error description
Error LED flash code
Recovery measure
Approx. 160 ms Roll paper cover open error
The roll paper cover was opened during printing.
Recovers automatically when the roll paper cover is closed.
Print head temperature error
A high temperature outside the head drive operating range was detected.
Recovers automatically when the print head cools.
Note: If the temperature cannot be detected correctly, a drive circuit error occurs. Recoverable errors Although normal printer operation is not possible after a recoverable error occurs, this is not a printer malfunction. These errors can be recovered easily by turning the power on again or sending an error recovery command from the driver after eliminating the cause of the error. Table 3-5 Recoverable errors Error
Error description
Error LED flash code
Recovery measure
Approx. 160 ms Autocutter error
Autocutter does not work correctly.
3-8 Application Development Information
Remove the jammed paper or foreign matter in the printer, close the roll paper cover, send the error recover command, or turn the power on to recover.
Rev. A