Epson TM-T70-i Series User manual

Category
Development software
Type
User manual
ePOS-Print XML
User’s Manual
M00048208
Rev.I
Overview
Sample Program
Programming Guide
ePOS-Print XML Reference
ePOS-Print Editor
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 XML.
Describes the ePOS-Print Editor.
Appendix
Describes the specifications for printers used for ePOS-Print.
2
Cautions
No part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or
by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written
permission of Seiko Epson Corporation.
The contents of this document are subject to change without notice. Please contact us for the latest
information.
While every precaution has taken in the preparation of this document, Seiko Epson Corporation assumes
no responsibility for errors or omissions.
Neither is any liability assumed for damages resulting from the use of the information contained herein.
Neither Seiko Epson Corporation nor its affiliates shall be liable to the purchaser of this product or third
parties for damages, losses, costs, or expenses incurred by the purchaser or third parties as a result of:
accident, misuse, or abuse of this product or unauthorized modifications, repairs, or alterations to this
product, or (excluding the U.S.) failure to strictly comply with Seiko Epson Corporation’s operating and
maintenance instructions.
Seiko Epson Corporation shall not be liable against any damages or problems arising from the use of any
options or any consumable products other than those designated as Original EPSON Products or EPSON
Approved Products by Seiko Epson Corporation.
Trademarks
EPSON is a registered trademark of Seiko Epson Corporation.
Exceed Your Vision and ESC/POS are registered trademarks or trademarks of Seiko Epson Corporation.
Microsoft
, Windows
, Visual Studio
, Silverlight
and Internet Explorer
are either registered trademarks or
trademarks of Microsoft Corporation in the United States and other countries.
Android
TM
and Google Chrome
TM
are either registered trademarks or trademarks of Google Inc. in the
United States and other countries.
Apple
, Mac
, Mac OS
and Xcode
are either registered trademarks or trademarks of Apple Inc. in the
United States and other countries.
iOS
is registered trademarks or trademarks of Cisco in the United States and other countries.
Flash
, Flex
TM
are either registered trademarks or trademarks of Adobe Systems Incorporated in the United
States and other countries.
Java
TM
is a registered trademark of Oracle Corporation, its subsidiaries, and affiliates in the U.S. and other
countries.
Eclipse
is a trademark or registered trademark of Eclipse Foundation, Inc.
All other trademarks are the property of their respective owners and used for identification purpose only.
ESC/POS
®
Command System
EPSON has been taking industry’s initiatives with its own POS printer command system (ESC/POS). ESC/POS
has a large number of commands including patented ones. Its high scalability enables users to build versa-
tile POS systems. The system is compatible with all types of EPSON POS printers (excluding the TM-C100) and
displays. Moreover, its flexibility makes it easy to upgrade the future. The functionality and the user-friendli-
ness is valued around the world.
© Seiko Epson Corporation 2012-2014. All rights reserved.
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.
Restriction of Use
When this product is used for applications requiring high reliability/safety such as transportation devices
related to aviation, rail, marine, automotive etc.; disaster prevention devices; various safety devices etc; or
functional/precision devices etc, you should use this product only after giving consideration to including fail-
safes and redundancies into your design to maintain safety and total system reliability. Because this product
was not intended for use in applications requiring extremely high reliability/safety such as aerospace
equipment, main communication equipment, nuclear power control equipment, or medical equipment
related to direct medical care etc, please make your own judgment on this product’s suitability after a full
evaluation.
Provides information that must be observed to avoid damage to your equipment or a
malfunction.
Provides important information and useful tips.
4
About this Manual
Aim of the Manual
This manual is aimed to provide developers with information required for developing and designing
applications using ePOS-Print XML.
In this manual, "ePOS-Print supported printer" is a generic term for the TM-i series and TM printers that support
the ePOS-Print XML.
The TM-i series in this manual is a generic term for the following printers.
Manual Content
The manual is made up of the following sections:
TM-L90-i TM-T20II-i TM-T70-i TM-T82II-i TM-T88V-i
Chapter 1 Overview
Chapter 2 Sample Program
Chapter 3 Programming Guide
Chapter 4 ePOS-Print XML Reference
Chapter 5 ePOS-Print Editor
Appendix Support Information by Printer
5
Contents
For Safety .............................................................................................................................. 3
Key to Symbols ....................................................................................................................................... 3
Restriction of Use.................................................................................................................. 3
About this Manual................................................................................................................ 4
Aim of the Manual ................................................................................................................................. 4
Manual Content .................................................................................................................................... 4
Contents................................................................................................................................ 5
Overview ........................................................................................9
ePOS-Print XML ..................................................................................................................... 9
Features................................................................................................................................................... 9
Function ................................................................................................................................................ 10
ePOS-Print Service ............................................................................................................................... 11
XML Schemas ....................................................................................................................................... 11
Namespace ......................................................................................................................................... 11
Print Image............................................................................................................................................ 11
Operating Environment ..................................................................................................... 12
Application Environment .................................................................................................................... 12
Device................................................................................................................................................... 12
Development Environment................................................................................................................. 12
ePOS-Print Supported Printer .............................................................................................................. 13
TM-i Printers That Can Be Controlled ................................................................................................. 14
Provided Article.................................................................................................................. 15
Package ............................................................................................................................................... 15
Manual.................................................................................................................................................. 15
Sample Program .................................................................................................................................. 15
Download ............................................................................................................................................. 15
Version Information............................................................................................................ 16
Restrictions.......................................................................................................................... 17
Sample Program..........................................................................19
Overview............................................................................................................................. 19
Sample Program Overview................................................................................................................. 19
Environment........................................................................................................................ 20
Operating Environment ..................................................................................................... 21
Environment Settings.......................................................................................................... 22
Device ID Settings ................................................................................................................................ 23
Editing the Sample Program............................................................................................................... 25
Registering the Sample Program ....................................................................................................... 26
6
Environment Settings in Other Execution Environments.................................................. 28
HTML5 (To Build a Web Server on Windows/Linux)............................................................................28
Java .......................................................................................................................................................29
Windows (Visual Basic .NET) ................................................................................................................30
Silverlight ................................................................................................................................................31
Flash .......................................................................................................................................................32
Android..................................................................................................................................................33
Windows CE ..........................................................................................................................................35
iOS ..........................................................................................................................................................39
Windows Store Apps.............................................................................................................................40
Programming Guide....................................................................41
How to Use XML Schemas ................................................................................................. 41
Visual Studio ..........................................................................................................................................41
Eclipse....................................................................................................................................................45
ePOS-Print XML ................................................................................................................... 46
Print Mode .............................................................................................................................................46
Programming Flow................................................................................................................................46
Print Document Creation ....................................................................................................................47
Transmission of Print Document...........................................................................................................51
Reception of Print Result......................................................................................................................53
Checking the Printer Status .................................................................................................................55
Printing in Other Environments .......................................................................................... 56
Microsoft Silverlight ...............................................................................................................................56
Adobe Flex............................................................................................................................................57
ePOS-Print XML Reference..........................................................59
Element List ......................................................................................................................... 59
Root Element....................................................................................................................... 60
<epos-print>..........................................................................................................................................60
<response>............................................................................................................................................61
Element ............................................................................................................................... 64
<text> .....................................................................................................................................................64
<feed> ...................................................................................................................................................70
<image> ................................................................................................................................................72
<logo>....................................................................................................................................................74
<barcode> ............................................................................................................................................75
<symbol> ...............................................................................................................................................79
<hline> ...................................................................................................................................................84
<vline-begin> ........................................................................................................................................85
<vline-end> ...........................................................................................................................................86
<page>..................................................................................................................................................87
<area> ...................................................................................................................................................88
<direction> ............................................................................................................................................89
<position> ..............................................................................................................................................90
<line>......................................................................................................................................................91
<rectangle> ..........................................................................................................................................92
<cut>......................................................................................................................................................93
7
<pulse>.................................................................................................................................................. 94
<sound> ................................................................................................................................................ 95
<command> ........................................................................................................................................ 97
<layout> ................................................................................................................................................ 98
<recovery>.......................................................................................................................................... 102
<reset>................................................................................................................................................. 103
ePOS-Print Editor ........................................................................105
ePOS-Print Editor Operating Environment...................................................................... 105
Environment Setting Procedure ...................................................................................... 105
Setting ............................................................................................................................... 107
Creating a Sample Code................................................................................................ 108
Print ...................................................................................................................................................... 111
Import.................................................................................................................................................. 112
Encoding Graphic Data .................................................................................................. 113
How to Use ePOS-Print Editor ............................................................................................................ 113
Appendix....................................................................................115
Support Information by Printer ........................................................................................ 115
TM-L90-i/ TM-L90 ................................................................................................................................. 115
TM-T20II-i/ TM-T20II .............................................................................................................................. 118
TM-T70-i/ TM-T70.................................................................................................................................. 120
TM-T70-i/ TM-T70 (Multi-language model) ....................................................................................... 122
TM-T82II-i .............................................................................................................................................. 124
TM-T88V-i/ TM-T88V............................................................................................................................. 126
TM-P20 ................................................................................................................................................. 128
TM-P60II................................................................................................................................................ 130
TM-P60II with Peeler ........................................................................................................................... 132
TM-P80 ................................................................................................................................................. 134
TM-T20.................................................................................................................................................. 136
TM-T70II ................................................................................................................................................ 138
TM-T88IV .............................................................................................................................................. 140
TM-T90.................................................................................................................................................. 142
TM-U220............................................................................................................................................... 144
8
9
Chapter 1 Overview
1
Overview
This chapter describes the features of and the specifications for ePOS-Print XML.
ePOS-Print XML
ePOS-Print XML is a POS printer command system that defines the major features of the ESC/POS command
system using XML.
ePOS-Print XML allows printing to ePOS-Print supported TM printer from applications in an environment or on
OS where HTTP communication is possible. ePOS-Print XML embedded into native applications on smart
phones and tablet terminals makes it possible to print from such devices.
When a print document is sent from a host to an ePOS-Print supported TM printer using SOAP/HTTP, the
ePOS-Print supported TM printer performs printing and returns a response document.
Features
Allows printing from SOAP/HTTP-supported devices. Not OS-dependent.
Installation of drivers and plug-ins is not required.
No PCs or servers are required for printing.
In case of TM-i series, it can print to other TM printer via TM intelligent printer.
Automatically checks the status of the TM printer before printing. There is no need for checking the status
of the TM printer in advance.
Does not respond to a printer's function to automatically send its status (AutoStatusBack). Instead, capa-
ble of sending an empty print command and checking the status of the TM printer based on the result of
command transmission.
To change the printer settings, utility programs dedicated to each printer or other utility programs should
be used.
Capable of obtaining the printer status even when the printer is offline.
Application
(Response)
(Request)
ePOS-Print supported TM printer
ePOS-Print Service
10
Function
The installed functions vary depending on the model. For details, refer to Support Information by
Printer (p.115).
Item Description
Common Alignment, Rotation, Line Spacing, Page mode
Character ANK
Character style Font, Smoothing, Double-width, Double-height , Horizontal scale,
Vertical scale, White/Black Reverse, Underline, Emphasized Color,
Print position
Paper feed By Unit, By Line
Raster image Mono, Multiple-tone (for TM-T88V-i and TM-T88V only)
NV logo Mono, Multiple-tone (for TM-T88V-i and TM-T88V only)
Barcode UPC-A, UPC-E, EAN13(JAN13), EAN8(JAN13), CODE39,
ITF,CODABAR(NW-7), CODE93, CODE128, GS1-128, GS1 DataBar
2D-Code PDF417, QR Code, MaxiCode, GS1 DataBar, Aztec Code, DataMatrix
Line 6 types
Paper cut No Feed, Feed Cut, Cut Reservation
Drawer Kick-out Connector, ON Time
Buzzer 7 or 10 Pattern, Repeat
Layout Paper layout setting
Command ESC/POS insertion
Response Print result, Error code, Status
Recovery from an error Recovery from errors that can be recovered from, Buffer clear
Reset Printer reset
11
Chapter 1 Overview
1
ePOS-Print Service
ePOS-Print Service is an XML Web service for printing using ePOS-Print XML. It is installed in ePOS-Print
supported TM printer.
When a print document is sent from a host to ePOS-Print Service using SOAP/HTTP, ePOS-Print Service
performs printing and returns a response document.
Specification
XML Schemas
The ePOS-Print XML syntax is defined by W3C XML Schemas.
XML schemas help applications strictly validate XML documents using the XML API of the operating
environment. In addition, application developers can efficiently create XML documents using the XML
document editing support function of the integrated development environment.
File name : epos-print-3.x.x.xsd
Namespace
The ePOS-Print XML namespaces and namespace identifiers used in this document are shown as follows:
Print Image
Item Description
Request message A SOAP message is sent against a HTTP POST method request.
One print document is specified in the SOAP body.
Response message A SOAP message is returned against a HTTP POST method response.
A response document is put in the SOAP body.
Identifier Namespace
(Default) http://www.epson-pos.com/schemas/2011/03/epos-print
tns http://www.epson-pos.com/schemas/2011/03/epos-print
xs http://www.w3.org/2001/XMLSchema
Print text
Print raster image
Print barcode: EAN13
Paper feed: 24 dots
12
Operating Environment
Application Environment
An environment in which HTTP communication is possible and XML documents can be handled
OS (Example: iOS/ Android/ Windows CE/ Windows/ Linux/ MacOS, etc.)
HTML5-supported browser, Flex, Silverlight
Java, .NET Framework
Device
A device capable of HTTP communication by connecting to the network.
(Example: smart phones, tablet terminals, computers, etc.)
Development Environment
An editor program capable of editing XML documents.
(Example: Visual Studio/Eclipse, etc.)
13
Chapter 1 Overview
1
ePOS-Print Supported Printer
TM-i Series
TM-L90-i
TM-T20II-i
TM-T70-i (TM-i firmware Ver.4 or later)
TM-T70-i (TM-i firmware Ver.3.x or earlier)
TM-T82II-i
TM-T88V-i (TM-i firmware Ver.4 or later)
TM-T88V-i (TM-i firmware Ver.3.x or earlier)
TM Printer
Following printers with the UB-R04 embedded
TM-T88V
TM-T88IV
TM-T70
TM-T70II
TM-T90
TM-L90
TM-U220
The following TM printers (Wi-Fi model)
TM-P20
TM-P60II
TM-P60II with Peeler
TM-P80
For differences in specifications according to printer type, refer to Support Information by
Printer (p.115).
For TM printers, note the following points:
ePOS-Print in the TM printer must be turned to "Enable". It is set to "Disable" by factory
default. You cannot control ePOS-Print if it is disabled. For details, refer to Support
Information by Printer (p.115).
Unable to control other TM printer.
14
TM-i Printers That Can Be Controlled
The following product's printers of TM-i.
TM-T70-i (TM-i firmware Ver.4 or later)
TM-T88V-i (TM-i firmware Ver.4 or later)
TM-T82II-i
TM-T20II-i
Following printers with the UB-E02, UB-E03, UB-R03, or UB-R04 embedded.
TM-L90
TM-T20
TM-T20II
TM-T70
TM-T70II
TM-T82II
TM-T88IV
TM-T88V
TM-T90
TM-U220
The following TM printers (Wi-Fi model)
TM-P20
TM-P60II
TM-P60II Peeler
TM-P80
TM-T20II-i cannot control other TM printers.
15
Chapter 1 Overview
1
Provided Article
Package
Manual
ePOS-Print XML User’s Manual (This Document)
TM-L90-i Technical Reference Guide
TM-T20II-i Technical Reference Guide
TM-T70-i (TM-i firmware Ver.4 or later) Technical Reference Guide
TM-T70-i (TM-i firmware Ver.3.x or earlier) Technical Reference Guide
TM-T82II-i Technical Reference Guide
TM-T88V-i (TM-i firmware Ver.4 or later) Technical Reference Guide
TM-T88V-i (TM-i firmware Ver.3.x or earlier) Technical Reference Guide
TM-P20 Technical Reference Guide
TM-P60II Technical Reference Guide
TM-P80 Technical Reference Guide
UB-R04 Technical Reference Guide
Each TM printer Technical Reference Guide
Sample Program
ePOS-Print_Sample_XML_V3.x.xE.zip
Contains the following:
epos-print-3.x.x.xsd (ePOS-Print XML schemas)
Sample program
(HTML5/ Java/ Windows/ Silverlight/ Flash/Android/ iOS/ Windows CE)
editor/index.html (ePOS-Print Editor)]
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
File name Description
ePOS-Print_Sample_XML_Vx.x.xE.zip This is a sample program file.
ePOS-Print_XML_um_en_revx.pdf This Document.
16
Version Information
Version of ePOS-Print Service installed on a printer can be confirmed as follows.
Model Confirmation Method ePOS-Print Version
<TM-i series>
TM-L90-i
TM-T20II-i
TM-T70-i
TM-T82II-i
TM-T88V-i
Confirm in the TM-i firmware.
Displayed on EPSON TMNet WebConfig
Printed on the status sheet
<Example>
2.0xWW: Ver.2.0
3.0xWW: Ver.3.0
<TM Printer(Wireless LAN Model)>
TM-P20
TM-P60II
TM-P60II with Peeler
TM-P80
<TM Printer
(with the UB-R04 embedded)>
TM-T88V
TM-T88IV
TM-T70
TM-T70II
TM-T90
TM-L90
TM-U220
Confirm in the printer firmware.
Displayed on EpsonNet Config
(Web version)
<Example>
3.0: Ver.3.0
If API of newly added ePOS-Print Builder is used on unsupported models, schema error is
returned and printing cannot be done. The latest version of ePOS-Print API JavaScript is
recommended regardless of ePOS-Print Service version installed on a printer. ePOS-Print API
JavaScript. is bundled with the sample program.
For details, refer to "Provided Article" on page 15.
17
Chapter 1 Overview
1
Restrictions
The drawer and the buzzer cannot be used together.
The buzzer function cannot be used if the printer is not provided with the buzzer.
Internet Explorer 9 does not allow XML data to be sent to the printer from security-protected Web pages
(HTTPS).
When multiple tones are set for raster images, intermitting printing may occur because the amount of
data to print increases and white stripes may appear in the print result.
The scan quality of barcodes/2D-codes printed as multiple-tone raster images cannot be guaranteed.
Print them as two-tone images.
If printing was cancelled, perform the following settings to clear the data left in the printer.
(in ePOS-Print Ver.3.0 and later)
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)
18
19
Chapter 2 Sample Program
2
Sample Program
This chapter describes how to set an environment before starting to use ePOS-Print XML and how to use the
sample program.
Overview
Sample Program Overview
The following screen appears when the sample program starts. Click the [Print] button to execute.
Sample program execution result
A response message from ePOS-Print supported TM printer
In this chapter, descriptions are made mainly based on a HTML5 environment. For an
environment other than the above, read such descriptions in ways that suit the relevant
environment.
Print text
Application Environment
Print barcode: EAN13
Paper feed: 24 dots
Paper cut
20
Environment
This section describes the following system: the device's HTML 5-supported browser accesses the sample
program uploaded to Web server and then printing is performed. For use in other environments, see
"Environment Settings in Other Execution Environments" on page 28.
The following environments are provided for the sample program:
Environment File Name
HTML5-supported Web browser HtmlApplication1.zip
Java JavaProject1.zip
Windows (Visual Basic .NET) WindowsApplication1.zip
Silverlight
SilverlightApplication1.zip, crossdomain.zip
Flash
FlexProject1.zip, crossdomain.zip
Android
AndroidProject1.zip
iOS
iOSDeviceProject1.zip
Windows CE
SmartDeviceProject1.zip
Windows Store Apps
App1.zip
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146

Epson TM-T70-i Series User manual

Category
Development software
Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI