Epson TM-T20II-i ePOS-Print XML Users Manual

Epson TM-T20II-i Manual

Epson TM-T20II-i manual content summary:

  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 1
    ePOS-Print XML User's Manual Overview Describes the features and development environment. Sample Program (XML Print Service) Describes how to use the sample program and how to build a system. Programming Guide (XML Print Service) Describes how to write programs in Web application development. XML
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 2
    Epson Corporation's operating and maintenance instructions. • Seiko Epson Corporation shall not be liable against any damages or problems and other countries. IOS is registered trademarks POS® Proprietary Command System Epson took the initiative by introducing ESC/POS, a proprietary POS printer
  • Epson TM-T20II-i | ePOS-Print XML 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-T20II-i | ePOS-Print XML Users Manual - Page 4
    following printers. • TM-L90-i • TM-T20II-i • TM-T70-i • TM-T82II-i • TM-T83II-i • TM-T88V-i • TM-U220-i Manual Content The manual is made up of the following sections: Chapter 1 Overview Chapter 2 Sample Program (XML Print Service) Chapter 3 Programming Guide (XML Print Service) Chapter
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 5
    Key to Symbols ...3 ■ Restriction of Use ...3 ■ About this Manual ...4 Aim of the Manual ...4 Manual Content ...4 ■ Contents...5 Overview 9 ■ Overview...9 ■ XML Print Service...9 Features...9 Interface Type ...10 WSDL(Web Services Description Language 11 Print Image...11 Operating Environment...12
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 6
    /Linux 26 Java ...27 Windows (Visual Basic .NET) ...28 Silverlight ...29 Flash ...30 Android ...31 Windows CE ...33 iOS ...37 Windows Store Apps...38 Programming Guide (XML Print Service 39 ■ How to Use XML Schemas 39 Visual Studio ...39 Eclipse ...42 ■ ePOS-Print XML ...43 Print Mode ...43
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 7
    ■ Support Information by Printer 106 TM-H6000IV-DT ...106 TM-L90-i/ TM-L90 ...108 TM-P20 ...110 TM-P60II/ TM-P60II with Peeler ...112 TM-P80 ...114 TM-T20...116 TM-T20II-i/ TM-T20II ...117 TM-T70-i/ TM-T70...119 TM-T70-i/ TM-T70 (Multi-language model 121 TM-T70II-DT/ TM-T70II ...123 TM-T82II-i/ TM
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 8
    8
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 9
    -Print. Overview ePOS-Print is an Epson's unique printing function that uses XML and Web Service. This function creates request messages in -Print supported TM printer ePOS-Print Service Features ❏ Allows printing from SOAP/HTTP-supported devices. Not OS-dependent. ❏ Installation of drivers and
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 10
    document. Job ID can be specified. (ePOS-Print Service Ver.4.1 or later versions supported.) Specification Item End point address Request message Response message Description http://[IP address of the ePOS-Print supported TM printer]/cgi-bin/epos/ service.cgi A SOAP message is sent against a HTTP
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 11
    for FileMaker This interface uses the HTTP POST function of FileMaker for printing. (ePOS-Print Service Ver.4.1 or later versions supported.) Specification Item Description End point address httppost://[IP address of the ePOS-Print supported TM printer]/cgi-bin/epos/ service.cgi?printdata=[SOAP
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 12
    -Print Supported Printer For differences in functions according to printer type, refer to Support Information by Printer (p.106). TM-DT Series ❏ TM-H6000IV-DT (Receipt printer only) ❏ TM-T70II-DT ❏ TM-T88V-DT TM-i Series ❏ TM-L90-i ❏ TM-T20II-i ❏ TM-T70-i ❏ TM-T82II-i ❏ TM-T83II-i ❏ TM-T88V-i ❏ TM
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 13
    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.106). Printer Functions Depending on the printer type and TM-DT software/TM-i firmware version being used, the functions you can use with
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 14
    Service Versions The ePOS-Print Service version is supported as follows. ePOS-Print Service TM-DT Software 1.2 - 2.0 - 2.1 - 2.2 2.0x 3.0 2.2x, 2.5x 3.2 - 4.1 3.0x TM-i Firmware 1.2x 2.0x 2.1x 3.0x, 3.1x, 4.0x 4.1x, 4.3x EPSON ePOS-Print Service version installed on a printer. XML
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 15
    document editing support function of the integrated development environment. 1 File name : epos-print-4.x.x.xsd Namespace The ePOS-Print XML namespaces and namespace identifiers used in this document are shown as follows: Identifier (Default) tns xs Namespace http://www.epson-pos.com/schemas
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 16
    installed functions vary depending on the model. For details, refer to Support Information by Printer (p.106). Item Common Character Character style Paper feed Raster image NV logo Barcode 2D-Code Line Paper or 10 Pattern, Repeat Paper layout setting ESC/POS insertion Print result, Error code,
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 17
    Guide ❏ Each TM printer Technical Reference Guide Sample Program ePOS-Print_Sample_XML_V4.x.xE.zip Contains the following: ❏ epos-print-4.x.x.wsdl (ePOS-Print XML Print Service) ❏ epos-print-4.x.x.xsd (ePOS-Print XML schemas) ❏ Sample program (HTML5/ Java/ Windows/ Silverlight/ Flash/Android/ iOS
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 18
    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 18
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 19
    for printing print data that is created with XML Reference from a printer by using XML Print Service. In this chapter, descriptions are made mainly based on a text Print barcode: EAN13 Paper feed: 24 dots Application Environment Paper cut A response message from ePOS-Print supported TM printer 19
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 20
    Environments" on page 26. The following environments are provided for the sample program: Environment HTML5-supported Web browser Java Windows (Visual Basic .NET) Silverlight Flash Android iOS Windows CE Windows Store Apps File Name HtmlApplication1.zip JavaProject1.zip WindowsApplication1.zip
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 21
    Router [192.168.192.1] *: When DHCP is used for the terminal ❏ Web server (Used for HTML5, Silverlight, and Flash sample programs.) ❏ Wireless LAN Router ❏ ePOS-Print supported TM printer (1 set) ❏ Terminal with an HTML5-supported Web browser ePOS-Print supported TM printer [192.168.192.20] 21
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 22
    Supported printer Configuration is done from a Web browser. For details, refer to the Technical Reference Guide for the printer. 3. 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
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 23
    settings.  For wireless LAN interface (UB-R04) Item ePOS-Print Device ID Printing Method Character Code Table Setting Set to Enable. (Default: Disabled) Align with the system settings. (Default: local_printer) Set in line with the connected TM printer. (For details, see "Support Information by
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 24
     For mobile printer (Wireless LAN Model) Item ePOS-Print Device ID Setting Set to Enable. (Default: Disabled) Align with the system settings. (Default: local_printer) 4 Click [Send]. 5 Turn the TM printer's power off and on again. 24
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 25
    code portion "// URL of ePOS-Print supported TM printer" in the source file to the IP address of ePOS-Print supported TM printer and the save the source file. // URL of ePOS-Print supported TM printer var address = 'http://192.168.192.168/cgi-bin/epos/ service.cgi?devid=local_printer&timeout=10000
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 26
    editing Description Microsoft Visual Studio 2010 IIS (Internet Information Services) or Apache HtmlApplication1.zip Edit the IP address of ePOS-Print supported TM printer to suit the network environment.  TM-DT:  Wireless LAN: Automatically acquired by DHCP (192.168.192.168
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 27
    IP address of ePOS-Print supported TM printer to suit the network environment. Source editing  TM-DT:  Wireless TM Printer: 192.168.192.168 Environment Setting Procedure 1 Obtain Java SE 6 and install that program. 2 Configure your computer and ePOS-Print supported TM printer
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 28
    program file name Source editing Description Microsoft Visual Studio 2010 - WindowsApplication1.zip Edit the IP address of ePOS-Print supported TM printer to suit the network environment.  TM-DT:  Wireless LAN: Automatically acquired by DHCP (192.168.192.168 if it cannot be
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 29
    Visual Studio 2010 Sample program file name SilverlightApplication1.zip, crossdomain.zip Edit the IP address of ePOS-Print supported TM printer to suit the network environment. Source editing  TM-DT:  Wireless LAN: Automatically acquired by DHCP (192.168.192.168 if it cannot
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 30
    .zip Edit the IP address of ePOS-Print supported TM printer to suit the network environment.  TM-DT:  Wireless LAN: Automatically acquired Guide for each printer. 1 Download Adobe Flash Builder from Flash Platform. 2 Configure your computer and ePOS-Print supported TM printer
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 31
    Development Tools) Plug-in for Eclipse Sample program file name AndroidProject1.zip Edit the IP address of ePOS-Print supported TM printer to suit the network environment. Source editing  TM-DT:  Wireless LAN: Automatically acquired by DHCP (192.168.192.168 if it cannot be
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 32
    create a new entry. Installing ADT Plug-in 1 Start Eclipse. 2 From the menu items, select as [Help]-[Install New Software]. 3 The "Install" screen appears. Click that a path to Android SDK has not been set, there is no problem. 4 Click the [Browse] button. 5 Select the [Android - Android SDK]
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 33
    Compact 7  Virtual PC 2007 Sample program file name SmartDeviceProject1.zip Edit the IP address of ePOS-Print supported TM printer to suit the network environment.  TM-DT: Source editing  Wireless LAN: Automatically acquired by DHCP (192.168.192.168 if it cannot be
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 34
    8 The Device Emulator starts. In the Device Emulator, select as [File]-[Configure...][Network]. 9 The "Emulator Properties" dialog box appears. Select [Network]. Tick "Enable NE2000 PCMCIA network adapter and bind to:" and select the computer's network card. Click the [OK] button. 34
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 35
    Chapter 2 Sample Program (XML Print Service) 10In the Device Emulator, select as [Start]-[Settings]. 11In the Device Emulator, select as [Settings]-[Connections]-[Network Cards]. 2 35
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 36
    12In the Device Emulator, select [The Internet] and then select the same network card as that of your computer. 13Set the IP address and click [OK] at the top right of the screen. 14A confirmation dialog box appears. Click [Yes]. 15Restart the Device Emulator. 36
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 37
    .6.8 Development environment Apple Xcode 3.2.6 SDK iOS SDK 4.3 Sample program file name iOSDeviceProject1.zip Edit the IP address of ePOS-Print supported TM printer to suit the network environment. Source editing  TM-DT:  Wireless LAN: Automatically acquired by DHCP (192
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 38
    file name Source editing Description Microsoft Visual Studio 2012 Windows 8 App1.zip Edit the IP address of ePOS-Print supported TM printer to suit the network environment.  TM-DT:  Wireless LAN: Automatically acquired by DHCP (192.168.192.168 if it cannot be automatically
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 39
    Chapter 3 Programming Guide (XML Print Service) Programming Guide (XML Print Service) This chapter describes how to write programs in the application development using ePOS-Print. How to Use XML Schemas The XML document editing support function in the integrated development environment helps
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 40
    3 Set the XML schema "epos-print-4.x.x.xsd" to the XML file. [XML]-[Schemas...]-[Add...] Editing Example For details on elements, refer to XML Reference (p.61). 1 Enter the character "
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 41
    Chapter 3 Programming Guide (XML Print Service) 4 Select "text" from the candidates and enter an empty space. Then, attribute candidates appear. 5 Select "lang" from the candidates. Then, attribute value candidates appear. 3 6 Select "
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 42
    ="UTF-8"?> Hello For details
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 43
    3 Programming Guide (XML Print Service) ePOS-Print font size and the height of images, barcodes, etc. This mode is suitable for the type of printing such as printing receipts that requires the paper length to is sent after checking the printer status. For the above procedure, refer to Checking the
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 44
    >TITLE function createDocument() { //Start print document creation. var request = ''; //Create a print document request += ''; request += '
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 45
    Chapter 3 Programming Guide (XML Print Service) To create a text print document: Create a text print createDocument() { //Start print document creation. var request = ''; //Create a print document //
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 46
    the epos-print root element. Set the image size using an attribute of the image element. For = ''; method of printing graphics registered in the NV memory of the printer. For details, refer to (p.76). • For details
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 47
    Guide (XML Print Service) To create a page mode print document: Create a graphic print document using the image element in the epos-print root element. Set the image size document creation. var request = ''; //Create a print
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 48
    For the details about the printer end point address, refer to Printer End Point Address (p.50). Refer to the following program. ePOS-Print supported TM printer checks the status of the TM printer used for printing and then start printing operation. To Call SOAP/HTTP Interface Refer to the following
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 49
    Chapter 3 Programming Guide (XML Print Service) To Call SOAP/HTTP Interface (WSDL supported) Refer to the parameter var param = ''; param the end point address var url = 'http://192.168.192.168/cgi-bin/epos/service.cgi'; 3
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 50
    time] To Call SOAP/HTTP Interface (WSDL supported) (p.10) http://[IP address]/cgi-bin/epos/service.cgi Items to specify IP address Device ID Timeout period Description Specify either the IP address or the domain name of ePOS-Print supported TM printer. Specifies the printer to be used for printing
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 51
    Guide (XML Print Service) Reception of Print Result Set a callback function using the response root element (p. 63) to receive print results. The following information is obtained: ❏ Print result ❏ Error code ❏ Printer status ❏ Printer's battery status The printer ="http://www.epson-pos.com/schemas/
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 52
    function. // Set a response receipt callback function xhr.onreadystatechange = printer status var asb = res[0].getAttribute('status'); if (asb & 0x00000001) { msg += ' No printer \n'; } if (asb & 0x00000040) { msg += ' Paper feed switch is feeding paper\n'; } if (asb & 0x00000100) { msg += '
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 53
    Chapter 3 Programming Guide (XML Print Service) Checking the Printer Status To check the printer status without printing, send empty print data. Refer to the following program. //Set the end point address var url = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer &timeout=
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 54
    request from the application by specifying the print job ID. (ePOS-Print Service Ver.4.1 or later versions) Job ID : ABC123 Print data Job ID Hello, World!
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 55
    Programming Guide (XML Print Service) Using the Spooler Function The spooler function is available in TM-DT Software Ver.3.0 or later/TM-i Firmware message (Print data, printjobid="ABC123") 1.1 : send() Printer Forwarding printer 1.3 : Response message (printjobid="ABC123", Execution result)
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 56
    ABC123 • The TM intelligent printer will issue a print job ID if the print job ID is not
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 57
    Chapter 3 Programming Guide (XML Print Service) Acquiring the Print Job Status Request ABC123
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 58
    (p.58) • Java (p.60) .NET Framework Item Tool Command Description ServiceModel Metadata Utility Tool (Svcutil.exe) > svcutil.exe epos-print-4.x.x.wsdl epos-print-4.x.x.xsd For details copy the element.  Change the end point address in accordance with the printer. 58
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 59
    Chapter 3 Programming Guide (XML Print Service) 6 Create and execute a program to call XML Print Service. Editing example (File to be edited: Program.cs) namespace ConsoleApplication1 { class Program { static void Main(string[] args) { ePOSPrintPortTypeClient client = new ePOSPrintPortTypeClient
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 60
    Java Item Tool Command Description JAX-WS wsimport tool > wsimport epos-print-4.1.0.wsdl For details about the JAX-WS wsimport tool, refer to following Web site (as of October, 2014): http://docs.oracle.com/javase/8/docs/technotes/tools/unix/wsimport.html http://docs.oracle.com/javase/8/docs/
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 61
    *1 Setting of paper layout ● - p. 100 *2 Recovers from an error ● - p. 104 *2 Resets the printer ● - p. 105 Response ● ● p. 63 ● : Available, - : Not available *1 ePOS-Print Service Ver.2.2 or later versions supported *2 ePOS-Print Service Ver.2.3 or
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 62
    in ePOS-Print Service Ver.3.0 and later) If you enable forced transmission mode, print commands are forcibly sent to the printer. Attribute value ="http://www.epson-pos.com/schemas/2011/03/epos-print" /> Drawer kick-out when offline (paper end)
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 63
    timing varies depending on the printer status. • When the power is turned ON: Time set to the TM printer • When the power is paper in roll paper end sensor An unrecoverable error occurred The request document contains a syntax error The printer Service Ver.4.1 or later versions supported 63
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 64
    No paper in label peeling sensor (only for applicable devices) The spooler has stopped * ePOS-Print Service Ver.4.1 or later versions supported  battery : (data type xs:unsignedInt) The battery status of the printer is obtained. 0 is indicated when the model doesn't have a battery installed
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 65
    Chapter 4 XML Reference Example When paper runs out while printing and printing fails. Example of printing failure when battery runs out during printing <
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 66
    text, to print content other than text content, execute line feed or paper feed. • In page mode, characters are laid out in the current print position with the reference point being the character baseline dot (Support Information by Printer (p.106)). Entity Reference To write symbols required for
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 67
    the target language. Attribute value Description en(default) English(ANK) de German (ANK) fr Service Ver.2.2 or later versions supported • Characters not installed in a printer cannot be printed. • For printable character code, refer to the detailed instruction manual of your printer
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 68
    default) font_b font_c font_d * font_e * Font A Font B Font C Font D Font E Description * ePOS-Print Service Ver.3.2 or later versions supported Attribute value Integer from 1 to 8 (default : 1) Description Horizontal scale When the double-sized width attribute and the width attribute are
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 69
    4 XML Reference  height : (data type tns:text-scale) Specifies the vertical scale. Attribute value Integer from 1 to 8 (default : 1) Vertical scale Description When the double-sized height attribute and the height attribute are specified in one element at the same time, priority is given to
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 70
     y: (data type xs:unsignedShort Default : 21) Specifies the vertical print start position of the text in dots. (in ePOS-Print Service Ver.3.0 and later)  In page mode, the barcode and symbol elements. (data type xs:unsignedShort Default : 30) Specifies the per-line paper feed amount in dots. 70
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 71
    the following settings: Item Language Smoothing Align Setting English Enable Center Align Font Double-sizing Underline Font A Double width and height characters Enable
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 72
    amount in lines.  linespc : (data type xs:unsignedByte, Default : 30) Specifies the per-line paper feed amount in dots.  pos : (data type tns:feed-pos) It specifies paper feed position of label paper/black mark paper (in ePOS-Print Service Ver.2.1 and later). Attribute value peeling cutting
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 73
    next_tof" /> 0003 To print tickets with black mark paper 0001
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 74
    printing is not supported in Page Mode. Multiple tone graphic printing is supported in Standard Mode specify a multiple of 8 that does not exceed the printer paper width for the width attribute value. • To create Attribute value none color_1 (default) color_2 color_3 color_4 Description Characters
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 75
    ) Specifies the print position. Attribute value left (default) center right Description Alignment to the left Alignment to , data type tns:image-mode) Specifies the color mode. Attribute value mono (default) gray16 Description Monochrome (two-tone) Multiple tones (16-tone) Example To print
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 76
    printer. • Using model-dedicated utility or logo registration utility (TMFLogo), register a logo in the printer in advance. • Multiple tone printing is not supported in Page Mode. Multiple tone graphic printing is supported left (default) center epson-pos.com/schemas/2011/03/epos-print">
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 77
    xs:string) • A barcode will not be printed if settings not compliant with the barcode standard are made, or if the barcode becomes larger than the printer's print area. And an error response will not be returned, either. • In page mode, a barcode is laid out in the current print position with the
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 78
    Barcode type CODE128 GS1-128 GS1 DataBar  Omnidirectional GS1 DataBar Truncated GS1 DataBar Limited GS1 DataBar Expanded Barcode data specification procedure Specify a start character (CODE A, CODE B, CODE C). A stop character is automatically added. A check digit is automatically calculated
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 79
    bar code Below the bar code Both above and below the bar code  font : (data type tns:font) Specifies the HRI font. Attribute value font_a (default) font_b font_c font_d * font_e * Font A Font B Font C Font D Font E Description * ePOS-Print Service Ver.3.2 or later versions supported 79
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 80
    Specifies the rotate printing. Attribute value true or 1 false or 0 (default) Description Specifies rotated printing of text. Cancels rotated printing of text. elements. Example To print barcodes: epos-print xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print">
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 81
    the 2D-code standard are made, or if the 2D-code becomes larger than the printer's print area. And an error response will not be returned, either. • In GS:(\x1d) ISO country code (1- to 3-digit number) GS:(\x1d) Service class code (1- to 3-digit number) GS1 DataBar Stacked GS1 DataBar Stacked
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 82
    -Range Mode Aztec Code Compact Mode DataMatrix ECC200 square DataMatrix ECC200 rectangle, 8 lines DataMatrix ECC200 rectangle, 12 lines DataMatrix ECC200 rectangle, 16 lines *1 ePOS-Print Service Ver.2.2 or later versions supported *2 ePOS-Print Service Ver.4.1 or later versions
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 83
    Q QR Code error correction level H Aztec Code error correction level (Default : 23) Default level * ePOS-Print Service Ver.2.2 or later versions supported v • Select the level according to the 2D-code type. • Select the default for MaxiCode and two-dimensional GS1 DataBar. • Micro QR Code does
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 84
    value range 2 to 8 (Magnification for width) Ignored Default height="3"  size : (data type xs:unsignedShort) 2D-Code Default PDF417 size="0" QR Code MaxiCode Ignored 2-dimentional GS1 DataBar Expanded Stacked size="0" (auto) Others Aztec Code DataMatrix Ignored Ignored Description
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 85
    Chapter 4 XML Reference Example To print 2D-codes: ABCDE ABCDE 908063840\x1d850\x1d001\x1d\
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 86
    -style) Specifies the line type. Attribute value thin(default) medium thick thin_double medium_double thick_double Description Solid line: From the left end: 400th dot to 500th dot
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 87
    style) Specifies the line type. Attribute value thin(default) medium thick thin_double medium_double thick_double Description Solid line: from 100th to 200th dot from the left end. 4
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 88
    ) Specifies the line type. Attribute value thin(default) medium thick thin_double medium_double thick_double Description Solid line line from 100th to 200th dot from the left end.
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 89
    > Description Prints text Paper feed Prints a raster image Prints a NV logo Prints a barcode Prints a 2D-code in page mode: 4 ABCDE
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 90
    Origin point(x, y) Width Height Print area Paper • Use this element inside the page (Required attribute data type xs:unsignedShort Default :Differ according to each model) and height: 30 dots:
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 91
    rotation direction. Attribute value Description Left to right left_to_right (default) (No rotation.Data is printed from the top left by rotating them 90 degrees clockwise:
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 92
    data type xs:unsignedShort Default "0") Specifies the origin of the for left-aligned printing of standard-sized characters. To print double-sized height characters, specify a value the characters "ABCDE":
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 93
    4 thick_double Double line: Thick Example To draw a thin solid line between the start position (100, 0) and the end position (500, 0): 93
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 94
    draw a rectangle with a thin double line, with the start position (100, 0) and the end position (500, 200) as its vertexes: 94
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 95
    is fed to the cut position and then is cut.) Cut reservation (Printing continues until the cut position is reached, at which the paper is cut.) Example To perform feed cut operation: 4 95
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 96
    ms 400 ms 500 ms Description Example To send a 100msec pulse signal to the pin 2 of the drawer kick connector: 96
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 97
    used together. • This element is not available if the printer is not provided with the buzzer. Attribute  pattern paper_end Pattern when there is no paper pattern_1 * Pattern 1 pattern_2 * * Pattern 10 * ePOS-Print Service Ver.2.2 or later versions supported  repeat : (data type xs
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 98
    Example To repeat the sound pattern A three times: 98
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 99
    . (data type xs:hexBinary) Refer to the following URL for details of the ESC/POS command. https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=2 Example 41424344450a 4 99
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 100
    advance. (in ePOS-Print Service Ver.2.2 and later) Cannot be written in the tag. Attribute  type : (data type tns:layout-type) Specifies the paper type. Attribute value receipt (default) receipt_bm label label_bm Description Receipt (without black mark) Receipt (with black mark) Die
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 101
    When not specified : 0) Specifies bottom margin (in units of 0.1 mm). Paper Type Receipt  (without black mark) Receipt (with black mark) Die-cut label  (without black mark) Die-cut value of range is depending on the printer model. For detail, refer to Support Information by Printer (p.106). 101
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 102
    See below for the parameters that can be specified for each type of paper, and the positions for those parameters. Mark sf sa sb se sc sd Parameter width height margin_top margin_bottom offset_cut offset_label sf Receipt Top position Cut sf sb sc sa Top
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 103
    Setting label paper in TM-P Series printers 4 For TM-P Series printers (except TM-P60), before printing labels, it is necessary to set the label size and feed label paper. Perform control by referring to the following:
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 104
    Recovers from an error. (in ePOS-Print Service Ver.3.0 and later) • Cannot be written in the tag. • Recovers from that can be recovered from and clears the buffer. 104
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 105
    Chapter 4 XML Reference Resets the printer. (in ePOS-Print Service Ver.3.0 and later) • Cannot be written in the tag. • Other printing commands in the print document are ignored. Example Resets the printer <
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 106
    Support Information by Printer Model Page Model Page Model TM-H6000IV-DT p. 106 TM-L90-i p. 108 TM-L90 TM-P20 p. 110 TM-P60II p. 112 TM-P60II with Peeler TM-P80 p. 114 TM-T20 p. 116 TM-T20II-i TM-T20II p. 117 TM-T70-i p. 119 TM-T70 TM-T70-i TM-T70 p. 121 p. 121 TM-T70II-DT
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 107
    Chapter 4 XML Reference Receipt 80 mm 58 mm supported Page Mode Line Not supported Rectangle Paper Cut Cut, Feed cut Drawer Kick-Out Supported Buzzer Not supported Paper Layout Settings Not supported Command Supported
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 108
    TM-L90-i/ TM-L90 Resolution Print Width Characters in a Line Font A Font B Font C Character Size Font A Font B Font C Character Baseline Font A Font B Font C Default Line Feed Space Color Specification Page Mode Default of the printer using the memory switch setting utility.) UPC-A,
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 109
    Chapter 4 XML Reference Receipt Die-cut Label Page Mode Line Not supported Rectangle Paper Cut Cut, Feed cut Drawer Kick-Out Supported Buzzer Not supported Paper Layout Settings Not supported (With automatic setup mode) Command
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 110
    TM-P20 Resolution Print Width Characters in a Line Font A Font B Font C Font D Font E Character Size Font A Font B Font C Font D Font E Character Baseline Font A Font B Font C Font D Font E Default Line Feed Space Color Specification Page Mode Default Symbology Not supported 110
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 111
    4 XML Reference 58 mm Page Mode Line Supported (Only solid line) Rectangle Paper Cut Feeds paper to cutting position Drawer Kick-Out Not supported Buzzer Supported Paper Layout Settings Supported Command Supported 4 111
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 112
    Ruled Line , , Not supported Page Mode Line Supported (Only solid line) Rectangle Paper Cut Feed cut (Feeds paper to cutting position) Drawer Kick-Out Not supported Buzzer Support (Pattern 1 ~ Pattern 10, Stop) 112
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 113
    Command Receipt Supported Supported Die-cut label Paper Layout Paper type Receipt paper (without black mark) width (sf) 290 to 600 height (sa) 0 margin_top (sb) 0 margin_bottom (se) 0 offset_cut (sc) 0 offset_label (sd) 0 Receipt paper (with black mark) 290
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 114
    Ruled Line , , Not supported Page Mode Line Not supported Rectangle Paper Cut Feed Drawer Kick-Out Not supported Buzzer Supported Paper Layout Settings Supported Command Supported 114
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 115
    Chapter 4 XML Reference Paper Layout Paper type Receipt paper (without black mark) Receipt paper (with black mark) width (sf) 800 800 height (sa) 0 0, 284 to 3100 margin_top (sb) 0 -98 to 3100 margin_bottom (se) 0 0 offset_cut (sc) 0 -173 to 50 offset_label (sd) 0 0 4 115
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 116
    Not supported Page Mode Line Not supported Rectangle Paper Cut Cut, Feed cut Drawer Kick-Out Supported Buzzer Supported (Pattern A ~ Pattern E, Error, No paper, Stop) Paper Layout Settings Not supported Command Supported 116
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 117
    TM-T20II-i/ TM-T20II ) (ANK: 31 characters) (ANK: 60 characters) Character Size Font A ANK: 12 dots x 24 dots (W x character Default Line Feed Space 30 dots Color Specification First color 4 Page Mode Default Area supported Page Mode Line Not supported Rectangle Paper
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 118
    Buzzer Paper Layout Settings Command 58 mm Supported Not supported Supported 80 mm ePOS-Print Setting (TM-T20II) Item Printing Method Character Code Tables Value Thermal (203 dpi) Page 0-5, 16-19, 20-21, 26,30-31, 11-15, 32-53 118
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 119
    Line , , Not supported Page Mode Line Not supported Rectangle Paper Cut Cut, Feed cut Drawer Kick-Out Supported Buzzer Not supported Paper Layout Settings Not supported Command Supported 119
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 120
    ePOS-Print Setting (TM-T70) Item Printing Method Character Code Tables Thermal (180 dpi) Page 0-5, 16-19 Value 120
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 121
    Line , , Not supported Page Mode Line Not supported Rectangle Paper Cut Cut, Feed cut Drawer Kick-Out Supported Buzzer Not supported Paper Layout Settings Not supported Command Supported 121
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 122
    ePOS-Print Setting (TM-T70) Item Printing Method Character Code Tables Thermal (203 dpi) Page 0-5, 16-19 Value 122
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 123
    Ruled Line , , Not supported Page Mode Line Not supported Rectangle Paper Cut Cut, Feed cut Drawer Kick-Out Supported Buzzer Supported Paper Layout Settings Not supported Command Supported 123
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 124
    ePOS-Print Setting Item Printing Method Character Code Tables Value Thermal (203 dpi) Page 0-5, 16-19, 20-21, 26,30-31, 11-15, 32-53 124
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 125
    MaxiCode, GS1 DataBar Stacked,  GS1 DataBar Stacked Omnidirectional, GS1 DataBar Expanded Stacked, Composite Symbology Ruled Line , , Not supported Page Mode Line Not supported Rectangle Paper Cut Cut, Feed cut Drawer Kick-Out
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 126
    Buzzer Paper Layout Settings Command Supported Not supported Supported 80 mm 126
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 127
    > PDF417, QR Code, MaxiCode, GS1 DataBar Stacked,  GS1 DataBar Stacked Omnidirectional, GS1 DataBar Expanded Stacked Ruled Line , , Not supported Page Mode Line Not supported Rectangle Paper Cut Cut, Feed cut Drawer Kick-Out
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 128
    Buzzer Paper Layout Settings Command Supported Not supported Supported 80 mm 128
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 129
    switch setting utility.) Bar Code UPC-A, UPC-E, EAN13, JAN13, EAN8, JAN8, CODE39, ITF, CODABAR, CODE93, CODE128, GS1-128 2D-Code PDF417, QR Code Ruled Line , , Not supported Page Mode Line Not supported Rectangle Paper Cut
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 130
    Command ePOS-Print Setting Item Printing Method Character Code Tables 80 mm Supported 58 mm Thermal (180 dpi) Page 0-5, 16-19 Value 130
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 131
    TM-T88V-DT/ TM-T88V-i/ TM characters A* 42 characters Special font 40 characters B* 56 characters Character Size Font A ANK: 12 dots x 24 dots (W x H) of the character B* Default Line Feed Space 30 dots Color Specification First color Page Mode Default Area 360 dots x 831 supported) 131
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 132
    Cut Cut, Feed cut Drawer Kick-Out Supported Buzzer Supported Paper Layout Settings Not supported Command Supported * Only for South Asia model 80 mm ePOS-Print Setting (TM-T88V) Item Printing Method Character Code Tables Value Thermal (180 dpi
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 133
    TM ANK: 52 characters ANK: 54 characters ANK: 72 characters Character Size Font A ANK: 12 dots x 24 dots (W x H) of the character Default Line Feed Space 30 dots Color Specification Page Mode Default Area First color Second of the printer using the memory switch setting utility.) Barcode <
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 134
    -begin>, Not supported Page Mode Line Not supported Rectangle Paper Cut Cut, Feed cut Drawer Kick-Out Supported Buzzer Not supported Paper Layout Settings Not supported Command Supported ePOS-Print Setting Item
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 135
    using a two-color ribbon cassette ) Page Mode Default Area Not supported Page Mode Maximum Area Not supported Raster Image Monochrome image Logo Not supported 4 Barcode Not supported 2D-Code Not supported Ruled Line , ,
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 136
    136
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 137
    included in the contents in the package. This tool is a support tool for generating XML data. This tool allows you to create an Chrome 19 or later  Apple Safari 5.1.7 or later  iPad Safari in iOS 5.1 or later Environment Setting Procedure • In Google Chrome, when IP address]/editor/index.html 137
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 138
    3 ePOS-Print Editor appears. 138
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 139
    supported TM printer Device ID of the target printer Print timeout (milliseconds) Monitor the status Use print job ID Description Specify the model of the printer to be used for printing. The Preview screen resizes according to the paper width set to the model. Specify the IP address of the printer
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 140
    Creating a Sample Code Select the [Edit] tab to display the Edit screen. Create an ePOS-Print XML print document in the Edit screen. Menu area Edit area Item Menu area Edit area Import Clear Forced Transmission Description Displays the available functions. Click an icon to add it to the bottom
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 141
    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 printing, 2D code printing, ESC command, buzzer sound, drawer kick, and paper cut are displayed as icons. • The layout may change depending on
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 142
    4 Select the [XML] tab. The ePOS-Print XML document is displayed. Use it by copying. Save the ePOS-Print XML print document, and you can edit it by importing it again. 142
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 143
    Information Clear Description The ePOS-Print XML document is displayed. Sends data to the printer and performs printing. Displays the print status. Deletes the content in the [Information] is printed to ePOS-Print supported TM printer.  The acquired status is displayed in the Information box. 143
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 144
    Import ePOS-Print Editor can import an ePOS-Print XML print document. This function is used to edit the already created ePOS-Print XML print document. Item Data to be import (ePOS-Print XML) Apply Information Close Description Pastes the ePOS-Print XML print document. Imports the ePOS-Print XML
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 145
    of the stored image file for "Image File (on the Server Side)" and click the [Load] button. 5 Specify values as needed for "Scale to Fit Paper Width", "Mode", "Brightness", "Color", and "Halftone". 145
  • Epson TM-T20II-i | ePOS-Print XML Users Manual - Page 146
    6 Select the [XML] tab. 7 Code converted into a base 64 encoded character string is displayed in [ePOS- Print XML Print Document]. Copy the desired character string for use. 146
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146

ePOS-Print XML
User’s Manual
M00048210
Rev.K
Overview
Sample Program (XML Print Service)
Programming Guide (XML Print Service)
XML Reference
Appendix
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.