Epson TM-T70-i ePOS-Print API Users Manual
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 - 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 - 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 - 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 - Page 4
printers 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 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 5
...17 Terminal...17 ePOS-Print Supported TM printer...17 Printers That Can Be Controlled ...17 ■ System Construction Example 18 Registering a Web Application Into the Web Server 18 Registering a Web Application Into a TM-i 19 Registering a Web application to a cloud 20 ■ Contents in the Package - Epson TM-T70-i | ePOS-Print API Users Manual - Page 6
Network Setting of ePOS-Print Supported TM printer 35 Device ID Settings...37 Sample Program Settings ...39 Programming Guide 41 ■ ePOS-Print API...41 API 59 ■ List of API functions...59 window.epson.ePOSBuilder Components 59 window.epson.ePOSPrint Components 63 ■ ePOS-Print Builder Object 65 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 7
...136 message property ...137 ■ ePOS-Print Object...138 Constructor...138 send method...139 open method...140 close method ...141 address property...142 enabled property ...143 interval property ...144 status property ...145 battery property ...146 timeout property...147 onreceive event ...148 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 8
of ePOS-Print Canvas API functions 161 window.epson.CanvasPrint Components 161 ■ ePOS-Print Canvas API Object 164 Constructor ...164 print method ...165 open method ...167 close method...168 recover method ...169 reset method ...169 address property ...170 enabled property...171 interval property - Epson TM-T70-i | ePOS-Print API Users Manual - Page 9
■ Printer specifications ...209 TM-T88V-i ...209 TM-T88V ...211 TM-T88IV ...213 TM-T70-i...215 TM-T70-i (Multi-language model) ...217 TM-T70...219 TM-T70 (Multi-language model) ...221 TM-L90-i ...223 TM-L90 ...225 TM-T90...227 TM-P60II ...229 TM-P60II with Peeler ...231 TM-P80 ...233 TM-T20...235 TM - Epson TM-T70-i | ePOS-Print API Users Manual - Page 10
10 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 11
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 1 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 - Page 12
apps (JavaScript). ❏ Installation of drivers and plug-ins is not required. ❏ No PCs or servers are required for printing. ❏ Allows printing from public and private clouds. ❏ Allows printing in languages supported in Web browsers. ❏ Automatically checks the status of the TM printer before printing - Epson TM-T70-i | ePOS-Print API Users Manual - 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 - Page 14
ePOS-Print Canvas API Monochrome or Grayscale Monochrome 14 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 15
sends print data. For an ePOS-Print supported printer, the print data for the unit printer is printed. 4 For a TM-i, the print data is sent to a controllable printer. 5 The data is printed from printers that can be controlled. 6 The ePOS-Print supported TM printer returns a response document to the - Epson TM-T70-i | ePOS-Print API Users Manual - Page 16
Features The installed functions vary depending on the model. For details, refer to Appendix, Printer Specifications. Printing functions of ePOS-Print API ❏ Print setting (alignment/line feed space/text rotation/page mode) ❏ Character data setting (language/font (device font)/double- - Epson TM-T70-i | ePOS-Print API Users Manual - 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 Printer ❏ TM-P60II ❏ TM-P60II with Peeler ❏ TM-P80 Unable to control other TM printer Printers That Can Be Controlled Refer to the "Technical Reference Guide" for the TM-i series. Chapter - Epson TM-T70-i | ePOS-Print API Users Manual - Page 18
❏ 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 print data received from the - Epson TM-T70-i | ePOS-Print API Users Manual - Page 19
Chapter 1 Overview Wireless LAN / Router Web Browser 1 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 the input terminal - Epson TM-T70-i | ePOS-Print API Users Manual - Page 20
Registering a Web application to a cloud 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) 20 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 21
the Package Manual ❏ 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 SampleProgram ePOS - Epson TM-T70-i | ePOS-Print API Users Manual - Page 22
Utility (TMFLogo) TMNet WinConfig (EpsonNet Config) ❏ TM Printer (Wireless LAN Model) Utility Model-Dedicated Utility Memory Switch Setting Utility TM Flash Logo Setup Utility (TMFLogo) TMNet WinConfig (EpsonNet Config) TM-T88V-i ● ● TM-P60II ● - ● TM-T70-i ● ● TM-P80 ● - ● TM-L90-i ● ● ● 22 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 23
Version Information Version of ePOS-Print Service installed on a printer can be confirmed as follows. Model Confirmation Method ePOS-Print Version TM-T88V-i Displayed on EPSON TMNet WebConfig 2.0xWW: Ver.2.0 TM-T70-i Printed on the status sheet 2.1xWW - Epson TM-T70-i | ePOS-Print API Users Manual - Page 24
cannot be used if the printer is not provided with the buzzer. ❏ Internet Explorer 9 does not allow printing to the printer to be performed from security- settings to clear the data left in the printer. (in Ver.3.0 and later) In the printer DIP switches (memory switches), configure the Busy - Epson TM-T70-i | ePOS-Print API Users Manual - Page 25
• Descriptions are made assuming that the Web server in this chapter is a Web server configured by using IIS (Microsoft Internet Information Services). If your Web server is used in a different environment, interpret the descriptions accordingly. Sample Program System Overview Sample Program Screen - Epson TM-T70-i | ePOS-Print API Users Manual - Page 26
the "Settings" screen. The screen is used to set the following: IP adress 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 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 27
Print Image The sample 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 58mm or above Label size: width 54 mm x height 25.4 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 28
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 - Page 29
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 - Page 30
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 ❏ Settings of with or without layout specification in label printing of TM-P60II 3. Click "Label" 4. Creates print data (ePOS-Print - Epson TM-T70-i | ePOS-Print API Users Manual - Page 31
Environment Chapter 2 Sample Program TM-i The system configuration diagram for the sample programs is as below. • The figure below also describes an example of IP address settings as network settings. • In the sample program, ʺPrinter to be controlledʺ is not required. Refer to it if necessary - Epson TM-T70-i | ePOS-Print API Users Manual - Page 32
describes an example of IP address settings as network settings. Web Server Computer to configure the settings [192.168.192.10] Wireless Network Printer to be controlled [192.168.192.21] Terminal [192.168.192.XXX]* Wireless LAN Router [192.168.192.1] TM-P60II - Epson TM-T70-i | ePOS-Print API Users Manual - Page 33
Setting of ePOS-Print Supported TM printer (p.35) Configuration is done from a Web browser. 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 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 34
sample program). Registration of Sample Program (ePOS-Print_API_UM_E_Sample.zip) Register the sample program into the Web server. Download ePOS‐Print_API_UM_E_Sample.zip. For details, refer to Contents in the package (p. 21). Register the program according to the following procedure: 1 Start the Web - Epson TM-T70-i | ePOS-Print API Users Manual - Page 35
. 2 Start the Web browser and type the URL of the TM-i interface into the address bar. Enter the password. http://[IP address of the TM intelligent printer]/PrinterConfigurationPage/ The initial value for the IP address of the TM‐i is a DHCP‐assigned address number. (Firmware Ver.3.0 or later) If an - Epson TM-T70-i | ePOS-Print API Users Manual - Page 36
TM Printer for Wireless LAN Model 1 Connect the printer to a PC via the USB cable. 2 Turn on the printer. 3 Start up EpsonNet Config. 4 Double-click on the printer. 5 Configure the [Network] settings and the [TCP/IP] settings. 6 Disconnect the USB cable, turn off the printer, and then turn it back - Epson TM-T70-i | ePOS-Print API Users Manual - Page 37
not required. Refer to it if necessary. 2 2 4 3 5 Configure the settings according to the following procedure: 1 Connect all the printers to the network and turn their power ON. 2 Start the Web browser and enter the IP address set in Network Setting of ePOS-Print Supported TM printer (p.35). 3 TMNet - Epson TM-T70-i | ePOS-Print API Users Manual - Page 38
for Wireless LAN Model Configure the settings according to the following procedure: 1 Turn on the printer. 2 Start the Web browser and type the IP address of the TM printer into the address bar. 3 EpsonNet Config (Web version) is launched. Select [Configuration]-[ePOS-Print]. 4 Set device ID. 38 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 39
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 power ON. 3 Open the following URL page using the Web browser. http://Web server IP address/sample/index.html 4 The sample program page opens - Epson TM-T70-i | ePOS-Print API Users Manual - Page 40
IP address of the intelligent printer Device ID of the target printer 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 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 41
Chapter 3 Programming Guide Programming Guide This chapter describes how to write programs in height of images, barcodes, etc. This mode is suitable 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 mode, you - Epson TM-T70-i | ePOS-Print API Users Manual - Page 42
Result (p.49) • ePOS‐Print supported TM printer checks the status of the TM printer to be used for printing and then starts printing operation. (in firmware Ver.1.2 and later) • A status event helps check the status of the TM printer. For details on the procedure, refer to Reception of Status Event - Epson TM-T70-i | ePOS-Print API Users Manual - Page 43
Chapter 3 Programming Guide Embedding of ePOS-Print API The ePOS-Print API is provided /javascript" src="epos-print-3.x.x.js"> function buildMessage() { var builder = new epson.ePOSBuilder(); . . } 3 . . 43 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 44
that print document using the toString method. For details, refer to List of API functions (p.59). Refer to the following program for print document creation. - Epson TM-T70-i | ePOS-Print API Users Manual - Page 45
Guide To create a text print document: To create a text print document, store the font settings into the command buffer using text methods and then create a print document. Refer an ePOS-Print Builder object var builder = new epson.ePOSBuilder(); //Create a print document // - Epson TM-T70-i | ePOS-Print API Users Manual - Page 46
buildMessage() { //Create an ePOS-Print Builder object var builder = new epson.ePOSBuilder(); //Render an image in HTML5 Canvas var canvas = document.getElementById('canvas also a method of printing graphics registered in the NV memory of the printer. For details, refer to addLogo method (p.89). 46 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 47
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 - Page 48
period Description Specify IP address or domain of ePOS-Print supported TM printer. Specifies the printer to be used for printing. Specify device ID registered with EpsonNet Config (Web version) of ePOS-Print supported TM printer or TMNet WebConfig of TM intelligent printer. Specifies the time - Epson TM-T70-i | ePOS-Print API Users Manual - Page 49
Printer status The printer status can be obtained when communication with the printer is possible. Refer address = '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 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 50
Refer to the following program for the error handling method by a callback function. //Create an ePOS-Print object var epos = new epson.ePOSPrint(address); // Set a response receipt Obtain the printer status var asb = res.status; if (asb & epos.ASB_NO_RESPONSE) { msg += ' No printer response\n'; } - Epson TM-T70-i | ePOS-Print API Users Manual - Page 51
Chapter 3 Programming Guide Reception of Status Event The status event notification function is used to check the printer status without printing. (in firmware Ver.1.2 and later) Refer to the following: //Set the end point address var address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid= - Epson TM-T70-i | ePOS-Print API Users Manual - Page 52
54) 3. Prints an Canvas image (p.55) 4. Reception of Print Result (p.56) • 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. 51). 52 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 53
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-3.x.x.js". It is - Epson TM-T70-i | ePOS-Print API Users Manual - Page 54
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 - Page 55
details about the printer end point address, refer to Printer End Point Address (p.48). Refer to the 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 3 var epos = new epson.CanvasPrint(address - Epson TM-T70-i | ePOS-Print API Users Manual - Page 56
2d'); . . . //Set 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 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 57
Guide Error handling Refer to the following program for the error handling method by a callback function. var epos = new epson.CanvasPrint(address); // Set a response receipt Obtain the printer status var asb = res.status; if (asb & epos.ASB_NO_RESPONSE) { msg += ' No printer response\n'; } - Epson TM-T70-i | ePOS-Print API Users Manual - Page 58
printer status without printing. (in firmware Ver.1.2 and later) Refer to the following. //Set 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 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 59
of API functions ePOS-Print provides the following objects: ❏ ePOS-Print Builder (window.epson.ePOSBuilder) Object (p. 59) ❏ ePOS-Print (window.epson.ePOSPrint) Object (p. 63) window.epson.ePOSBuilder Components Element API Description Standard mode page mode Page Constructor ePOS Builder - Epson TM-T70-i | ePOS-Print API Users Manual - Page 60
Element API Description Standard mode page mode Page Method addFeedUnit Adds a tag for paper feeding (in dots). ● ● 82 Adds a tag for paper feeding (in addFeedLine ● Paper lines). Feed Adds control of label paper/black addFeedPosition ● mark paper to command buffer ● 83 - 84 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 61
● (in firmware Ver.2.2 and later) Adds a tag for recovering from an ● error. (in firmware Ver.3.0 and later) Adds a tag for resetting the printer. (in firmware Ver.3.0 and later) ● Adds commands to the command ● buffer. Sends ESC/POS commands. Obtains a print document gener- ated by on ePOS - Epson TM-T70-i | ePOS-Print API Users Manual - Page 62
height of images and barcodes, etc.) ❏ Range Depending on the printer specifications, a specifiable range is predetermined. For details, refer to Printer specifications (p.209). ❏ Resolution The resolution varies depending on the printer. It affects the actual print size. The higher the resolution - Epson TM-T70-i | ePOS-Print API Users Manual - Page 63
.epson.ePOSPrint Components Element API Constructor ePOS-Print Method send open Property close address and later) Printer status update interval 144 (in firmware Ver.1.2 and later) Status 145 Battery status 146 The connecting was timeout. 147 Response message receipt event 148 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 64
Element API Event ondrawerclosed ondraweropen onbatteryok onbatterylow Constant ASB_* Description Drawer close event (in firmware Ver.1.2 and later) Drawer open event (in firmware Ver.1.2 and later) Battery OK event (in firmware Ver.2.2 and later) Battery low event (in firmware Ver - Epson TM-T70-i | ePOS-Print API Users Manual - Page 65
ePOS-Print API ePOS-Print Builder Object This objects creates a print document for printer control commands that specify strings or graphics to be printed, paper cut, etc js"> epson.ePOSBuilder script> 4 65 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 66
: String) Specifies the text alignment. Constant(align) ALIGN_LEFT (default) ALIGN_CENTER ALIGN_RIGHT Description Alignment to the left Alignment to the center /javascript"> epson.ePOSBuilder(); builder.addTextAlign(builder.ALIGN_CENTER script> 66 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 67
the line feed space to 30 dots: 67 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 68
) Specifies whether to rotate text. Setting true or 11 false or 0 (default) Description Specifies rotated printing of text. Cancels rotated printing of text. Return ="text/javascript"> epson.ePOSBuilder(); builder.addTextRotate(true script> 68 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 69
are laid out in the current print position with the reference point being the character baseline dot (Printer specifications (p.209). Syntax addText(data); Parameter data epson.ePOSBuilder(); builder.addText('Hello,\t').addText('World\n script> 69 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 70
lang : ( Required parameter, Object type : String) Specifies the target language. Setting en(default) de fr it es ja ja-jp ko ko-kr zh-hans zh-cn zh-hant not installed in a printer cannot be printed. For printable character code, refer to the Technical Reference Guide of your printer. 70 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 71
4 To set the language as Korean: - Epson TM-T70-i | ePOS-Print API Users Manual - Page 72
Chinese: epson.ePOSBuilder(); builder.addTextLang('zh-hans script> To set the language as Traditional Chinese: - Epson TM-T70-i | ePOS-Print API Users Manual - Page 73
parameter, Object type : String) Specifies the font. Constant (font) FONT_A (default) FONT_B FONT_C Font A Font B Font C Language Return value Return value type="text/javascript"> epson.ePOSBuilder(); builder.addTextFont(builder.FONT_B script> 73 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 74
Specifies whether to enable smoothing. Setting true or 1 false or 0 (default) Description Specifies smoothing. Cancels smoothing Return value ePOS-Print Builder Object Object javascript"> epson.ePOSBuilder(); builder.addTextSmooth(true script> 74 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 75
for double-sized width. dh : ( Optional parameter, Object type : Boolean) Specifies the double‐sized height. Setting true or 1 false or 0 (default) undefined (When not specified) Description Specifies the double-sized height Cancels the double-sized height Retains the current setting for - Epson TM-T70-i | ePOS-Print API Users Manual - Page 76
Example To set the size as double width and height: epson.ePOSBuilder(); builder.addTextDouble(true, true script> 76 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 77
from 1 to 8 undefined (When not specified) Description Vertical scale (default : 1) Retains the current setting for the vertical scale. Return value Return > epson.ePOSBuilder(); builder.addTextSize(4, 4 script> 77 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 78
Parameter reverse : ( Optional parameter, Object type : Boolean) Specifies inversion of black and white for text. true or 1 Setting false or 0 (default) undefined (When not specified) Description Specifies the inversion of black and white parts of characters. Cancels the inversion of black - Epson TM-T70-i | ePOS-Print API Users Manual - Page 79
type : String) Specifies the color. Setting Description COLOR_NONE COLOR_1 (default) COLOR_2 COLOR_3 COLOR_4 undefined (When not specified) Characters are not "> - Epson TM-T70-i | ePOS-Print API Users Manual - Page 80
at 120 dots from the left end: epson.ePOSBuilder(); builder.addTextPosition(120 script> 80 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 81
position at 120 dots from the top: 4 epson.ePOSBuilder(); builder.addPageBegin(); builder.addTextVPosition(120); builder.addPageEnd script> 81 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 82
Example To feed paper by 30 dots: epson.ePOSBuilder(); builder.addFeedUnit(30 script> 82 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 83
Error Example To feed paper by 3 lines: epson.ePOSBuilder(); 4 builder.addFeedLine(3); } //--> 83 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 84
addFeedPosition method Adds label/black mark paper feeding to the command buffer. (Supported in firmware Ver.2.1 and later) • Control of label paper/black mark paper must be done in the standard mode. • In the page mode, addFeedPosition method - Epson TM-T70-i | ePOS-Print API Users Manual - Page 85
" src="epos-print-3.x.x.js"> epson.ePOSBuilder(); builder.addFeedPosition(builder.FEED_CURRENT_TOF); builder.addBarcode('0001', builder.BARCODE_CODE39, builder.HRI_BELOW); builder.addFeedPosition(builder.NEXT_TOF - Epson TM-T70-i | ePOS-Print API Users Manual - Page 86
line after printing a character string: epson.ePOSBuilder(); builder.addText("Hello").addFeed(); builder.addText("World").addFeed(); } //--> 86 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 87
image equals to one printer dot. When an image contains images downloaded from different domains, reference point being its bottom left dot. The print position will not move. • Multiple tone printing is not supported in Page Mode. Multiple tone graphic printing is supported COLOR_1 (default) COLOR_2 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 88
type="text/javascript" src="epos-print-3.x.x.js"> epson.ePOSBuilder(); var canvas = document.getElementById('canvas'); if (canvas.getContext) { var context = canvas.getContext('2d'); builder.addImage(context - Epson TM-T70-i | ePOS-Print API Users Manual - Page 89
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 text/javascript"> epson.ePOSBuilder(); builder.addLogo(48, 48 script> 89 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 90
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 : ( Required parameter, Object - Epson TM-T70-i | ePOS-Print API Users Manual - Page 91
Chapter 4 ePOS-Print API Barcode type Description Specify a start character (A to D, a to d). CODABAR Specify a stop character (A to D, a to d). Check digits are not added or validated. CODE93 Start and stop characters are automatically added. A check digit is automatically calculated and - Epson TM-T70-i | ePOS-Print API Users Manual - Page 92
type : Barcode type BARCODE_GS1_ DATABAR_EXPANDED Description You can enclose an application identifier (AI) in parentheses. The parentheses are used as HRI print characters and are not encoded as data. To encode each of the following characters, specify two characters starting with the - Epson TM-T70-i | ePOS-Print API Users Manual - Page 93
the bar code Both above and below the bar code ( Optional parameter, Object type : String) Specifies the HRI font. Constant (font) FONT_A(default) FONT_B FONT_C Font A Font B Font C Language ( Optional parameter, Object type : Number) Specifies the width of each module in dots. Specifies an - Epson TM-T70-i | ePOS-Print API Users Manual - Page 94
/javascript" src="epos-print-3.x.x.js"> epson.ePOSBuilder(); builder.addBarcode('01234567890', builder.BAROCDE_UPC_A, builder.HRI_BELOW, undefined, 2, 64); builder.addBarcode('01234500005', builder.BAROCDE_UPC_E - Epson TM-T70-i | ePOS-Print API Users Manual - Page 95
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 : ( Required parameter, Object type : String - Epson TM-T70-i | ePOS-Print API Users Manual - Page 96
in the following format: Postal code (1 to 6 pieces of data convertible by Code Set A) GS:(\x1d) ISO country code (1to 3-digit number) GS:(\x1d) Service class code (1- to 3-digit number) Convert the character string to the string in UTF8, apply the escape sequence, and then encode the string - Epson TM-T70-i | ePOS-Print API Users Manual - Page 97
type : Chapter 4 ePOS-Print API To specify binary data that cannot be represented by character strings, use the following escape sequences. String Description \xnn \\ Control code Back slash ( Required parameter, Object type : String) Specifies the two‐dimensional symbol type. Constant ( - Epson TM-T70-i | ePOS-Print API Users Manual - Page 98
error correction level L QR Code error correction level M QR Code error correction level Q QR Code error correction level H Default level Aztec Code error correction level (Default: 23) (in firmware Ver.2.2 and later) • Select the level according to the two‐dimensional symbol type. • For MaxiCode - Epson TM-T70-i | ePOS-Print API Users Manual - Page 99
symbol maximum size. Specifies an integer from 0 to 65535. 2D-Code type PDF417 QR Code MaxiCode 2D GS1 Databar Aztec Code DataMatrix (Others) Default value 0 (Auto) Ignored 0 (Auto) Ignored Ignored Description Specifies the number of code words for each row Specifies the maximum width for the - Epson TM-T70-i | ePOS-Print API Users Manual - Page 100
" src="epos-print-3.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 - Page 101
addHLine method Adds horizontal line printing to the command buffer. Draws horizontal lines. Not available in page mode. Chapter 4 ePOS-Print API Syntax addHLine(x1, x2, style); Parameter x 1: x2 : style : ( Required parameter, Object type : Number) Specifies the start position of the - Epson TM-T70-i | ePOS-Print API Users Manual - Page 102
the left end epson.ePOSBuilder(); builder.addHLine(100, 200, builder.LINE_THIN_DOUBLE); builder.addHLine(400, 500, builder.LINE_THIN_DOUBLE script> 102 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 103
Chapter 4 ePOS-Print API addVLineBegin method Adds the beginning of vertical line to the command buffer. Starts to draw vertical lines. • Not available in page mode. • Vertical lines are drawn until their end is specified by addVLineEnd (p. 105). Use this API function with addVLineEnd. Syntax - Epson TM-T70-i | ePOS-Print API Users Manual - 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 - Page 105
Chapter 4 ePOS-Print API addVLineEnd method Adds the end of vertical line to the command buffer. Finishes drawing vertical lines. • Not available in page mode. • Use this API function with addVLineBegin (p. 103). Syntax addVLineEnd(x, style); Parameter x: style : ( Required parameter, - Epson TM-T70-i | ePOS-Print API Users Manual - Page 106
end: epson.ePOSBuilder(); builder.addVLineBegin(100).addVLineBegin(200); builder.addFeedUnit(100); builder.addVLineEnd(100).addVLineEnd(200 script> 106 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 107
"ABCDE" in page mode: 4 107 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 108
print the characters "ABCDE" in page mode: epson.ePOSBuilder(); builder.addPageBegin(); builder.addText('ABCDE'); builder.addPageEnd script> 108 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 109
type : Number) Specifies the origin of the horizontal axis (in dots). Specifies an integer from 0 to 65535. 0 is the left end of the printerʹs printable area. ( Required parameter, Object type : Number) Specifies the origin of the vertical axis (in dots). Specifies an integer from 0 to 65535. 0 is - Epson TM-T70-i | ePOS-Print API Users Manual - Page 110
"ABCDE": epson.ePOSBuilder(); builder.addPageBegin(); builder.addPageArea(100, 50, 200, 30); builder.addText('ABCDE'); builder.addPageEnd script> 110 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 111
parameter, Object type : String) Specifies the print direction in page mode. Constant (dir) Description Left to right DIRECTION_LEFT_TO_RIGHT(default) (No rotation.Data is printed from the top left corner to the right.) Bottom to top DIRECTION_BOTTOM_TO_TOP (Counterclockwise rotation by - Epson TM-T70-i | ePOS-Print API Users Manual - Page 112
="text/javascript" src="epos-print-3.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 - Page 113
print position (in dots). Specifies an integer from 0 to 65535. Specify the print start position (coordinates) according to the content to be printed. Refer to the following. To print a character string: Specify the left end of the baseline for the first character. This can be omitted for - Epson TM-T70-i | ePOS-Print API Users Manual - Page 114
type="text/javascript" src="epos-print-3.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 - Page 115
Chapter 4 ePOS-Print API 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. 107) and PageEnd (p. 108). Syntax addPageLine(x1, y1, x2, y2, style); - Epson TM-T70-i | ePOS-Print API Users Manual - Page 116
position (500, 0): epson.ePOSBuilder(); builder.addPageBegin(); builder.addPageLine(100, 0, 500, 0, builder.LINE_THIN); builder.addPageEnd script> 116 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 117
Chapter 4 ePOS-Print API 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. 107) and PageEnd (p. 108). Syntax addPageRectangle(x1, y1, x2, y2, style); Parameter x 1: - Epson TM-T70-i | ePOS-Print API Users Manual - Page 118
vertexes: epson.ePOSBuilder(); builder.addPageBegin(); builder.addPageLine(100, 0, 500, 200, builder.LINE_THIN_DOUBLE); builder.addPageEnd script> 118 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 119
addCut method Adds paper cut to the command buffer. Sets paper cut. Not available in page mode. Chapter 4 ePOS-Print API Syntax addCut(type); Parameter type : ( Optional parameter, Object type : String) Specifies the paper cut type. Setting CUT_NO_FEED CUT_FEED CUT_RESERVE undefined (When - Epson TM-T70-i | ePOS-Print API Users Manual - Page 120
Example To perform feed cut operation: epson.ePOSBuilder(); builder.addCut(builder.CUT_FEED script> 120 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 121
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 - Page 122
the pin 2 of the drawer kick connector: epson.ePOSBuilder(); builder.addPulse(builder.DRAWER_1, builder.PULSE_100 script> 122 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 123
available in page mode. • The buzzer function and the drawer cannot be used together. • This API function cannot be used if the printer is not provided with the buzzer. Syntax addSound(pattern, repeat, cycle); Parameter pattern : ( Optional parameter, Object type : String) Specifies the buzzer - Epson TM-T70-i | ePOS-Print API Users Manual - Page 124
To repeat the sound pattern A three times: epson.ePOSBuilder(); builder.addSound(builder.PATTERN_A, 3 script> 124 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 125
range 0 Description Setup not necessary 4 (without black mark) Receipt (with black mark) Distance from the top of black mark to the top of next black mark Die-cut label (without black mark) 0 (Auto) Distance from the top of 284 to 1550 (Manual) * label to the top of next label Die-cut - Epson TM-T70-i | ePOS-Print API Users Manual - Page 126
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 label (without black mark) Die-cut label (with black mark) Valid value range Description 0 Setup not - Epson TM-T70-i | ePOS-Print API Users Manual - Page 127
label bottom position (sd) per 0.1mm unit. Paper Type Receipt (without black mark) Receipt (with black mark) Die-cut label (without black mark value of range is depending on the printer model. For detail, refer to "Appendix ‐ Printer Specifications". Return value Return value ePOS-Print - Epson TM-T70-i | ePOS-Print API Users Manual - Page 128
paper, and the positions for those parameters. Mark sf sa sb se sc sd Parameter width height margin_top margin_bottom offset_cut offset_label sf Receipt Top position Cut sf sb sc sa Top position Label Cut sf Bottom edge of print area sb se sa sc sc - Epson TM-T70-i | ePOS-Print API Users Manual - Page 129
-print-3.x.x.js"> epson.ePOSBuilder(); builder.addLayout(builder.LAYOUT_RECEIPT, 580 script> To set 58mm receipt (with black mark): - Epson TM-T70-i | ePOS-Print API Users Manual - Page 130
Ver.3.0 and later) Enable forced transmission mode to use this API. The printer recovers from errors that can be recovered from and clears the buffer. Syntax javascript"> epson.ePOSBuilder(); builder.force = true; builder.addRecovery script> 130 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 131
Chapter 4 ePOS-Print API addReset method Adds the printer reset to the command buffer. (in firmware Ver.3.0 and Exception Parameter " ... " is invalid Exception Object type Error Example Resets the printer: - Epson TM-T70-i | ePOS-Print API Users Manual - Page 132
Object type ePOS Builder Object type Error epson.ePOSBuilder(); var doc = builder.addCommand('ABC\x44\x45\x0a script> 132 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 133
to be printed Object type String Example epson.ePOSBuilder(); var doc = builder.toString script> 4 133 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 134
is specified. The default value is HALFTONE_DITHER. Constant HALFTONE_DITHER (default) HALFTONE_ERROR_DIFFUSION HALFTONE_THRESHOLD Description ="text/javascript"> epson.ePOSBuilder(); var canvas = document.getElementById('canvas'); if (canvas. - Epson TM-T70-i | ePOS-Print API Users Manual - Page 135
the range 0.1-10.0 is specified for the brightness correction value. The default value is 1.0. Example To set brightness as 2.2: - Epson TM-T70-i | ePOS-Print API Users Manual - Page 136
are forcibly sent to the printer. • Use forced transmission mode when the printer is offline. It will result in an error if the printer is online. • The following text/javascript"> epson.ePOSBuilder(); builder.force = true; builder.addPulse script> 136 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 137
and reset it to the initial state: epson.ePOSBuilder(); builder.addText('ABCDE'); builder.message script> 4 137 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 138
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]&timeout var address = 'http://192.168.192.168/cgi-bin/epos/ service.cgi?devid=local_printer'; var epos = new epson.ePOSPrint(address script> - Epson TM-T70-i | ePOS-Print API Users Manual - Page 139
Exception Parameter " ... " is invalid XMLHttpRequest is not supported Example Object type Error Error - Epson TM-T70-i | ePOS-Print API Users Manual - Page 140
in firmware Ver.1.2 and later) Sends the status of the printer specified by the address property using an event. Updates the status at the interval "> - Epson TM-T70-i | ePOS-Print API Users Manual - Page 141
" src="epos-print-3.x.x.js"> - Epson TM-T70-i | ePOS-Print API Users Manual - Page 142
is specified. The URL 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]&timeout=[timeout time] The default value is the address specified by the constructor. Example - Epson TM-T70-i | ePOS-Print API Users Manual - Page 143
is read-only. The default value is false. Example - Epson TM-T70-i | ePOS-Print API Users Manual - Page 144
Number Description The interval of upgrading the status is specified in milliseconds. Default value: 3000 (three seconds) Minimum value: 1000 (one second or - Epson TM-T70-i | ePOS-Print API Users Manual - Page 145
from the printer. This is read-only. Default value: 0 Example - Epson TM-T70-i | ePOS-Print API Users Manual - Page 146
last printer status. This is read-only. Default value: 0 Example - Epson TM-T70-i | ePOS-Print API Users Manual - Page 147
supported printer in milliseconds. When the transmission of print document by send method times out, onerror even is generated. Default builder.toString(); var address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var epos = new epson.ePOSPrint(address); epos.timeout = - Epson TM-T70-i | ePOS-Print API Users Manual - Page 148
property registers the callback function and obtains a response message receipt event. Syntax Function (response) Parameter of the callback An unrecoverable error occurred The request document contains a syntax error The printer with the specified device ID does not exist An error occurred on - Epson TM-T70-i | ePOS-Print API Users Manual - Page 149
ASB_AUTOCUTTER_ERR ASB_UNRECOVER_ERR ASB_AUTORECOVER_ERR ASB_RECEIPT_NEAR_END ASB_RECEIPT_END ASB_BUZZER ASB_WAIT_REMOVE_LABEL ASB_NO_LABEL ASB_SPOOLER_IS_STOPPED Description No response from the TM printer Printing is successfully completed Status of the 3rd pin of the drawer kick-out - Epson TM-T70-i | ePOS-Print API Users Manual - Page 150
0 (Real end) 0 is shown when the model doesnʹt have a battery installed. Example To create and send a print document. To display the print result in (); var address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var epos = new epson.ePOSPrint(address); epos.onreceive - Epson TM-T70-i | ePOS-Print API Users Manual - Page 151
(); builder.addText('Hello, World!\n'); builder.addCut(); 4 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 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 152
" src="epos-print-3.x.x.js"> 152 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 153
text/javascript" src="epos-print-3.x.x.js"> 153 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 154
" src="epos-print-3.x.x.js"> onpoweroff event - Epson TM-T70-i | ePOS-Print API Users Manual - Page 155
" src="epos-print-3.x.x.js"> oncoveropen event - Epson TM-T70-i | ePOS-Print API Users Manual - Page 156
src="epos-print-3.x.x.js"> onpapernearend event - Epson TM-T70-i | ePOS-Print API Users Manual - Page 157
" src="epos-print-3.x.x.js"> ondrawerclosed - Epson TM-T70-i | ePOS-Print API Users Manual - Page 158
/javascript" src="epos-print-3.x.x.js"> 158 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 159
" src="epos-print-3.x.x.js"> 4 159 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 160
160 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 161
epson.CanvasPrint) object (p. 161) window.epson.CanvasPrint Components Element API Constructor CanvasPrint method print open close recover Property reset address Ver.3.0 and later) Resets the printer 169 (in firmware Ver.3.0 and later) URL of the printer 170 (in firmware Ver.1.2 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 162
Ver.2.1 and later) Type of papers (in firmware Ver.2.1 and later) 183 Paper layout (in firmware Ver.2.2 and later) 184 Response message receipt event 189 Communication error event 192 Status change event 193 (in firmware Ver.1.2 and later) Battery status change event 194 (in firmware - Epson TM-T70-i | ePOS-Print API Users Manual - Page 163
Element Constant API ASB_* HALFTONE_* MODE_* ALIGN_* COLOR_* FEED_* PAPER_* Chapter 5 ePOS-Print Canvas API Description Page Response document status Halftone type Color mode Position alignment Color specification Paper feed position of label paper/black mark paper Type of papers 5 163 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 164
address property (URL of printer to be used for printing). The URL is as follows: http://[ePOS-Print supported TM printer]/cgi-bin/epos/service.cgi?devid=[device ID of printer address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var epos = new epson.CanvasPrint(address - Epson TM-T70-i | ePOS-Print API Users Manual - Page 165
properties. One pixel in an image equals to one printer dot. When an image contains any transparent color, the be white. If an HTML5 Canvas image contains images downloaded from different domains, you cannot print the image. In not supported Canvas is not supported Object type Error Error Error - Epson TM-T70-i | ePOS-Print API Users Manual - Page 166
script> address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var canvas = document.getElementById('myCanvas'); var epos = new epson.CanvasPrint(address); epos.onreceive = function (res) { alert(res.success - Epson TM-T70-i | ePOS-Print API Users Manual - Page 167
in firmware Ver.1.2 and later) Sends the status of the printer specified by the address property using an event. Updates the status at the interval address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var epos = new epson.CanvasPrint(address); epos.oncoveropen - Epson TM-T70-i | ePOS-Print API Users Manual - Page 168
" src="epos-print-3.x.x.js"> address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var epos = new epson.CanvasPrint(address); epos.oncoveropen = function () { alert('coveropen'); }; function startMonitor() { epos.open - Epson TM-T70-i | ePOS-Print API Users Manual - Page 169
://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var epos = new epson.CanvasPrint(address); epos.oncoveropen = function () { alert('coveropen'); }; function recover() { epos.recover(); } //--> reset method Resets the printer. (in firmware Ver.3.0 and later) Syntax reset - Epson TM-T70-i | ePOS-Print API Users Manual - Page 170
is specified. The URL 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]&timeout=[timeout time] The default value is the address specified by the constructor. Example - Epson TM-T70-i | ePOS-Print API Users Manual - Page 171
is read-only. The default value is false. Example - Epson TM-T70-i | ePOS-Print API Users Manual - Page 172
Number Description The interval of upgrading the status is specified in milliseconds. Default value: 3000 (three seconds) Minimum value: 1000 (one second or - Epson TM-T70-i | ePOS-Print API Users Manual - Page 173
from the printer. This is read-only. Default value: 0 Example - Epson TM-T70-i | ePOS-Print API Users Manual - Page 174
printer status. This is read-only. Default value: 0 Example - Epson TM-T70-i | ePOS-Print API Users Manual - Page 175
timeout. Object type Number Description Specifies connection timeout with ePOS-Print supported printer in milliseconds. When the transmission of print document by print method times out, onerror even is generated. Default value: 300000 (5 minutes) Example - Epson TM-T70-i | ePOS-Print API Users Manual - Page 176
two-tone) printing is specified. The default value is HALFTONE_DITHER. Constant HALFTONE_DITHER HALFTONE_ERROR_DIFFUSION address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var canvas = document.getElementById('myCanvas'); var epos = new epson.CanvasPrint(address - Epson TM-T70-i | ePOS-Print API Users Manual - Page 177
-3.x.x.js"> 5 177 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 178
with or without paper cut. Value true/1 false/0 (Default) Decription Cut paper after printing Do not cut paper Example address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var canvas = document.getElementById('myCanvas'); var epos = new epson.CanvasPrint(address - Epson TM-T70-i | ePOS-Print API Users Manual - Page 179
Description It specifies the color mode. Value MODE_MONO (Default) MODE_GRAY16 Decription Monochrome (2-tone) Multiple tones (16 address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var canvas = document.getElementById('myCanvas'); var epos = new epson.CanvasPrint(address - Epson TM-T70-i | ePOS-Print API Users Manual - Page 180
It specifies the position alignment. Value ALIGN_LEFT (Default) ALIGN_CENTER ALIGN_RIGHT Decription Alignment to the left address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var canvas = document.getElementById('myCanvas'); var epos = new epson.CanvasPrint(address - Epson TM-T70-i | ePOS-Print API Users Manual - Page 181
-3.x.x.js"> - Epson TM-T70-i | ePOS-Print API Users Manual - Page 182
mark paper. Value FEED_PEELING FEED_CUTTING FEED_CURRENT_TOF (Default) FEED_NEXT_TOF Decription Feeds to the peeling position address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var canvas = document.getElementById('myCanvas'); var epos = new epson.CanvasPrint(address - Epson TM-T70-i | ePOS-Print API Users Manual - Page 183
PAPER_RECEIPT (Default) PAPER_RECEIPT_BM PAPER_LABEL PAPAER_LABEL_BM Decription Receipt (without black mark) Receipt (with address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var canvas = document.getElementById('myCanvas'); var epos = new epson.CanvasPrint(address - Epson TM-T70-i | ePOS-Print API Users Manual - Page 184
(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 top of next black mark Distance from the top - Epson TM-T70-i | ePOS-Print API Users Manual - Page 185
of label. When a paper has black mark, it is a distance from the beginning of black mark. Paper type Valid value range Description Receipt (without black mark) Receipt (with black mark) 0 -290 to 50 * Setup not necessary 5 Distance from the top of black mark to the top of next black - Epson TM-T70-i | ePOS-Print API Users Manual - Page 186
model. For detail, refer to "Appendix - Printer Specifications". Layout property positions that can be designated for each type of paper sf Top position Cut sf sb sc Receipt sa sf Top position Label Cut Bottom edge of print area Mark sf sa sb se - Epson TM-T70-i | ePOS-Print API Users Manual - Page 187
192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var canvas = document.getElementById('myCanvas'); var epos = new epson.CanvasPrint(address); epos.paper = epos.PAPER_RECEIPT; epos.layout = { width: 580 }; epos.cut = true; epos.print(canvas); //--> To set 58mm receipt (with black mark - Epson TM-T70-i | ePOS-Print API Users Manual - Page 188
-print-3.x.x.js"> - Epson TM-T70-i | ePOS-Print API Users Manual - Page 189
This property registers the callback function and obtains a response message receipt event. Syntax Function (response) Parameter of the callback function The request document contains a syntax error 'DeviceNotFound' The printer with the specified device ID does not exist 'PrintSystemError' - Epson TM-T70-i | ePOS-Print API Users Manual - Page 190
Decription No response from the TM printer Printing is successfully completed Status Not used) Value of battery 0 is shown when the model doesn't have a battery installed. Status of power Value (battery) 0x30XX 0x31XX Description AC adapter is connected AC adapter is not - Epson TM-T70-i | ePOS-Print API Users Manual - Page 191
script> address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var canvas = document.getElementById('myCanvas'); var epos = new epson.CanvasPrint(address); epos.onreceive = function (res) { var success = res - Epson TM-T70-i | ePOS-Print API Users Manual - Page 192
js"> address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer'; var canvas = document.getElementById('myCanvas'); var epos = new epson.CanvasPrint(address); epos.onerror = function (err) { var status = err - Epson TM-T70-i | ePOS-Print API Users Manual - Page 193
" src="epos-print-3.x.x.js"> 5 193 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 194
" src="epos-print-3.x.x.js"> - Epson TM-T70-i | ePOS-Print API Users Manual - Page 195
src="epos-print-3.x.x.js"> onbatterylow - Epson TM-T70-i | ePOS-Print API Users Manual - Page 196
" src="epos-print-3.x.x.js"> onoffline event - Epson TM-T70-i | ePOS-Print API Users Manual - Page 197
src="epos-print-3.x.x.js"> oncoverok event - Epson TM-T70-i | ePOS-Print API Users Manual - Page 198
/javascript" src="epos-print-3.x.x.js"> 198 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 199
="epos-print-3.x.x.js"> onpaperend - Epson TM-T70-i | ePOS-Print API Users Manual - Page 200
epos-print-3.x.x.js"> ondraweropen - Epson TM-T70-i | ePOS-Print API Users Manual - Page 201
-Print Editor Operating Environment ❏ Web Browser Windows Internet Explorer 9 or later Mozilla Firefox 13 or later Google Chrome 19 or later Apple Safari 5.1.7 or later iPad Safari in iOS 5.1 or later 6 201 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 202
Windows Internet Explorer 9, when printing is performed, a ʺSCRIPT5: Access is denied.ʺ error occurs. 1 Open the following URL page using the Web browser. http://[Web server IP address]/editor/index.html 2 ePOS-Print Editor appears. 202 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 203
according to the paper width set to the model. IP address of ePOS-Print supported TM printer Specify the IP address of the printer. Be sure to specify this item. Device ID of the target printer Specify the device ID of the printer. Be sure to specify this item. Print timeout (milliseconds - Epson TM-T70-i | ePOS-Print API Users Manual - Page 204
using the x button located on its right side. Using ePOS-Print XML, ePOS-Print Editor can import XML data stored in the past. For details, refer to Import (p.208). Deletes the edited details. Sets forced transmission mode. 204 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 205
NV logo is added, set the key code. 3 Select the [Preview] tab to check the preview image. When a printer is connected, you can also check the image by printing. For details, refer to Print (p.207). • Logo printing, barcode printing, 2D code printing, ESC command, buzzer sound, drawer kick, and - Epson TM-T70-i | ePOS-Print API Users Manual - Page 206
4 Select the [API] tab. The ePOS-Print API sample code appears. Use it by copying. The ePOS‐Print XML print document is used for importing. If necessary, select the XML tab and save the content of the ePOS‐Print XML print document by copying. 206 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 207
Print Using the printer, print the print document according to the printer's settings to perform test printing.. (For details on the printer settings, refer to Setting (p.203 print document is printed to ePOS-Print supported TM printer. The acquired status is displayed in the Information box. 207 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 208
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 - Page 209
Page Mode Default Area Page Mode Maximum Area Raster image Logo Bar Code Two-Dimensional Code 80mm Ethernet, Wireless LAN 180 dpi x 180 dpi (W x H) 512 dots 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 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 210
black mark paper Drawer Kick-Out Buzzer Paper Layout Settings Forced transmission mode Recovery from an error Reset Command Not supported Cut, Feed cut 80mm Not supported Supported Optional (Pattern A ~ Pattern E, Error, No paper, Stop) Not supported Supported Supported Supported Supported 210 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 211
TM-T88V Interface Resolution Print Width Font Characters in a Line Font A Font B Character Size Font A Font B Character Baseline Font A Font B Default Line Feed Space Color Specification Page Mode Default can be printed, refer to the user's manual that came with the printer. ANK: 42 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 212
Buzzer Paper Layout Settings Forced transmission mode Recovery from an error Reset Command 80mm 58mm Optional (Pattern A ~ Pattern E, Error, No paper, Stop) Not supported Supported Supported Supported Supported 212 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 213
TM-T88IV 80mm 58mm Interface Ethernet, Wireless LAN Resolution 180 dpi x 180 dpi (W x H) Print Width 512 dots 360 dots Font 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 Mode Default Area 512 printer - Epson TM-T70-i | ePOS-Print API Users Manual - Page 214
Specification of the paper feed position for labels / black mark paper Drawer Kick-Out Buzzer Paper Layout Settings Forced transmission mode Recovery from an error Reset Command 80mm Not supported Supported Not supported Not supported Supported Supported Supported Supported 58mm 214 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 215
Appendix TM-T70-i 80mm Interface Ethernet, Wireless LAN Resolution 180 dpi x 180 dpi (W x H) Print Width 512 dots Font 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. Characters in a Line Font A ANK: - Epson TM-T70-i | ePOS-Print API Users Manual - Page 216
Forced transmission mode Recovery from an error Reset Command Supported Supported Supported Supported 80mm 216 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 217
Appendix TM-T70-i (Multi-language model) 80mm Interface Ethernet, Wireless LAN Resolution 203 dpi x 203 dpi (W x H) Print Width 576 dots Font 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. Characters in - Epson TM-T70-i | ePOS-Print API Users Manual - Page 218
Forced transmission mode Recovery from an error Reset Command Supported Supported Supported Supported 80mm 218 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 219
Appendix TM-T70 80mm Interface Ethernet, Wireless LAN Resolution 180 dpi x 180 dpi (W x H) Print Width 512 dots Font 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. Characters in a Line Font A ANK: 42 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 220
Paper Layout Settings Forced transmission mode Recovery from an error Reset Command Not supported Supported Supported Supported Supported 80mm 220 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 221
Appendix TM-T70 (Multi-language model) 80mm 58mm Interface Ethernet, Wireless LAN Resolution 203 dpi x 203 dpi (W x H) Print Width 576 dots 416 dots Font 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. - Epson TM-T70-i | ePOS-Print API Users Manual - Page 222
Forced transmission mode Recovery from an error Reset Command 80mm Supported Supported Supported Supported 58mm 222 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 223
Appendix Receipt Die-cut label Ethernet, Wireless LAN 203 dpi x 203 dpi (W x H) 256 dots (38mm) to 576 dots (80mm) 224 dots (38mm) to 560 dots (80mm) Font A, Font B, Font C For more information about what character codes can be printed, refer to the user's manual that came with the printer - Epson TM-T70-i | ePOS-Print API Users Manual - Page 224
Receipt Die-cut label Page Mode Default Area 576 dots x 738 dots (W x H) 560 dots x 738 dots (W x H) when x 738 dots (W x H) 560 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 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 225
Appendix Receipt Die-cut label Ethernet, Wireless LAN 203 dpi x 203 dpi (W x H) 256 dots (38mm) to 576 dots (80mm) 224 dots (38mm) to 560 dots (80mm) Font A, Font B, Font C For more information about what character codes can be printed, refer to the user's manual that came with the printer - Epson TM-T70-i | ePOS-Print API Users Manual - Page 226
Receipt Die-cut label Page Mode Default Area 576 dots x 738 dots (W x H) 560 dots x 738 dots (W x H) when x 738 dots (W x H) 560 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 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 227
Appendix TM-T90 58mm 60mm 80mm 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 that came with the printer. - Epson TM-T70-i | ePOS-Print API Users Manual - Page 228
1662 dots (W x H) 360 dots x 831 dots (W x H) Not supported 60mm 384 dots x 1662 dots (W x H) 384 dots x 831 dots (W x H) Not supported Cut, Feed cut Supported Supported via Drawer Kick-Out Not supported Supported Supported Supported Supported 80mm 512 dots x 1662 dots (W x H) 512 dots x 831 dots - Epson TM-T70-i | ePOS-Print API Users Manual - Page 229
Default Area Page Mode Maximum Area Receipt 58mm Receipt 60mm Wireless LAN 203 dpi x 203 dpi (W x H) 420 dots 432 dots Font A, Font B, Font C For more information about what character codes can be printed, refer to the user's manual that came with the printer Not supported) Not supported 420 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 230
Kick-Out Buzzer Paper Layout Settings Forced transmission mode Recovery from an error Reset Command Receipt 58mm Supported (Only solid line) Cut, Feed cut Not supported Not supported Support (Pattern1 ~ Pattern 10, Stop) Not supported Supported Supported Supported Supported Receipt 60mm 230 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 231
Page Mode Default Area Receipt 58mm Receipt 60mm Die-cut label Wireless LAN 203 dpi x 203 dpi (W x H) 420 dots 432 dots 160 dots ~ 400 dots Font A, Font B, Font C For more information about what character codes can be printed, refer to the user's manual that came with the printer. ANK: 35 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 232
solid line) Feed cut (Feeds paper to cutting position) Supported Not supported Support (Pattern1 ~ Pattern 10, Stop) Supported Supported Supported Supported Supported Die-cut label 400 dots x 1200 dots (W x H) Paper Layout Paper type Receipt paper (without black mark) width (sf) 290 to 600 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 233
B Default Line Feed Space Color Specification Raster Image Logo Bar Code Receipt 80 mm Wireless LAN 203 dpi x 203 dpi (W x H) 576 dots, 546 dots (42 column mode) 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 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 234
(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) width - Epson TM-T70-i | ePOS-Print API Users Manual - Page 235
Page Mode Default Area Page Mode Maximum Area Page Mode Line Rectangle Paper Cut 58mm 80mm 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 that came with the printer. ANK: 35 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 236
position for labels / black mark paper Drawer Kick-Out Buzzer Paper Layout Settings Forced transmission mode Recovery from an error Reset Command 58mm 80mm Not supported Supported Optional (Pattern A ~ Pattern E, Error, No paper, Stop) Not supported Supported Supported Supported Supported 236 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 237
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 with the printer. ANK: 33 characters, ANK: 30 characters ANK: 25 characters ANK: 40 characters ANK: 36 characters ANK: 4.5 dots x 9 dots - Epson TM-T70-i | ePOS-Print API Users Manual - Page 238
Specification of the paper feed position for labels / black mark paper Drawer Kick-Out Buzzer Paper Layout Settings Forced transmission mode Recovery from an error Reset Command 76mm Not supported Supported Not supported Not supported Not supported Not supported Supported Supported 70mm 58mm 238 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 239
Paper setting function of TM-L90 Appendix Setting Paper Width It sets the paper width with memory switch setting mode. 1 Turn the printer's power off and set the receipt paper. 2 While the cover is opened, turn the power on while pressing the FEED button. 3 After confirming the ERROR LED lights up - Epson TM-T70-i | ePOS-Print API Users Manual - Page 240
Barcode (canvas‐print‐barcode.html) (p.249) The Web pages introduced here are embedded into the sample program. For the details about how to place them, refer to Environment Settings (p.33). 240 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 241
Appendix 2 3 4 1 Open the following URL page using the Web browser. http://[Web server IP address]/canvas/canvas-print-text.html 2 "EPSON ePOS-Print Sample Program" appears. Set items on the right of the page. The the Canvas. In addition, the settings are reset to their default values. 241 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 242
following and click the [Print] button. Item Dscription URL 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]&timeout=[timeout time] Mode Set the color mode (Monochrome, Grayscale - Epson TM-T70-i | ePOS-Print API Users Manual - Page 243
Appendix 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 the Canvas. In addition, the settings are reset to their default values. 243 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 244
following and click the [Print] button. Item Description URL 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]&timeout=[timeout time] Mode Set the color mode (Monochrome, Grayscale - Epson TM-T70-i | ePOS-Print API Users Manual - Page 245
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 drawn in the Canvas. In addition, the settings are reset to their default values. 3 Click the [Draw] button. The image is drawn on - Epson TM-T70-i | ePOS-Print API Users Manual - Page 246
following and click the [Print] button. Item Description URL 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]&timeout=[timeout time] Mode Set the color mode (Monochrome, Grayscale - Epson TM-T70-i | ePOS-Print API Users Manual - Page 247
a handwritten image and perform a test print. 1 Appendix 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 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 248
following and click the [Print] button. Item Description URL 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]&timeout=[timeout time] Mode Set the color mode (Monochrome, Grayscale - Epson TM-T70-i | ePOS-Print API Users Manual - Page 249
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 the Canvas. In addition, the settings are reset to their default values. 249 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 250
following and click the [Print] button. Item Description URL 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]&timeout=[timeout time] Mode Set the color mode (Monochrome, Grayscale - Epson TM-T70-i | ePOS-Print API Users Manual - Page 251
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 Code Price digits. Specifies print data in the price field of label. Clears the - Epson TM-T70-i | ePOS-Print API Users Manual - Page 252
following and click the [Print] button. Item Description URL 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]&timeout=[timeout time] Mode Set the color mode (Monochrome, Grayscale - Epson TM-T70-i | ePOS-Print API Users Manual - Page 253
the IP address of the ePOS-Print supported printer. (Default value: Default value: local_printer) Specifies the timeout time. (default : 60000) Prints coupons in gray scale. (Only for supported models) (Default: No) Specifies paper layout and print. (Only for TM-P60II Peeler) (Default - Epson TM-T70-i | ePOS-Print API Users Manual - Page 254
Print Image Your Number (ePOS-Print API) Your Number: Coupon (ePOS-Print Canvas API) Label* (ePOS-Print API) Name Item A Color R e d Code *2012001* *: Die cut label: mount width 58mm or above Label size: width 54 mm x height 25.4 mm or above 254 - Epson TM-T70-i | ePOS-Print API Users Manual - Page 255
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 - Page 256
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, the value becomes "192.168.192.168".) TM Printer: 192.168.192.168 ) Specifies the - Epson TM-T70-i | ePOS-Print API Users Manual - Page 257
Printing It executes printing. Appendix Run the program according to the following procedure: 1 Select a type of printing from the left screen. There are following printing types. Item Description Queue Ticket Prints queue ticket numbers. This is a sample program using the ePOS-Print API. - Epson TM-T70-i | ePOS-Print API Users Manual - Page 258
258
User’s Manual
ePOS-Print API
M00042109
Rev.J
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.