Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1
Epson TM-T70-i Manual
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Epson TM-T70-i manual content summary:
- Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 1
ePOS-Print API User's Manual Overview Describes the features and development environment. Sample Program Describes how to use the sample program and how to build a system. Programming Guide Describes how to write programs in Web application development. ePOS-Print API Describes the ePOS-Print API. - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 2
with Seiko Epson Corporation's operating and maintenance instructions. • Seiko Epson Corporation shall not be liable against any damages or problems arising systems. The system is compatible with all types of EPSON POS printers (excluding the TM-C100) and displays. Moreover, its flexibility makes - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 3
For Safety Key to Symbols The symbols in this manual are identified by their level of importance, as defined below. Read the following carefully before handling the product. Provides information that must be observed to - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 4
that support the ePOS-Print API. The TM-i series in this manual is a generic term for the following printers. TM-T88V-i TM-T70-i TM-L90-i Manual Content The manual is made up of the following sections: Chapter 1 Overview Chapter 2 Sample Program Chapter 3 Programming Guide Chapter - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 5
About this Manual ...4 Aim of the Manual ...4 Manual Content ...4 ■ Contents...5 Overview 11 ■ Overview of ePOS-Print ...11 Features...12 Print Example...13 Print Flow ...15 Features...16 ■ Operating Environment ...17 Applications environment...17 Terminal ...17 ePOS-Print Supported TM printer...17 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 6
Programming Guide 41 ■ ePOS-Print API...41 Print Mode ...41 Programming Flow...41 Embedding Function 57 ePOS-Print API 61 ■ List of API functions...61 window.epson.ePOSBuilder Components 61 window.epson.ePOSPrint Components 65 ■ ePOS-Print Builder Object 66 Constructor ...66 addTextAlign method - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 7
138 open method ...139 close method ...140 address property...141 enabled property ...142 interval property...142 status property ...143 battery property ...143 timeout property ...144 onreceive event...145 onerror event ...148 onstatuschange event ...149 onbatterystatuschange event ...149 ononline - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 8
ePOS-Print Canvas API functions 157 window.epson.CanvasPrint Components 157 ■ ePOS-Print Canvas interval property ...168 status property ...169 battery property ...170 timeout property ...171 halftone color property ...177 feed property...178 paper property ...179 layout property ...180 onreceive - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 9
TM-L90-i/ TM-L90 ...203 TM-T70-i/ TM-T70...205 TM-T70-i (Multi-language model) ...206 TM-T88V-i/ TM-T88V...207 TM-P60II...209 TM-P60II with Peeler ...211 TM-P80 ...213 TM-T20...215 TM-T70 (Multi-language model) ...217 TM-T88IV ...218 TM-T90...220 TM 232 Rendering Label (canvas-print-label.html 234 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 10
10 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 11
API provides the API for print commands. When a print document (Request) is sent via HTTP from the host to the ePOS-Print Service of a ePOS-Print supported TM printer, ePOS-Print processes the printing of that document and returns a response document (Response). Web Server Internet Intranet - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 12
printer sends an error response (PAPER END, COVER OPEN, etc.) utility programs dedicated to each printer or other utility programs should be used. ❏ In case of TM-i series, it can print to other TM printer via TM Service Ver.4.1 or later versions supported. *2 TM-i firmware Ver.4.1 or later versions - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 13
Print Example ePOS-Print API Chapter 1 Overview Printing a Logo Alignment: Center Paper Feed 1 Paper Feed and Paper Cut Your Number: Printing a raster image Printing text in the double-sized width style Scale: x 6 (horizontal) and x 4 (vertical) Alignment: Center Printing a Barcode 13 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 14
ePOS-Print Canvas API Monochrome or Grayscale Monochrome 14 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 15
1 Overview Application Wireless LAN / 1 Router Wireless " Device Control Network 1 A Web application is placed. 2 A Web browser displays the Web application. 3 The Web browser sends print data. For an - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 16
the device font mounted on the TM printer. Barcodes can also be printed upon developing them as images on the TM printer side. Highly expressive printing is " on page 203.) ❏ Ruled line setting ❏ Control of label paper/black mark paper ❏ Drawer kick function ❏ Buzzer function ❏ ESC/POS command - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 17
an HTML5-supported Web browser ePOS-Print Supported TM printer TM-i Series ❏ TM-T88V-i ❏ TM-T70-i ❏ TM-L90-i TM-L90-i does not support TM-i Firmware Ver.4.0 or later. TM Printer When using the following printers, use ePOS-Print SDK for JavaScript: ❏ TM-P60II ❏ TM-P60II with Peeler ❏ TM-P80 Unable - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 18
the ePOS-Print Service version and TM-i Firmware version of the TM-i series. ePOS-Print Service 1.2 2.0 2.1 2.2 3.0 3.2 4.1 TM-i Firmware 1.2x 2.0x Be Controlled TM printers that can be controlled via the TM-i series. Available TM printers are different depending on the TM-i Firmware version - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 19
Wireless Device Control Network ❏ Web Server A Web application is placed. ❏ Terminal Executes the Web application using a browser (HTML5-supported Web browser). ❏ TM-i Receives/prints print data sent from the Web browser or controls other devices. ❏ Printers That Can Be Controlled Print the - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 20
Registering a Web Application Into a TM-i Wireless LAN / Router Web Browser Web Application Wireless Device Control Network ❏ Terminal Executes the Web application using a browser. ❏ TM-i Mounts the Web application. Creates and prints the print data using transmission with - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 21
to a cloud Chapter 1 Overview 1 Web Application Wireless LAN / Router Web Browser Wireless Device Control Network ❏ Terminal Executes the Web application using a browser. ❏ TM Printer (Wireless LAN Model) (Wireless LAN Model) 21 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 22
Specifying the Print Job ID from the Application A response containing the specified print job ID will be returned when sending a request from the application by specifying the print job ID. (ePOS-Print Service Ver.4.1 or later versions) Job ID : ABC123 Print data Job ID : ABC123 Response data 22 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 23
the application in the TM-i to carry out background printings sequentially. (TM-i firmware Ver.4.1 or later versions) TM-i return response data EPSON TMNet WebConfig is used to configure the spooler. Perform the following settings. For details, refer to the Technical Reference Guide for each TM - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 24
retrieve the print data B and issue a print command to printer A. 7 Print data A is complete. 8 A query on print data A results will be sent to the TM-i from the input terminal. 9 The TM-i will return response data back to the input terminal signifying that print data A completed without error. 24 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 25
Overview Forwarding EPSON TMNet WebConfig is used to configure forwarding settings. For details, refer to the Technical Reference Guide for each TM-i. 1 1 Send print data to ePOS-Print Service I/F from the input terminal. 2 The TM-i issues a print - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 26
ePOS-Print API User's Manual (This Document) ❏ ePOS-Print XML User's Manual ❏ TM-T88V-i Technical Reference Guide ❏ TM-T70-i Technical Reference Guide ❏ TM-L90-i Technical Reference Guide ❏ TM-P60II Technical Reference Guide ❏ TM-P80 Technical Reference Guide Sample Program ePOS-Print_Sample_API_V4 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 27
Download For customers in North America, go to the following web site: http://www.epsonexpert.com/ and follow the on-screen instructions. For customers in other countries, go to the following web site: https://download.epson-biz.com/?service=pos Chapter 1 Overview 1 27 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 28
in the printer. In the printer DIP switches (memory switches), configure the Busy condition only for the receive buffer full. Disable the command execution (offline). (TM-P60II, TM-P80) 28 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 29
is a Web server configured by using IIS (Microsoft Internet Information Services). If your Web server is used in a different environment, as follows: 2 1 2 3 4 1 Queue Ticket Item 2 Coupon 3 Label Description Prints queue ticket numbers. This is a sample program using the ePOS-Print - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 30
screen. The screen is used to set the following: IP address of the ePOS-Print supported TM printer (Default : TM-i: DHCP (If an address fails to be assigned via DHCP, the value becomes "192.168.192.168".) TM Printer: 192.168.192.168 ) Device ID of the target printer (Default - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 31
program prints the following: Your Number (ePOS-Print API) Your Number: Chapter 2 Sample Program Coupon (ePOS-Print Canvas API) 2 Label * (ePOS-Print API) Name Item A Color R e d Code *2012001* *: Die cut label: mount width 58 mm or above Label size: width 54 mm x height 25.4 mm or above 31 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 32
below. Queue ticket number issuance (ePOS-Print API) 1. Open the sample program Web page 2. Settings ❏ Settings of IP address of ePOS-Print supported TM printer ❏ Device ID of the printer to be controlled ❏ Print timeout time 3. Click "Queue Ticket" 4. Creates print data (ePOS-Print Builder Object - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 33
2 Sample Program Coupon issuance (ePOS-Print Canvas API) 1. Open the sample program Web page 2. Settings ❏ Settings of IP address of ePOS-Print supported TM printer ❏ Device ID of the printer to be used for printing ❏ Print timeout time 3. Click "Coupon" 2 4. Render in HTML5 Canvas 5. Prints (ePOS - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 34
page 2. Settings ❏ Settings of IP address of ePOS-Print supported TM printer ❏ Device ID of the printer to be controlled ❏ Print timeout time ❏ Settings of with or without layout specification in label printing of TM-P60II 3. Click "Label" 4. Creates print data (ePOS-Print Builder Object) 5. Prints - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 35
Chapter 2 Sample Program Operating Environment TM-i The system configuration diagram for the sample 192.168.192.21] Wireless LAN Router [192.168.192.1] *: When DHCP is used for the terminal TM-i [192.168.192.20] ❏ Web server/computer to configure the settings (Descriptions here are made assuming - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 36
. For the configuration procedure, refer to Technical Reference Guide for each TM printer. 6. Network settings for the printer to be controlled Configure these settings by using the network setting utility. For details, refer to the detailed instruction manual for the printer (these settings are not - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 37
2 Sample Program 7. Device ID Settings Configure the settings for the computer by using EPSON TMNet WebConfig from a Web browser. For the configuration procedure, refer to Technical Reference Guide for each TM-i. (these settings are not required in this sample program) 8. Print Forwarding Settings - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 38
Registration of Sample Program Register the sample program into the Web server. Download ePOS-Print_Sample_API_V4.x.xE.zip. For details, refer to Contents in the package (p. 26). Register the program according to the following procedure: 1 Start the Web server. 2 Explode the sample program (ePOS- - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 39
Chapter 2 Sample Program Sample Program Settings Configure the settings for the sample program according to the procedure below. In the sample program, "Device ID Settings" are not required. Refer to it if necessary. 1 Start the Web server. 2 Connect all the printers to the network and turn their - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 40
Print timeout (millisecond) Print in grayscale (Coupon) (Only for supported models) Set the paper layout (Label) (Only for TM-P60II) Description Specifies the IP address of the ePOS-Print supported TM printer. (Default value: TM-i: DHCP (If an address fails to be assigned via DHCP - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 41
Guide Programming Guide for the type of printing such as printing receipts that requires the paper length to change according to the print space. Page mode In page of Print Result (p.47) • ePOS-Print supported TM printer checks the status of the TM printer to be used for printing and then starts - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 42
> Embed TITLE function buildMessage() { var builder = new epson.ePOSBuilder(); . . } . . 42 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 43
Chapter 3 Programming Guide Print Document Creation A print document is created using an ePOS-Print Builder buildMessage() { //Create an ePOS-Print Builder object var builder = new epson.ePOSBuilder(); //Create a print document builder.addTextLang('en') builder.addTextSmooth(true); builder - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 44
-print-4.x.x.js"> function buildMessage() { //Create an ePOS-Print Builder object var builder = new epson.ePOSBuilder(); //Render an image in HTML5 Canvas var canvas = document.getElementById('canvas'); var context = canvas.getContext('2d'); context.drawImage - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 45
Chapter 3 Programming Guide To create a page mode print document When the addPageBegin method is stored function buildMessage() { //Create an ePOS-Print Builder object var builder = new epson.ePOSBuilder(); //Create a print document // builder.addPageBegin(); // - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 46
.168/cgi-bin/epos/ service.cgi?devid=local_printer&timeout=10000'; //Create an ePOS-Print object var epos = new epson.ePOSPrint(address); //Send the supported TM printer. Specifies the printer to be used for printing. Specify device ID registered with EPSON TMNet WebConfig of ePOS-Print supported TM - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 47
Chapter 3 Programming Guide Reception of Print Result The print result can be received by 'http://192.168.192.168/cgi-bin/epos/ service.cgi?devid=local_printer&timeout=10000'; //Create an ePOS-Print object var epos = new epson.ePOSPrint(address); //Set a response receipt callback function - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 48
callback function. //Create an ePOS-Print object var epos = new epson.ePOSPrint(address); // Set a response receipt callback function epos.onreceive is open\n'; } if (asb & epos.ASB_PAPER_FEED) { msg += ' Paper feed switch is feeding paper\n'; } if (asb & epos.ASB_WAIT_ON_LINE) { msg += ' Waiting for - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 49
/epos/service.cgi?devid=local_printer &timeout=10000'; //Create an ePOS-Print Builder object var builder = new epson.ePOSBuilder( address); //Set an event callback function (cover open) epos.oncoveropen = function () { alert('coveropen'); }; //Set an event callback function (paper - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 50
52) 3. Prints an Canvas image (p.53) 4. Reception of Print Result (p.54) • ePOS-Print supported TM printer starts printing after checking the status of TM printer. • A status event helps check the status of the TM printer. For details on the procedure, refer to Reception of Status Event (p. 49). 50 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 51
Chapter 3 Programming Guide Embedding of ePOS-Print Canvas API The ePOS-Print Canvas API is provided as JavaScript. And its file name is "epos-print-4.x.x.js". It is - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 52
Rendering in HTML5 Canvas Render an image in HTML5 Canvas. Rendering in HTML5 Canvas TITLE function drawCanvas() { // - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 53
Guide for printing as well as the canvas content and whether to select paper cut; and then print a document. For the details about the cgi-bin/epos/ 3 service.cgi?devid=local_printer&timeout=10000'; //Create an ePOS-Print Canvas API object var epos = new epson.CanvasPrint(address); //Print - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 54
the end point address var address = 'http://192.168.192.168/cgi-bin/epos/ service.cgi?devid=local_printer&timeout=10000'; //Create an ePOS-Print Canvas API object var epos = new epson.CanvasPrint(address); //Set a response receipt callback function epos.onreceive = function (res) { //When the - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 55
Guide Error handling Refer to the following program for the error handling method by a callback function. var epos = new epson. Cover is open\n'; } if (asb & epos.ASB_PAPER_FEED) { msg += ' Paper feed switch is feeding paper\n'; } if (asb & epos.ASB_WAIT_ON_LINE) { 3 msg += ' Waiting - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 56
/epos/service.cgi?devid=local_printer &timeout=10000'; //Create an ePOS-Print Canvas API object var epos = new epson.CanvasPrint( address); //Set an event callback function (cover open) epos.oncoveropen = function () { alert('coveropen'); }; //Set an event callback function (paper - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 57
Chapter 3 Programming Guide Using the Spooler Function A printing job will be executed immediately and a response will be returned to the application after printing is complete when sending a printing request to ePOS-Print Service I/F from the application when the spooler function is disabled. - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 58
Even if the output printer cannot complete the printing task, ePOS-Print Service I/F does not return an error to the application. Enabling forward printing will allow for the printing task to be completed on a substitute printer, with the - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 59
Guide Programming Example A response containing the specified print job ID will be returned when the spooler function is enabled. ePOS-Print Service address = 'http://192.168.192.168/cgi-bin/epos/service.cgi'; 3 var epos = new epson.ePOSPrint(address); epos.onreceive = function (res) { alert(res - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 60
60 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 61
of API functions ePOS-Print provides the following objects: ❏ ePOS-Print Builder (window.epson.ePOSBuilder) Object (p. 61) ❏ ePOS-Print (window.epson.ePOSPrint) Object (p. 65) window.epson.ePOSBuilder Components Element API Description Standard mode page mode Page Constructor ePOS Builder - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 62
paper feeding (in dots). ● ● 83 Adds a tag for paper feeding (in addFeedLine Paper lines). ● Feed addFeedPosition Adds control of label paper/black ● *1 mark paper on the buzzer. ● - 121 Layout addLayout *2 Adds the paper layout setup to command buffer ● - 123 Recov- Adds a - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 63
-out connector drawer kick-out pulse length buzzer sound pattern Paper feed position of label paper/black mark paper Type of papers *1 ePOS-Print Service Ver.2.1 or later versions supported *2 ePOS-Print Service Ver.2.2 or later versions supported *3 ePOS-Print Service Ver.3.0 or later versions - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 64
to some parameters. Set values with the following in mind: ❏ Unit Specify numbers in dots for units that represent length. (Print position, paper feed space, width and height of images and barcodes, etc.) ❏ Range Depending on the printer specifications, a specifiable range is predetermined. For - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 65
event Non-response event Cover close event Cover open event Paper remaining event Paper near end event Paper end event Drawer close event Drawer open event Battery OK event Battery low event Status *1 ePOS-Print Service Ver.4.1 or later versions supported Page 135 136 138 139 140 141 142 142 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 66
print document for printer control commands that specify strings or graphics to be printed, paper cut, etc. Constructor Constructor for an ePOS-Print Builder object. Creates a new script> epson.ePOSBuilder script> 66 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 67
Example To set alignment to the center: epson.ePOSBuilder(); builder.addTextAlign(builder.ALIGN_CENTER script> 67 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 68
the line feed space to 30 dots: epson.ePOSBuilder(); builder.addTextLineSpace(30 script> 68 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 69
type Error Example To set text rotation: epson.ePOSBuilder(); builder.addTextRotate(true script> 69 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 70
• After printing text, to print content other than text, execute line feed or paper feed. • In page mode, characters are laid out in the current print position /javascript"> epson.ePOSBuilder(); builder.addText('Hello,\t').addText('World\n script> 70 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 71
changes to China.) zh-hant * Traditional Chinese zh-tw Traditional Chinese Language code besides above English(ANK) * ePOS-Print Service Ver.2.2 or later versions supported Characters not installed in a printer cannot be printed. For printable character code, refer to the Technical Reference - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 72
as English: epson.ePOSBuilder(); builder.addTextLang('en script> To set the language as Korean: - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 73
Chinese: epson.ePOSBuilder(); builder.addTextLang('zh-hans script> To set the language as Traditional Chinese: - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 74
C Font D Font E Language Return value * ePOS-Print Service Ver.3.2 or later versions supported Return value ePOS-Print Builder Object Object type ePOS Builder Exception "> epson.ePOSBuilder(); builder.addTextFont(builder.FONT_B script> 74 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 75
Object type Error Example 4 To enable smoothing: epson.ePOSBuilder(); builder.addTextSmooth(true script> 75 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 76
addTextDouble method Adds the double-sized text setting to the command buffer. Syntax addTextDouble(dw, dh); Parameter dw : ( Optional parameter, Object type : Boolean) Specifies the double-sized width. Setting true or 1 false or 0 (default) undefined (When not specified) Description - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 77
Chapter 4 ePOS-Print API Example To set the size as double width and height: epson.ePOSBuilder(); builder.addTextDouble(true, true script> 4 77 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 78
a horizontal scale of x 4 and a vertical scale of x 4: epson.ePOSBuilder(); builder.addTextSize(4, 4 script> 78 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 79
Chapter 4 ePOS-Print API addTextStyle method Adds the text style setting to the command buffer. Syntax addTextStyle(reverse, ul, em, color); Parameter reverse : ( Optional parameter, Object type : Boolean) Specifies inversion of black and white for text. true or 1 Setting false or 0 ( - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 80
Error Example To set the underline style: epson.ePOSBuilder(); builder.addTextStyle(undefined, true script> 80 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 81
at 120 dots from the left end: 4 81 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 82
start position of text to the command buffer. (in ePOS-Print Service Ver.3.0 and later) Use this API function by inserting it between /javascript"> epson.ePOSBuilder(); builder.addPageBegin(); builder.addTextVPosition(120); builder.addPageEnd script> - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 83
unit : ( Required parameter, Object type : Number) Specifies the paper feed space (in dots). Specifies an integer from 0 to 255. Return Parameter " ... " is invalid Exception Object type Error Example To feed paper by 30 dots: - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 84
line : Return value ( Required parameter, Object type : Number) Specifies the paper feed space (in lines). Specifies an integer from 0 to 255. Return value " ... " is invalid Exception Object type Error Example To feed paper by 3 lines: - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 85
Chapter 4 ePOS-Print API addFeedPosition method Adds label/black mark paper feeding to the command buffer. • Control of label paper/black mark paper must be done in the standard mode. • In the page mode, addFeedPosition method specification cannot be used. Syntax addFeedPosition(pos); Parameter - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 86
label one by one epson ); } //--> To print tickets with black mark paper - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 87
after printing a character string: epson.ePOSBuilder(); builder.addText("Hello").addFeed(); builder.addText("World").addFeed(); } //--> 4 87 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 88
method (p. 67), and specify a multiple of 8 not exceeding the printer's paper width for the width parameter of this API. • In page mode, a not move. • Multiple tone printing is not supported in Page Mode. Multiple tone graphic printing is supported in Standard Mode only. Syntax addImage(context, - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 89
type="text/javascript" src="epos-print-4.x.x.js"> - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 90
logo registration utility (TMFLogo), register a logo in the printer in advance. • In page mode, a logo is laid out in the current print position with the reference point being its bottom left dot. • Multiple tone printing is not supported in Page Mode. Multiple tone graphic printing is supported in - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 91
Chapter 4 ePOS-Print API addBarcode method Adds barcode printing to the command buffer. In page mode, a barcode is laid out in the current print position with the reference point being its bottom left dot (except for HRI). Syntax addBarcode(data, type, hri, font, width, height); Parameter data - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 92
Barcode type CODE93 CODE128 GS1-128 GS1 DataBar Omnidirectional GS1 DataBar Truncated GS1 DataBar Limited GS1 Databar Expanded Description Start and stop characters are automatically added. A check digit is automatically calculated and added. Specify a start character (CODE A, CODE B, CODE C). A - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 93
Chapter 4 ePOS-Print API *2: How to specify Code128 CODE C and GS1-128 CODE C. Data 00 01 ... 09 10 ... 98 99 \x00 \x01 Specified character string \x09 \x0a \x62 or b \x63 or c *3: How to specify GS1-128 special characters FNC1 FNC3 ( ) * { Data Specified character string {1 {3 {( {) {* {{ - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 94
HRI font. Constant (font) FONT_A(default) FONT_B FONT_C FONT_D * FONT_E * Font A Font B Font C Font D Font E Language * ePOS-Print Service Ver.4.1 or later versions supported ( Optional parameter, Object type : Number) Specifies the width of each module in dots. Specifies an integer from 2 to - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 95
" src="epos-print-4.x.x.js"> - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 96
addSymbol method Adds two-dimensional symbol printing to the command buffer. In page mode, a two-dimensional symbol is laid out in the current print position with the reference point being its bottom left dot. Syntax addSymbol(data, type, level, width, height, size); Parameter data : ( - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 97
9-digit number) GS:(\x1d) ISO country code (1- to 3-digit number) GS:(\x1d) Service class code (1- to 3-digit number) In Mode 3, specify the primary message in the sequence and encode. *1 ePOS-Print Service Ver.2.2 or later versions supported *2 ePOS-Print Service Ver.4.1 or later versions - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 98
-Range mode Aztec Code Compact mode DataMatrix ECC200 square DataMatrix ECC200 rectangle, 8 lines DataMatrix ECC200 rectangle, 12 lines DataMatrix ECC200 rectangle, 16 lines *1 ePOS-Print Service Ver.2.2 or later versions supported *2 ePOS-Print Service Ver.4.1 or later versions - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 99
error correction level Q QR Code error correction level H Default level Aztec Code error correction level (Default: 23) * ePOS-Print Service Ver.2.2 or later versions supported • Select the level according to the two-dimensional symbol type. • For MaxiCode and two-dimensional GS1 DataBar, select - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 100
the number of code words for each row Specifies the maximum width for the barcode (106 or above) * ePOS-Print Service Ver.2.2 or later versions supported Return value ePOS-Print Builder Object Object type ePOS Builder Exception Parameter " ... " is invalid Exception Object type Error 100 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 101
" src="epos-print-4.x.x.js"> epson.ePOSBuilder(); builder.addSymbol('ABCDE', builder.SYMBOL_PDF417_STANDARD); builder.addSymbol('ABCDE', builder.SYMBOL_QRCODE_MODEL_2, builder.LEVEL_Q); builder.addSymbol - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 102
addHLine method Adds horizontal line printing to the command buffer. Draws horizontal lines. Not available in page mode. Syntax addHLine(x1, x2, style); Parameter x 1: x2 : style : ( Required parameter, Object type : Number) Specifies the start position of the horizontal line (in dots). - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 103
the left end epson.ePOSBuilder(); builder.addHLine(100, 200, builder.LINE_THIN_DOUBLE); builder.addHLine(400, 500, builder.LINE_THIN_DOUBLE script> 4 103 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 104
end: epson.ePOSBuilder(); builder.addVLineBegin(100).addVLineBegin(200); builder.addFeedUnit(100); builder.addVLineEnd(100).addVLineEnd(200 script> 104 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 105
end: epson.ePOSBuilder(); builder.addVLineBegin(100).addVLineBegin(200); builder.addFeedUnit(100); builder.addVLineEnd(100).addVLineEnd(200 script> 105 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 106
print the characters "ABCDE" in page mode: epson.ePOSBuilder(); builder.addPageBegin(); builder.addText('ABCDE'); builder.addPageEnd script> 106 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 107
"ABCDE" in page mode: 4 107 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 108
Object type : Number) Specifies the origin of the vertical axis (in dots). Specifies an integer from 0 to 65535. 0 is the position in which no paper feed has been performed. ( Required parameter, Object type : Number) Specifies the width of the print area (in dots). Specifies an integer from 0 to - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 109
"ABCDE": epson.ePOSBuilder(); builder.addPageBegin(); builder.addPageArea(100, 50, 200, 30); builder.addText('ABCDE'); builder.addPageEnd script> 4 109 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 110
addPageDirection method Adds the page mode print direction setting to the command buffer. Specifies the print direction in page mode. This function can be omitted if rotation is not required. Use this API function by inserting it between addPageBegin (p. 106) and addPageEnd (p. 107). Syntax - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 111
="text/javascript" src="epos-print-4.x.x.js"> epson.ePOSBuilder(); builder.addPageBegin(); builder.addPageArea(100, 50, 30, 200); builder.addPageDirection(builder.DIRECTION_TOP_TO_BOTTOM); builder.addText('ABCDE - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 112
addPagePosition method Adds the page mode print-position-set area to the command buffer. Specifies the print start position (coordinates) in the area specified by the addPageArea method. Use this API function by inserting it between addPageBegin (p. 106) and addPageEnd (p. 107). Syntax - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 113
type="text/javascript" src="epos-print-4.x.x.js"> epson.ePOSBuilder(); builder.addPageBegin(); builder.addPageArea(100, 50, 200, 100); builder.addPagePosition(50, 30); builder.addText('ABCDE'); builder.addPageEnd - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 114
addPageLine method Adds line drawing in page mode to the command buffer. Draws a line in page mode. • Diagonal lines cannot be drawn. • Use this API function by inserting it between addPageBegin (p. 106) and addPageEnd (p. 107). Syntax addPageLine(x1, y1, x2, y2, style); Parameter x 1: y 1: - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 115
position (500, 0): epson.ePOSBuilder(); builder.addPageBegin(); builder.addPageLine(100, 0, 500, 0, builder.LINE_THIN); builder.addPageEnd script> 4 115 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 116
addPageRectangle method Adds rectangle drawing in page mode to the command buffer. Draws a rectangle in page mode. Use this API function by inserting it between addPageBegin (p. 106) and addPageEnd (p. 107). Syntax addPageRectangle(x1, y1, x2, y2, style); Parameter x 1: y 1: x2 : y2 : - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 117
vertexes: epson.ePOSBuilder(); builder.addPageBegin(); builder.addPageLine(100, 0, 500, 200, builder.LINE_THIN_DOUBLE); builder.addPageEnd script> 4 117 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 118
reservation (Printing continues until the cut position is reached, at which the paper is cut.) Feed cut (The paper is fed to the cut position and then is cut.) Return value javascript"> epson.ePOSBuilder(); builder.addCut(builder.CUT_FEED script> 118 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 119
Chapter 4 ePOS-Print API addPulse method Adds the drawer kick to the command buffer. Sets the drawer kick. • Not available in page mode. • The drawer and the buzzer cannot be used together. Syntax addPulse(drawer, time); Parameter drawer : ( Optional parameter, Object type : String) - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 120
the pin 2 of the drawer kick connector: epson.ePOSBuilder(); builder.addPulse(builder.DRAWER_1, builder.PULSE_100 script> 120 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 121
PATTERN_ERROR Error sound pattern PATTERN_PAPER_END Pattern when there is no paper PATERN_1 * PATERN_2 * Pattern 1 Pattern 2 4 PATERN_3 8 PATERN_9 * Pattern 9 PATERN_10 * Pattern 10 undefined (When not specified) Pattern A * ePOS-Print Service Ver.2.2 or later versions supported 121 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 122
Object type : String, When not specified : 1000) (in ePOS-Print Service Ver.2.2 and later) Specifies the buzzer sounding cycle (in units of milliseconds) type="text/javascript"> epson.ePOSBuilder(); builder.addSound(builder.PATTERN_A, 3 script> 122 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 123
to 1550 (Manual) * label to the top of next label Die-cut label (with black mark) Distance from the bottom of black mark to the bottom of next black mark. margin_top : ( Optional parameter, Object type : Number, When not specified : 0) Specifies top margin (in units of 0.1 mm). Paper Type - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 124
not specified : 0) Specifies cut position (in units of 0.1 mm). In case of die cut label paper, it is a distance from the bottom of label. When a paper has black mark, it is a distance from the beginning of black mark. Paper Type Receipt (without black mark) Receipt (with black mark) Die-cut - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 125
See below for the parameters that can be specified for each type of paper, and the positions for those parameters. Mark sf sa sb se sc sd sf Receipt sf sb Top position sc 4 Cut sa Top position Label Cut sf Bottom edge of print area sb se sa sc sc sf Cut sb Top - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 126
js"> epson.ePOSBuilder(); builder.addLayout(builder.LAYOUT_RECEIPT_BM, 580, 0, 15, 0 script> To set 58 mm die-cut label (without black mark): - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 127
Adds the recovery from errors to the command buffer. (in ePOS-Print Service Ver.3.0 and later) Enable forced transmission mode to use this API. /javascript"> epson.ePOSBuilder(); builder.force = true; builder.addRecovery(); } //--> - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 128
method Adds the printer reset to the command buffer. (in ePOS-Print Service Ver.3.0 and later) Other printing commands in the print document are ignored js"> epson.ePOSBuilder(); builder.addReset script> 128 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 129
about ESC/POS commands, see the ESC/POS Command Reference. You can view the ESC/POS Command Reference from https://reference.epson-biz.com/. Syntax addCommand(data); Parameter data : Return value (Optional parameter, Object type : String) Specifies ESC/POS command as a character string - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 130
to be printed Object type String Example epson.ePOSBuilder(); var doc = builder.toString script> 130 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 131
type="text/javascript" src="epos-print-4.x.x.js"> - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 132
epson.ePOSBuilder(); var canvas = document.getElementById('canvas'); if (canvas.getContext) { var context = canvas.getContext('2d'); builder.brightness - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 133
property This is the forced transmission mode. (in ePOS-Print Service Ver.3.0 and later) Object type Boolean Description If you enable time (addCommand method (p.129)) Example Performs a drawer kick-out when the paper is at the end: - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 134
and reset it to the initial state: epson.ePOSBuilder(); builder.addText('ABCDE'); builder.message script> 134 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 135
The URL is as follows: http://[IP address of ePOS-Print supported TM printer]/cgi-bin/epos/ service.cgi?devid=[device ID of printer to be used for printing]& 'http://192.168.192.168/cgi-bin/epos/ service.cgi?devid=local_printer'; var epos = new epson.ePOSPrint(address); } //--> 135 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 136
Exception Parameter " ... " is invalid XMLHttpRequest is not supported Object type Error Error Example - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 137
World!\n'); builder.addCut(); var request = builder.toString(); var address = 'http://192.168.192.168/cgi-bin/epos/ service.cgi?devid=local_printer'; var epos = new epson.ePOSPrint(address); epos.onreceive = function (res) { alert(res.printjobid); }; epos.onerror = function (err) { alert(err.status - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 138
be used. Exception Parameter " ... " is invalid XMLHttpRequest is not supported Object type Error Error Example var printjobid = '12345'; var address = 'http://192.168.192.168/cgi-bin/epos/service.cgi'; var epos = new epson.ePOSPrint(address); epos.onreceive = function (res) { alert(res.success - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 139
"> - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 140
"> - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 141
is shown as follows: http://[IP address of ePOS-Print supported TM printer]/cgi-bin/epos/ service.cgi?devid=[device ID of printer to be used for printing - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 142
"> interval property - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 143
battery property 4 Battery status of the printer. Object type Number Description - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 144
type Number Description Specifies connection timeout with ePOS-Print supported printer in milliseconds. When the transmission of print address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var epos = new epson.ePOSPrint(address); epos.timeout = 60000; epos.onreceive = - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 145
Error code Status Battery status Print job ID Object type Boolean String Number Number String * ePOS-Print Service Ver.4.1 or later versions supported Value of remaining battery A cover open error occurred An autocutter error occurred A mechanical error occurred No paper in roll paper end sensor - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 146
to be removed (only for applicable devices) No paper in label peeling sensor (only for applicable devices) The spooler has stopped * ePOS-Print Service Ver.4.1 or later versions supported Value of battery Status of power Value (battery) 0x30XX 0x31XX Description The AC adapter is connected The - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 147
('Hello, World!\n'); builder.addCut(); var request = builder.toString(); var address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var epos = new epson.ePOSPrint(address); epos.onreceive = function (res) { var success = res.success; var code = res.code; var status = res - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 148
, World!\n'); builder.addCut(); var request = builder.toString(); var address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var epos = new epson.ePOSPrint(address); epos.onerror = function (err) { var status = err.status; var text = err.responseText; alert(status); } epos - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 149
="epos-print-4.x.x.js"> 149 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 150
"> onoffline event Registers a callback function - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 151
js"> oncoverok event Registers a callback - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 152
to obtain a paper remaining event. Object type Function () Example - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 153
://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var epos = new epson.ePOSPrint(address); epos.onpapernearend = function () { alert('papernearend'); }; epos.open(); //--> onpaperend event Registers a callback function to obtain a paper end event. Object type Function - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 154
> ondraweropen event Registers a callback - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 155
.cgi?devid=local_printer'; var epos = new epson.ePOSPrint(address); epos.onbatteryok = function () { alert('batteryok'); }; epos.open(); //--> onbatterylow event Registers call back function and obtains no remaining battery event. (in ePOS-Print Service Ver.2.2 and later) Object type - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 156
156 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 157
Battery status 169 170 5 Connection timeout 171 Raster image halftone processing method 172 Raster image brightness correction value 173 Paper cut 174 Color mode 175 Position alignment 176 Printing color 177 Control of label paper/black mark paper 178 Type of papers 179 Paper - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 158
Paper feed position of label paper/black mark paper Type of papers *1 ePOS-Print Service Ver.2.1 or later versions supported *2 ePOS-Print Service Ver.2.2 or later versions supported *3 ePOS-Print Service Ver.3.0 or later versions supported *4 ePOS-Print Service Ver.4.1 or later versions supported - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 159
for printing). The URL is as follows: http://[ePOS-Print supported TM printer]/cgi-bin/epos/service.cgi?devid=[device ID of printer to be used for printing]& http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var epos = new epson.CanvasPrint(address); } //--> 5 159 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 160
); The syntax used to specify job IDs is only compatible with ePOS-Print Service Ver.4.1 or later. For details, refer to Specifying the Print Job ID paper. Setting true or 1 false or 0 undefined Description Cuts the paper after printing Does not cut the paper after printing Does not cut the paper - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 161
" ... " is invalid XMLHttpRequest is not supported Canvas is not supported Object type Error Error Error Example To print 168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var canvas = document.getElementById('myCanvas'); var epos = new epson.CanvasPrint(address); epos.onreceive = - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 162
be used. Exception Parameter " ... " is invalid XMLHttpRequest is not supported Object type Error Error Example var printjobid = '12345'; var address = 'http://192.168.192.168/cgi-bin/epos/service.cgi'; var epos = new epson.ePOSPrint(address); epos.onreceive = function (res) { alert(res.success - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 163
script> epson.CanvasPrint(address); epos.oncoveropen = function () { alert('coveropen'); }; function startMonitor() { epos.open(); } function stopMonitor() { epos - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 164
script> epson.CanvasPrint(address); epos.oncoveropen = function () { alert('coveropen'); }; function startMonitor() { epos.open(); } function stopMonitor() { epos - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 165
"> epson.CanvasPrint(address); epos.oncoveropen = function () { alert('coveropen'); }; function recover() { epos.recover(); } //--> reset method - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 166
is shown as follows: http://[IP address of ePOS-Print supported TM printer]/cgi-bin/epos/ service.cgi?devid=[device ID of printer to be used for printing "> - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 167
-4.x.x.js"> 5 167 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 168
-4.x.x.js"> 168 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 169
" src="epos-print-4.x.x.js"> 5 169 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 170
" src="epos-print-4.x.x.js"> 170 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 171
type Number Description Specifies connection timeout with ePOS-Print supported printer in milliseconds. When the transmission of print 168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var canvas = document.getElementById('myCanvas'); var epos = new epson.CanvasPrint(address); epos.timeout = - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 172
type="text/javascript"> 172 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 173
-4.x.x.js"> 5 173 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 174
paper cut after printing. - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 175
"> 5 175 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 176
"> 176 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 177
js"> 5 177 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 178
feed property It sets paper feed of label paper/black mark paper. (in ePOS-Print Service Ver.2.1 and later) Object type String Description Paper feed position of label paper/black mark paper. Value FEED_PEELING FEED_CUTTING FEED_CURRENT_TOF (Default) FEED_NEXT_TOF Description Feeds to the - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 179
label. - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 180
height (in units of 0.1 mm). Paper type Receipt (without black mark) Receipt (with black mark) Die-cut label (without black mark) Die-cut label (with black mark) Valid value range 0 Description Setup not necessary 0 (auto) 284 to 1550 (manual) * Distance from the top of black mark to the - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 181
0) Specifies cut position (in units of 0.1 mm). In case of die cut label paper, it is a distance from the bottom of label. When a paper has black mark, it is a distance from the beginning of black mark. Paper type Receipt Valid value range 0 Description Setup not necessary 5 (without black - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 182
to "Appendix - Printer Specifications". Layout property positions that can be designated for each type of paper sf Receipt Top position Cut sf sb sc sa sf Top position Label Cut Bottom edge of print area Mark sf sa sb se sc sd Parameter width height - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 183
="text/javascript"> - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 184
/javascript"> - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 185
(p. 186) printjobid (p. 186) * Name Print result Error code Status Battery status Print job ID Boolean String Number Number String Object type * ePOS-Print Service Ver.4.1 or later versions supported Value of success Value true or 1 false or 0 Description Printing succeeded Processing - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 186
(only for applicable devices) Waiting period for removal of label (only for applicable devices) No paper in label peeling sensor (only for applicable devices) The spooler has stopped * ePOS-Print Service Ver.4.1 or later versions supported Value of battery 0 is shown when the model doesn't have - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 187
text/javascript"> epson.CanvasPrint(address); epos.onreceive = function (res) { var success = res.success; var code = res - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 188
="text/javascript"> epson.CanvasPrint(address); epos.onerror = function (err) { var status = err.status; var text = err - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 189
" src="epos-print-4.x.x.js"> 5 189 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 190
="epos-print-4.x.x.js"> 190 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 191
?devid=local_printer'; var epos = new epson.CanvasPrint(address); epos.onbatteryok = function () { alert('batteryok'); }; epos.open(); //--> onbatterylow event Registers call back function and obtains no remaining battery event. (in ePOS-Print Service Ver.2.2 and later) Syntax Function - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 192
script> onoffline event Registers a callback function - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 193
js"> oncoverok event Registers a callback - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 194
to obtain a paper remaining event. Object type Function () Example - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 195
://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var epos = new epson.CanvasPrint(address); epos.onpapernearend = function () { alert('papernearend'); }; epos.open(); //--> onpaperend event Registers a callback function to obtain a paper end event. Object type Function - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 196
> ondraweropen event Registers a callback - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 197
Chapter 6 ePOS-Print Editor ePOS-Print Editor This section describes how to use ePOS-Print Editor included in the contents in the package. This tool allows you to create an ePOS-Print API (p. 61) sample code as you like. Use this tool for your Web application development. ePOS-Print Editor Operating - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 198
width (Liner width) IP address of ePOS-Print supported TM printer Device ID of the target printer Print timeout (milliseconds) Monitor the status Use print job ID Description Select printer model to be used and paper width (for label paper, the mount width). The Preview screen resizes according - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 199
Chapter 6 ePOS-Print Editor Creating a Sample Code Select the [Edit] tab to display the Edit screen. Create an ePOS-Print API sample code in the Edit screen. Menu area Edit area Item Description Menu area Edit area Displays the available functions. Click an icon to add it to the bottom of the - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 200
by printing. For details, refer to Print (p.201). • Logo printing, barcode printing, 2D code printing, ESC command, buzzer sound, drawer kick, and paper cut are displayed as icons. • The layout may change depending on the preview settings. (For details, refer to Setting (p.198)). 4 Select the - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 201
document created using the [Edit] tab page is displayed in "Data to be sent (ePOS-Print XML)". 3 The print document is printed to ePOS-Print supported TM printer. The acquired status is displayed in the Information box. 201 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 202
Import ePOS-Print Editor can import and re-edit the ePOS-Print XML print document once created. Note that you cannot perform import operation using ePOS-Print API source code. Perform import operation using ePOS-Print XML print data. Item Data to be import (ePOS-Print XML) Apply Information Close - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 203
TM-L90-i/ TM label Ethernet, Wireless LAN 203 dpi x 203 dpi (W x H) 256 dots (38 mm) to 576 dots (80 mm) 224 dots (38 mm) to 560 dots (80 mm) Font A, Font B, Font C For more information about what character codes can be printed, refer to the user's manual setting utility.) UPC-A, UPC-E, EAN13 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 204
dots x 738 dots (W x H) Page Mode Line Not supported Rectangle Paper Cut Cut, Feed cut Specification of the paper feed position for labels / black mark paper Supported Drawer Kick-Out Supported Buzzer Not supported Paper Layout Settings Not supported (With automatic setup mode) Forced - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 205
, QR Code Ruled Line Not supported Paper Cut Cut, Feed cut Specification of the paper feed Not supported position for labels / black mark paper Drawer Kick-Out Supported Buzzer Not supported Paper Layout Settings Not supported Forced transmission mode Supported Recovery from an error - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 206
, QR Code Ruled Line Not supported Paper Cut Cut, Feed cut Specification of the paper feed Not supported position for labels / black mark paper Drawer Kick-Out Supported Buzzer Not supported Paper Layout Settings Not supported Forced transmission mode Supported Recovery from an error - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 207
feed position for labels / black mark paper Drawer Kick-Out Buzzer Paper Layout Settings 80 mm 58 mm Ethernet, Wireless LAN 180 dpi x 180 dpi (W x H) 512 dots 360 dots Font A, Font B For more information about what character codes can be printed, refer to the user's manual that came with - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 208
Forced transmission mode Recovery from an error Reset Command 80 mm Supported Supported Supported Supported 58 mm 208 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 209
TM-P60II Mode Maximum Area Page Mode Line Rectangle Paper Cut Receipt 58 mm Receipt 60 mm codes can be printed, refer to the user's manual that came with the printer. ANK: 35 characters, Aztec Code, DataMatrix (Composit Symbology : Not supported) Not supported 420 dots x 1624 dots (W x H) - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 210
feed position for labels / black mark paper Drawer Kick-Out Buzzer Paper Layout Settings Forced transmission mode Recovery from an error Reset Command Receipt 58 mm Not supported Not supported Support (Pattern1 ~ Pattern 10, Stop) Not supported Supported Supported Supported Supported Receipt 60 mm - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 211
TM-P60II with Peeler Receipt 58 mm Receipt 60 mm Die-cut label Wireless LAN 203 dpi x 203 dpi (W codes can be printed, refer to the user's manual that came with the printer. ANK: 35 characters Aztec Code, DataMatrix (Composit Symbology : Not supported) Not supported 420 dots x 1624 dots (W x H) - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 212
Receipt 58 mm Receipt 60 mm Feed cut (Feeds paper to cutting position) Supported Not supported Support (Pattern1 ~ Pattern 10, Stop) Supported Supported Supported Supported Supported Die-cut label Paper Layout Paper type Receipt paper (without black mark) width (sf) 290 to 600 height - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 213
Appendix TM-P80 Interface Resolution Print Width Font Characters in a Line Font A ) Font A, Font B For more information about what character codes can be printed, refer to the user's manual that came with the printer. ANK: 48 characters, ANK: 64 characters ANK: 42 characters ANK: 60 characters - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 214
cut (Feeds paper to cutting position) Supported (Only for black mark paper) Not supported Support (Pattern1 ~ Pattern 10, Stop) Supported (Only for receipt paper) Supported Supported Supported Supported Paper Layout Paper type Receipt paper (without black mark) Receipt paper (with black mark - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 215
TM paper feed position for labels / black mark paper 58 mm 80 mm Ethernet 203 dpi x 203 dpi (W x H) 420 dots 576 dots Font A, Font B For more information about what character codes can be printed, refer to the user's manual (Composit Symbology : Not supported) Not supported 420 dots x 831 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 216
Drawer Kick-Out Buzzer Paper Layout Settings Forced transmission mode Recovery from an error Reset Command 58 mm 80 mm Supported Optional (Pattern A ~ Pattern E, Error, No paper, Stop) Not supported Supported Supported Supported Supported 216 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 217
, QR Code Ruled Line Not supported Paper Cut Cut, Feed cut Specification of the paper feed Not supported position for labels / black mark paper Drawer Kick-Out Supported Buzzer Not supported Paper Layout Settings Not supported Forced transmission mode Supported Recovery from an error - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 218
setting utility.) Bar Code UPC-A, UPC-E, EAN13, JAN13, EAN8, JAN8, CODE39, ITF, CODABAR, CODE93, CODE128, GS1-128 Two-Dimensional Code PDF417, QR Code Ruled Line Not supported Paper Cut Cut, Feed cut Specification of the paper feed position for labels / black mark paper Not supported - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 219
Paper Layout Settings Forced transmission mode Recovery from an error Reset Command 80 mm Not supported Supported Supported Supported Supported Appendix 58 mm 219 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 220
TM-T90 58 mm 60 mm 80 mm Interface Ethernet, Wireless LAN Resolution 180 dpi x 180 dpi (W x H) Print Width 360 dots 384 dots 512 dots Font Font A, Font B For more information about what character codes can be printed, refer to the user's manual utility Line Not supported Page Mode - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 221
for labels / black mark paper Paper Cut Drawer Kick-Out Buzzer Paper Layout Settings Forced transmission mode Recovery from an error Reset Command 58 mm Not supported 60 mm Not supported Cut, Feed cut Supported Supported via Drawer Kick-Out Not supported Supported Supported Supported - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 222
of the paper feed position for labels / black mark paper Drawer Kick-Out Buzzer 76 mm 70 mm 58 mm Ethernet, Wireless LAN 80 dpi x 72 dpi (W x H) 200 dots 180 dots 150 dots Font A, Font B For more information about what character codes can be printed, refer to the user's manual that came - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 223
Paper Layout Settings Forced transmission mode Recovery from an error Reset Command 76 mm Not supported Not supported Not supported Supported Supported 70 mm Appendix 58 mm 223 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 224
Rendering in HTML5 Canvas This section describes how to use Web pages using the ePOS-Print Canvas API in the package. You can try how to render images in HTML5 Canvas and see what images can be rendered. The following Web pages are available: Rendering Text (canvas-print-text.html) (p.224) - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 225
Appendix 2 "EPSON ePOS-Print the following URL: http://[IP address of ePOS-Print supported TM printer]/cgi-bin/epos/ service.cgi?devid=[device ID of printer to be used for halftone processing method for monochrome printing (twotone). Cut Paper When this item is selected, feed cut is performed - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 226
and perform a test print. 1 2 3 4 1 Open the following URL page using the Web browser. http://[Web server IP address]/canvas/canvas-print-image.html 2 "EPSON ePOS-Print Sample Program" appears. Set items on the right of the page. The following items can be set: Item Position Size Angle Image - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 227
Enter the following URL: http://[IP address of ePOS-Print supported TM printer]/cgi-bin/epos/ service.cgi?devid=[device ID of printer to be used for printing Set the halftone processing method for monochrome printing (twotone). Cut Paper When this item is selected, feed cut is performed after - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 228
and perform a test print. 1 2 3 4 1 Open the following URL page using the Web browser. http://[Web server IP address]/canvas/canvas-print-graph.html 2 "EPSON ePOS-Print Sample Program" appears. Set items on the right of the page. The following items can be set: Item Fill Settings Rectangle - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 229
Enter the following URL: http://[IP address of ePOS-Print supported TM printer]/cgi-bin/epos/ service.cgi?devid=[device ID of printer to be used for printing Set the halftone processing method for monochrome printing (twotone). Cut Paper When this item is selected, feed cut is performed after - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 230
image and perform a test print. 1 2 3 4 1 Open the following URL page using the Web browser. http://[Web server IP address]/canvas/canvas-print-hand.html 2 "EPSON ePOS-Print Sample Program" appears. Set the size of the pen on the right of the page. 3 Draw a freehand line on Canvas on the left - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 231
Enter the following URL: http://[IP address of ePOS-Print supported TM printer]/cgi-bin/epos/ service.cgi?devid=[device ID of printer to be used for printing Set the halftone processing method for monochrome printing (twotone). Cut Paper When this item is selected, feed cut is performed after - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 232
JAN13 or UPC-A is drawn. 1 2 3 4 1 Open the following URL page using the Web browser. http://[Web server IP address]/canvas/canvas-print-barcode.html 2 "EPSON ePOS-Print Sample Program" appears. Set items on the right of the page. The following items can be set: Item Position Module Size Data - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 233
Enter the following URL: http://[IP address of ePOS-Print supported TM printer]/cgi-bin/epos/ service.cgi?devid=[device ID of printer to be used for printing Set the halftone processing method for monochrome printing (twotone). Cut Paper When this item is selected, feed cut is performed after - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 234
Canvas and perform a test print. 1 2 3 4 1 Open the following URL page using the Web browser. http://[Web server IP address]/canvas/canvas-print-label.html 2 "EPSON ePOS-Print Sample Program" appears. Set items on the right of the page. The following items can be set: Item Name Description - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 235
: http://[IP address of ePOS-Print supported TM printer]/cgi-bin/epos/ service.cgi?devid=[device ID of printer to paper layout Check when printing labels with paper layout specified. (only for TM-P60II/TM-P80) Layout Specify the label paper layout. Setting become effective when [Set the paper - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 236
Ticket Coupon Label Display the [Settings] screen. Set up the following. Specifies the IP address of the ePOS-Print supported printer. (Default value: in gray scale. (Only for supported models) (Default: No) Specifies paper layout and print. (Only for TM-P60II Peeler) (Default: No) Page - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 237
Print Image Your Number (ePOS-Print API) Your Number: Appendix Coupon (ePOS-Print Canvas API) Label * (ePOS-Print API) Name Item A Color R e d Code *2012001* *: Die cut label: mount width 58 mm or above Label size: width 54 mm x height 25.4 mm or above 237 - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 238
name Description Microsoft Visual Studio 2012 Windows 8 win8/ePOS-Print Demo.zip Environment setting Procedure 1 Configure your computer and ePOS-Print supported TM printer so that they can connect to the network. 2 Uncompress the sample program into any folder. 3 Open the sample program solution - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 239
Print timeout (milliseconds) Print in grayscale (Coupon) (Only for supported models) Set the paper layout (Label) (Only for TM-P60II/TM-P80) Description Specifies the IP address of the ePOS-Print supported printer. (Default value: TM-i: DHCP (If an address fails to be assigned via DHCP - Epson TM-T70-i | ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 240
queue ticket numbers. This is a sample program using the ePOS-Print API. Coupon Prints coupons. This is a sample program using the ePOS-Print Canvas API. Label Prints labels. This is a sample program using the ePOS-Print API. 2 Press [Print]. 240
User’s Manual
ePOS-Print API
M00042110
Rev.K
Overview
Sample Program
Programming Guide
ePOS-Print API
ePOS-Print Canvas API
Describes the features and development environment.
Describes how to use the sample program and how
to build a system.
Describes how to write programs in Web application
development.
Describes the ePOS-Print API.
Describes the ePOS-Print CanvasAPI.
Appendix
Describes the specifications for printers used for ePOS-Print,
how to use the rendering of images in HTML5 Canvas.
ePOS-Print Editor
Describes the ePOS-Print Editor.