background image

64

Event

ondrawerclosed

Drawer close event 

(in firmware Ver.1.2 and later)

157

ondraweropen

Drawer open event 

(in firmware Ver.1.2 and later)

158

onbatteryok

Battery OK event 

(in firmware Ver.2.2 and later)

158

onbatterylow

Battery low event 

(in firmware Ver.2.2 and later)

159

Constant

ASB_*

Status

Element

API

Description

Page

Summary of Contents for TM-T88V-i

Page 1: ...nment 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 ...

Page 2: ...ts other than those designated as Original EPSON Products or EPSON Approved Products by Seiko Epson Corporation Trademarks EPSON and ESC POS are registered trademarks of Seiko Epson Corporation in the U S and other countries Windows and Internet Explorer are either registered trademarks or trademarks of Microsoft Corpora tion in the United States and other countries SafariTM and TrueType are eithe...

Page 3: ...ou 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 m...

Page 4: ...or the TM i series and TM printers that support the ePOS Print API 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 T88V i TM T70 i TM L90 i Chapter 1 Overview Chapter 2 Sample Program Chapter 3 Programming Guide Chapter 4 ePOS Print API Chapter 5 ePOS Print Canvas API Chapter 6 ePOS Print Editor Appendix ...

Page 5: ...rs 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 21 Version Information 23 Restrictsions 24 Sample Program 25 Sample Program System Overview 25 Sample Program Screen 25 Print Image 27 Program Flow 28 Operating Environment 3...

Page 6: ...Reception of Print Result 56 Reception of Status Event 58 ePOS Print API 59 List of API functions 59 window epson ePOSBuilder Components 59 window epson ePOSPrint Components 63 ePOS Print Builder Object 65 Constructor 65 addTextAlign method 66 addTextLineSpace method 67 addTextRotate method 68 addText method 69 addTextLang method 70 addTextFont method 73 addTextSmooth method 74 addTextDouble metho...

Page 7: ...perty 134 brightness property 135 force property 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 onerror event 151 onstatuschange event 152 onbatterystatuschange event 153 ononline event 153...

Page 8: ...ness property 177 cut property 178 mode property 179 align property 180 color property 181 feed property 182 paper property 183 layout property 184 onreceive event 189 onerror event 192 onstatuschange event 193 onbatterystatuschange event 194 onbatteryok event 195 onbatterylow event 195 ononline event 196 onoffline event 196 onpoweroff event 197 oncoverok event 197 oncoveropen event 198 onpaperok ...

Page 9: ...37 Paper setting function of TM L90 239 Setting Paper Width 239 Automatic setting of paper layout 239 Rendering in HTML5 Canvas 240 Rendering Text canvas print text html 241 Rendering Images canvas print image html 243 Rendering Graphics canvas print graph html 245 Rendering Handwritten Images canvas print hand html 247 Rendering Barcode canvas print barcode html 249 Rendering Label canvas print l...

Page 10: ...10 ...

Page 11: ...upported TM printer In addition print images rendered in HTML5 Canvas can be printed ePOS Print provides the API for print commands When a print document Request is sent via HTTP from the host to the ePOS Print Service of a ePOS Print supported TM printer ePOS Print processes the printing of that document and returns a response document Response Web Server Internet Intranet TM i web server Web Bro...

Page 12: ...n firmware Ver 1 2 and later 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 Supported in firmware Ver 1 2 and later To change the printer settings utility programs dedicated to each printer or other utility programs shoul...

Page 13: ...ePOS Print API Printing a Logo Alignment Center Paper Feed Paper Feed and Paper Cut 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 Your Number ...

Page 14: ...14 ePOS Print Canvas API Monochrome or Grayscale Monochrome ...

Page 15: ...ata 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 terminal Web Server Web Application Web Browser ePOS Print supported TM printer Printers that can be controlled Wireless Network Device Control Wireless LAN Router ...

Page 16: ...ls that can be printed by each model refer to Printer specifications on page 209 Ruled line setting Control of label paper black mark paper Drawer kick function Buzzer function ESC POS command transmission Response document acquisition print result printer status system error status Paper layout setting Recovery from an error Reset Printing functions of ePOS Print Canvas API Printing of images ras...

Page 17: ... in iOS4 0 or later Standard browser in Android 2 2 or later Windows Store apps JavaScript project Terminal Terminal with 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 Printers That Can Be Controlled Refer to the Technical Reference Guide for the TM i series Unable to control other TM printer ...

Page 18: ...plication 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 TM i Web Server Web Application Terminal Web Browser TM i Printers That Can Be Controlled Wireless Network Device Control Wireless LAN Router ...

Page 19: ...erminal 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 s Web browser Web Application Terminal Web Browser TM i Wireless Network Device Control Wireless LAN Router ...

Page 20: ...tion to a cloud Terminal Executes the Web application using a browser TM Printer Wireless LAN Model TM Printer Wireless LAN Model Terminal Web Browser Wireless Wireless LAN Router Web Application Web Server Device Control Network ...

Page 21: ...e zip The following are included epos print 3 x x js ePOS Print JavaScript for embedding sample index html Sampleprogram editor index html ePOS Print Editor win8 ePOS Print Demo zip Windows Store apps sample program Rendering in HTML5 Canvas canvas canvas print text html Rendering text canvas canvas print image html Rendering images canvas canvas print graph html Rendering graphics canvas canvas p...

Page 22: ...i TM L90 i Model Dedicated Utility Memory Switch Setting Utility TM Flash Logo Setup Utility TMFLogo TMNet WinConfig EpsonNet Config Utility TM P60II TM P80 Model Dedicated Utility Memor y Switch Setting Utility TM Flash Logo Setup Utility TMFLogo TMNet WinConfig EpsonNet Config ...

Page 23: ...Ver 2 1 TM Printer Wireless LAN Model TM P60II TM P60II with Peeler TM P80 Displayed on EpsonNet Config Web version Example 2 2 Ver 2 2 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 AP...

Page 24: ...unt of data to print increases and white stripes may appear in the print result in firmware Ver 1 2 and later The scan quality of barcodes two dimensional symbols printed as multiple tone raster images cannot be guaranteed Print them as two tone images in firmware Ver 1 2 and later If printing was cancelled perform the following settings to clear the data left in the printer in Ver 3 0 and later I...

Page 25: ...criptions 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 Item Description 1 Queue Ticket Prints queue ticket numbers This is a sample program using the ePOS Print API 2 Coupon Prints coupons This is a sample program usin...

Page 26: ...s fails to be assigned via DHCP the value becomes 192 168 192 168 TM Printer 192 168 192 168 Device ID of the target printer Default local_printer Print timeout milliseconds Default 60000 Prints coupons in gray scale Coupon in firmware Ver 1 2 and later Default No Prints labels with specified layout Label in firmware Ver 3 0 and later Default No Item Description ...

Page 27: ...sample program prints the following Your Number Name Color Code 2012001 Item A Red Coupon ePOS Print Canvas API Your Number ePOS Print API Label ePOS Print API Die cut label mount width 58mm or above Label size width 54 mm x height 25 4 mm or above ...

Page 28: ...uance ePOS Print API 3 Click Queue Ticket 2 Settings Settings of IP address of ePOS Print supported TM printer Device ID of the printer to be controlled Print timeout time 1 Open the sample program Web page 4 Creates print data ePOS Print Builder Object Action on the sample program Action on the customer 5 Prints ePOS Print Object ...

Page 29: ... Settings Settings of IP address of ePOS Print supported TM printer Device ID of the printer to be used for printing Print timeout time 1 Open the sample program Web page 4 Render in HTML5 Canvas 5 Prints ePOS Print Canvas API Object Action on the sample program Action on the customer ...

Page 30: ... 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 1 Open the sample program Web page 4 Creates print data ePOS Print Builder Object Action on the sample program Action on the customer 5 Prints ePOS Print Object ...

Page 31: ...less LAN Router TM i 1 set Terminal Terminal with an HTML5 supported Web browser 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 Web Server Computer to configure the settings 192 168 192 10 Terminal 192 168 192 XXX Wireless LAN Router 192 168 192 1 TM i 192 168 192 20 Pri...

Page 32: ...he settings Wireless LAN Router TM Printer Wireless LAN Model 1 set TM P60II Terminal Terminal with an HTML5 supported Web browser The figure below also describes an example of IP address settings as network settings Web Server Computer to configure the settings 192 168 192 10 Terminal 192 168 192 XXX Wireless LAN Router 192 168 192 1 TM P60II TM Printer Wireless LAN Model 192 168 192 20 Printer t...

Page 33: ... as IP address 2 Web Server Configuration Configure a Web server on the computer 2 Computer Settings 4 Terminal settings Configure the wireless LAN Wi Fi settings of the terminal to match the router settings so as to enable network connection For details refer to the manual for the device you are using 5 Network Setting of ePOS Print Supported TM printer p 35 Configuration is done from a Web brows...

Page 34: ... the following folder Example Web server configured by using IIS System drive Inetpub wwwroot Download ePOS Print_API_UM_E_Sample zip For details refer to Contents in the package p 21 Copy the sample program as a user with administrator authority 7 Device ID Settings p 37 Configuration is done from a Web browser these settings are not required in this sample program 8 Sample Program Settings p 39 ...

Page 35: ...L of the TM i interface into the address bar Enter the password http IP address of the TM intelligent printer PrinterConfigurationPage 3 TMNet WebConfig starts Select as Configuration Wired Wireless TCP IP 4 The TCP IP Setting screen appears Configure the network settings for the TM i and click Submit 5 Print the status sheet using the TM i to check that the IP address has been updated The initial...

Page 36: ... 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 on ...

Page 37: ... set the Device ID 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 WebConfig starts Select as Configuration Device In the sample program ʺDevice ID Settingsʺ are not required Refer to it if necessary 2 ...

Page 38: ...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 Item Description Device ID Specifies the ID to identify the printer to be controlled by ePOS Print Model Specifies the model of the printer to be controlled IP Address Specifies the IP address of the pri...

Page 39: ...re below 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 Click Settings In the sample program ʺDevice ID Settingsʺ are not required Refer to it if necessary ...

Page 40: ...P the value becomes 192 168 192 168 TM Printer 192 168 192 168 Device ID of the target printer Specifies the Device ID of the printer to print queue ticket numbers and coupons Default value local_printer Print timeout millisecond Specifies the timeout time default 60000 Print in grayscale Coupon Only for supported models Prints coupons in gray scale Default No Set the paper layout Label Only for T...

Page 41: ...ode characters are printed line by line The line feed space is adjusted based on the 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 change according to the print space Page mode In page mode you set a print area lay out data in it and print the data in a batch operation Characters images and...

Page 42: ...rmware 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 p 51 in firmware Ver 1 2 and later 1 Embedding of ePOS Print API p 43 2 Print Document Creation p 44 To create a text print document p 45 To create a graphic print document p 46 To create a page mode print document p 47 4 Reception of Print Result p 49 3 ...

Page 43: ... by embedding epos print 3 x x js into applications Preparation To use the ePOS Print API place epos print 3 x x js on the Web server Embedding into Web pages Embed the script into the Web page by using the HTML script tags DOCTYPE html html head meta charset utf 8 title TITLE title script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var bui...

Page 44: ...html html head meta charset utf 8 title TITLE title script type text javascript src epos print 3 x x js script script type text javascript function buildMessage Create an ePOS Print Builder object var builder new epson ePOSBuilder Create a print document builder addTextLang en builder addTextSmooth true builder addTextFont builder FONT_A builder addTextSize 3 3 builder addText Hello tWorld n build...

Page 45: ...ilder object var builder new epson ePOSBuilder Create a print document Configure the print character settings builder addTextLang en builder addTextSmooth true builder addTextFont builder FONT_A builder addTextSize 4 4 builder addTextStyle false false true undefined Specify the print data builder addText Hello tWorld n builder addCut builder CUT_FEED Acquire the print document var request builder ...

Page 46: ...ype text javascript src epos print 3 x x js script script type text javascript function buildMessage Create an ePOS Print Builder object var builder new epson ePOSBuilder Render an image in HTML5 Canvas var canvas document getElementById canvas var context canvas getContext 2d context drawImage document getElementById logo 0 0 200 70 Create a print document builder addTextAlign builder ALIGN_CENTE...

Page 47: ... script script type text javascript function buildMessage Create an ePOS Print Builder object var builder new epson ePOSBuilder Create a print document The page mode starts builder addPageBegin Specify the page mode print area builder addPageArea 100 50 200 100 Specify the page mode print position builder addPagePosition 0 42 Specify the print data builder addTextLang en builder addTextFont builde...

Page 48: ...inter Timeout period Specifies the time to abort the process in milliseconds The timeout parameter is optional when it is omitted 60 seconds 60000 is set When the timeout period elapses the print job is canceled the data already interpreted by the printer before the start of the print abort process is printed DOCTYPE html html head meta charset utf 8 title TITLE title script type text javascript s...

Page 49: ...cript script type text javascript function buildMessage Create a print document var builder new epson ePOSBuilder builder addTextLang en builder addTextSmooth true builder addTextFont builder FONT_A builder addTextSize 3 3 builder addText Hello tWorld n builder addCut builder CUT_FEED var request builder toString var address http 192 168 192 168 cgi bin epos service cgi devid local_printer timeout...

Page 50: ...tatus n if asb epos ASB_COVER_OPEN msg Cover is open n if asb epos ASB_PAPER_FEED msg Paper feed switch is feeding paper n if asb epos ASB_WAIT_ON_LINE msg Waiting for online recovery n if asb epos ASB_PANEL_SWITCH msg Panel switch is ON n if asb epos ASB_MECHANICAL_ERR msg Mechanical error generated n if asb epos ASB_AUTOCUTTER_ERR msg Auto cutter error generated n if asb epos ASB_UNRECOVER_ERR m...

Page 51: ...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 Builder object var builder new epson ePOSBuilder address Set an event callback function cover open epos oncoveropen function alert coveropen Set an event callback function paper near end epos onpapernearend function alert papernearend Enable status event operation ...

Page 52: ...ed 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 1 Embedding of ePOS Print Canvas API p 53 4 Reception of Print Result p 56 3 Prints an Canvas image p 55 2 Rendering in HTML5 Canvas p 54 ...

Page 53: ...x js into applications Preparation To use the ePOS Print Canvas API place epos print 3 x x js on the Web server Embedding into Web pages Embed the script into the Web page by using the HTML script tags DOCTYPE html html head meta charset utf 8 title TITLE title script type text javascript src epos print 3 x x js script script type text javascript function drawCanvas script head body body html Embe...

Page 54: ...d coffee 0 0 512 384 context fillStyle rgba 255 255 255 0 5 context fillRect 0 0 512 480 context fillStyle rgba 0 0 0 1 0 Render a water mark for the image context drawImage document getElementById wmark 0 0 context drawImage document getElementById wmark 256 324 Render text context textAlign center context textBaseline alphabetic context font bold normal normal 48px Times New Roman serif context ...

Page 55: ...r End Point Address p 48 DOCTYPE html html head meta charset utf 8 title TITLE title script type text javascript src epos print 3 x x js script script type text javascript function drawCanvas Rendering in HTML5 Canvas Obtain the context var canvas document getElementById myCanvas var context canvas getContext 2d Set the end point address var address http 192 168 192 168 cgi bin epos service cgi de...

Page 56: ...e text javascript function drawCanvas Rendering in HTML5 Canvas Obtain the context var canvas document getElementById myCanvas var context canvas getContext 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 epo...

Page 57: ... status n if asb epos ASB_COVER_OPEN msg Cover is open n if asb epos ASB_PAPER_FEED msg Paper feed switch is feeding paper n if asb epos ASB_WAIT_ON_LINE msg Waiting for online recovery n if asb epos ASB_PANEL_SWITCH msg Panel switch is ON n if asb epos ASB_MECHANICAL_ERR msg Mechanical error generated n if asb epos ASB_AUTOCUTTER_ERR msg Auto cutter error generated n if asb epos ASB_UNRECOVER_ERR...

Page 58: ...ddress 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 an event callback function cover open epos oncoveropen function alert coveropen Set an event callback function paper near end epos onpapernearend function alert papernearend Enable status event operation epos open ...

Page 59: ...Text LineSpace Adds a tag for the line feed space setting 67 addTextRotate Adds a tag for the text rotation set ting 68 addText Adds a tag for printing text 69 addTextLang Adds a tag for the target language setting 70 addTextFont Adds a tag for the text font setting 73 addTextSmooth Adds a tag for the text smoothing setting 74 addTextDouble Adds a tag for specifying the dou ble sized text setting ...

Page 60: ...e printed 101 addVLineBegin Adds a tag for starting a vertical line 103 addVLineEnd Adds a tag for finishing a vertical line 105 Page mode addPageBegin Adds a tag for switching to page mode 107 addPageEnd Adds a tag for finishing page mode 108 addPageArea Adds a tag for specifying the print area in page mode 109 addPageDirec tion Adds a tag for specifying the print direction in page mode 111 addPa...

Page 61: ...ry addRecovery Adds a tag for recovering from an error in firmware Ver 3 0 and later 130 Reset addReset Adds a tag for resetting the printer in firmware Ver 3 0 and later 131 Send Com mand addCommand Adds commands to the command buffer Sends ESC POS commands 132 Create a Print Docu ment toString Obtains a print document gener ated by on ePOS Print Builder object 133 Elem ent API Description Stan d...

Page 62: ...pecifica tions p 209 Element API Description Page Property halftone Raster image halftone processing method in firmware Ver 1 2 and later 134 brightness Raster image brightness correction value in firmware Ver 1 2 and later 135 force Forced transmission mode in firmware Ver 3 0 and later 136 message Message buffer 137 Constant FONT_ font ALIGN_ alignment COLOR_ color specification HALFTONE_ Halfto...

Page 63: ...us 146 timeout The connecting was timeout 147 Event onreceive Response message receipt event 148 onerror Communication error event 151 onstatuschange Status change event in firmware Ver 1 2 and later 152 onbatterystatuschange Battery status chenge event in firmware Ver 2 2 and later 153 ononline Online event in firmware Ver 1 2 and later 153 onoffline Offline event in firmware Ver 1 2 and later 15...

Page 64: ...1 2 and later 157 ondraweropen Drawer open event in firmware Ver 1 2 and later 158 onbatteryok Battery OK event in firmware Ver 2 2 and later 158 onbatterylow Battery low event in firmware Ver 2 2 and later 159 Constant ASB_ Status Element API Description Page ...

Page 65: ...trings or graphics to be printed paper cut etc Constructor Constructor for an ePOS Print Builder object Creates a new ePOS Print Builder object and initializes it Syntax ePOSBuilder Example script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder script ...

Page 66: ...e addTextPosition method to designate the horizontal print position When the page mode is selected for the print mode to set text rotation use the addPageDirection method p 111 instead of this API function Constant align Description ALIGN_LEFT default Alignment to the left ALIGN_CENTER Alignment to the center ALIGN_RIGHT Alignment to the right Return value Object type ePOS Print Builder Object ePO...

Page 67: ...e feed space in dots Specifies an integer from 0 to 255 Return value Exception Example Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addTextLineSpace 30 script To set the line feed s...

Page 68: ...lign method specification cannot be used When the page mode is selected for the print mode to set text rotation use the addPageDirection method p 111 instead of this API function Setting Description true or 11 Specifies rotated printing of text false or 0 default Cancels rotated printing of text Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is inva...

Page 69: ...te 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 Printer specifications p 209 String Description t Horizontal tab HT n Line feed LF Carriage return Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos...

Page 70: ... set changes to Japan ko Korean International character set changes to Korean ko kr Korean International character set changes to Korean zh hans Simplified Chinese in firmware Ver 2 2 and later International character set changes to China zh cn Simplified Chinese International character set changes to China zh hant Traditional Chinese in firmware Ver 2 2 and later zh tw Traditional Chinese Languag...

Page 71: ...lder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addTextLang en script To set the language as English script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder n...

Page 72: ...er new epson ePOSBuilder builder addTextLang zh hans script To set the language as Simplified Chinese script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addTextLang zh hant script To set the language as Traditional Chinese ...

Page 73: ... Exception Example Constant font Language FONT_A default Font A FONT_B Font B FONT_C Font C Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addTextFont builder FONT_B script To set the...

Page 74: ...ception Example Setting Description true or 1 Specifies smoothing false or 0 default Cancels smoothing Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addTextSmooth true script To enab...

Page 75: ...e double sized width false or 0 default Cancels the double sized width undefined When not specified Retains the current setting for double sized width Setting Description true or 1 Specifies the double sized height false or 0 default Cancels the double sized height undefined When not specified Retains the current setting for double sized height When true or 1 is set for both the dw and dh paramete...

Page 76: ... type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addTextDouble true true script To set the size as double width and height ...

Page 77: ...scale default 1 undefined When not specified Retains the current setting for the horizontal scale Setting Description Integer from 1 to 8 Vertical scale default 1 undefined When not specified Retains the current setting for the vertical scale Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos print 3...

Page 78: ...the inversion of black and white parts of characters false or 0 default Cancels the inversion of black and white parts of characters undefined When not specified Retains the current setting for inversion of black and white Setting Description true or 1 Specifies underlining false or 0 default Cancels underlining undefined When not specified Retains the current underlining setting Setting Descripti...

Page 79: ...r COLOR_3 Third color COLOR_4 Fourth color undefined When not specified Retains the current color setting Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addTextStyle undefined true sc...

Page 80: ...n dots Specifies an integer from 0 to 65535 Return value Exception Example Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addTextPosition 120 script To set the print position at 120 d...

Page 81: ... from 0 to 65535 Return value Exception Example Use this API function by inserting it between addPageBegin to addPageEnd Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addPageBegin bu...

Page 82: ... dots Specifies an integer from 0 to 255 Return value Exception Example Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addFeedUnit 30 script To feed paper by 30 dots ...

Page 83: ... feed space in lines Specifies an integer from 0 to 255 Return value Exception Example Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addFeedLine 3 script To feed paper by 3 lines ...

Page 84: ...ol of label paper black mark paper must be done in the standard mode In the page mode addFeedPosition method specification cannot be used Setting Description FEED_PEELING Feeds to the peeling position FEED_CUTTING Feeds to the cutting position FEED_CURRENT_TOF Feeds to the top of the current label FEED_NEXT_TOF Feeds to the top of the next label Return value Object type ePOS Print Builder Object e...

Page 85: ...uilder FEED_CURRENT_TOF builder addBarcode 0001 builder BARCODE_CODE39 builder HRI_BELOW builder addFeedPosition builder NEXT_TOF builder addBarcode 0002 builder BARCODE_CODE39 builder HRI_BELOW builder addFeedPosition builder NEXT_TOF builder addBarcode 0003 builder BARCODE_CODE39 builder HRI_BELOW builder addFeedPosition builder NEXT_TOF script To print labels consecutively script type text java...

Page 86: ...ect type ePOS Print Builder Object ePOS Builder script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addText Hello addFeed builder addText World addFeed script To start a new line after printing a character string ...

Page 87: ... Specifies the width of the print area Specifies an integer from 0 to 65535 height Required parameter Object type Number Specifies the height of the print area Specifies an integer from 0 to 65535 color Optional parameter Object type String Specifies the color If an HTML5 Canvas image contains images downloaded from different domains you cannot print the image In this case a security error occurs ...

Page 88: ...vascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder var canvas document getElementById canvas if canvas getContext var context canvas getContext 2d builder addImage context 0 0 canvas width canvas height script var canvas document getElementById myCanvas var context canvas getContext 2d var builder new epson ePOSBuilder builde...

Page 89: ...on Example Using model dedicated utility or logo registration utility TMFLogo register a logo in the printer in advance In page mode a logo is laid out in the current print position with the reference point being its bottom left dot Multiple tone printing is not supported in Page Mode Multiple tone graphic printing is supported in Standard Mode only Return value Object type ePOS Print Builder Obje...

Page 90: ...f item code digits varies depending on the manufacturer code Specify 0s in empty digits When an 11 digit number is specified a check digit is automatically added When a 12 digit number is specified the 12th digit is pro cessed as a check digit but the check digit is not vali dated EAN13 When an 12 digit number is specified a check digit is automatically added When a 13 digit number is specified th...

Page 91: ...eck digit and a stop character are automatically added To automatically calculate and add a check digit for an application identifier AI and the subsequent data specify the character in the position of the check digit You can enclose an application identifier AI in parentheses The parentheses are used as HRI print characters and are not encoded as data You can insert spaces between an application ...

Page 92: ...aracters starting with the character FNC1 1 String Description xnn Control code Back slash Constant type Barcode type BARCODE_UPC_A UPC A BARCODE_UPC_E UPC E BARCODE_EAN13 EAN13 BARCODE_JAN13 JAN13 BARCODE_EAN8 EAN8 BARCODE_JAN8 JAN8 BARCODE_CODE39 CODE39 BARCODE_ITF ITF BARCODE_CODABAR CODABAR BARCODE_CODE93 CODE93 BARCODE_CODE128 CODE128 BARCODE_GS1_128 GS1 128 BARCODE_GS1_DATABAR_OMNIDIRECTIONA...

Page 93: ... height Optional parameter Object type Number Specifies the barcode height in dots Specifies an integer from 1 to 255 Return value Exception Constant hri Description HRI_NONE default HRI not printed HRI_ABOVE Above the bar code HRI_BELOW Below the bar code HRI_BOTH Both above and below the bar code Constant font Language FONT_A default Font A FONT_B Font B FONT_C Font C Return value Object type eP...

Page 94: ... addBarcode 2012345 builder BAROCDE_JAN8 builder addBarcode ABCDE builder BAROCDE_CODE39 builder addBarcode 012345 builder BAROCDE_ITF builder addBarcode A012345A builder BAROCDE_CODABAR builder addBarcode ABCDE builder BAROCDE_CODE93 builder addBarcode Babcde builder BAROCDE_CODE128 builder addBarcode 01 201234567890 builder BAROCDE_GS1_128 builder addBarcode 0201234567890 builder BAROCDE_GS1_DAT...

Page 95: ...tom left dot 2D Code type Description Standard PDF417 Convert the character string to the string in UTF 8 apply the escape sequence and then encode the string The data area can contain up to 928 code words in a maximum of 90 rows each of which can contain up to 30 code words Truncated PDF417 QR Code Model 1 Convert the character string to the string in Shift JIS apply the escape sequence and then ...

Page 96: ...ervice class code 1 to 3 digit number MaxiCode Mode 3 MaxiCode Mode 4 MaxiCode Mode 5 MaxiCode Mode 6 GS1 DataBar Stacked Convert the character string to the string in UTF 8 apply the escape sequence and then encode the string Specify a 13 digit global trade item number GTIN not including an application identifier AI or a check digit GS1 DataBar Stacked Omnidirectional GS1 DataBar Expanded Stacked...

Page 97: ...ODE_5 MaxiCode Mode 5 SYMBOL_MAXICODE_MODE_6 MaxiCode Mode 6 SYMBOL_GS1_DATABAR_STACKED GS1 DataBar Stacked SYMBOL_GS1_DATABAR_STACKED_ OMNIDIRECTIONAL GS1 DataBar Stacked Omnidirectional SYMBOL_GS1_DATABAR_EXPANDED_STACKED GS1 DataBar Expanded Stacked SYMBOL_AZTECCODE_FULLRANGE Aztec Code Full Range mode in firmware Ver 2 2 and later SYMBOL_AZTECCODE_COMPACT Aztec Code Compact mode in firmware Ve...

Page 98: ...r correction level 6 LEVEL_7 PDF417 error correction level 7 LEVEL_8 PDF417 error correction level 8 LEVEL_L QR Code error correction level L LEVEL_M QR Code error correction level M LEVEL_Q QR Code error correction level Q LEVEL_H QR Code error correction level H LEVEL_DEFAULT Default level Integer from 5 to 95 Aztec Code error correction level Default 23 in firmware Ver 2 2 and later Select the ...

Page 99: ...type Valid value range Default value PDF417 2 to 8 Magnification for width 3 QR Code Ignored MaxiCode 2D GS1 Databar Aztec Code DataMatrix 2D Code type Default value Description PDF417 0 Auto Specifies the number of code words for each row QR Code Ignored MaxiCode 2D GS1 Databar 0 Auto Specifies the maximum width for the barcode 106 or above Aztec Code Ignored DataMatrix Others Ignored Return valu...

Page 100: ...VEL_Q builder addSymbol 908063840 x1d850 x1d001 x1d x04 builder SYMBOL_MAXICODE_MODE_2 builder addSymbol 0201234567890 builder SYMBOL_ GS1_DATABAR_STACKED builder addSymbol 0201234567890 builder SYMBOL_GS1_DATABAR_STACKED_OMNIDIRECTIONAL builder addSymbol 01 02012345678903 builder SYMBOL_GS1_DATABAR_EXPANDED_STACKED builder addSymbol ABCDE builder SYMBOL_AZTECCODE_FULLRANGE 23 builder addSymbol AB...

Page 101: ...on of the horizontal line in dots Specifies an integer from 0 to 65535 style Optional parameter Object type String Specifies the line type Return value Exception Not available in page mode Constant style Description LINE_THIN Solid line Thin LINE_MEDIUM Solid line Medium LINE_THICK Solid line Thick LINE_THIN_DOUBLE Double line Thin LINE_MEDIUM_DOUBLE Double line Medium LINE_THICK_DOUBLE Double lin...

Page 102: ... buildMessage var builder new epson ePOSBuilder builder addHLine 100 200 builder LINE_THIN_DOUBLE builder addHLine 400 500 builder LINE_THIN_DOUBLE script To draw double horizontal lines in the following positions Between 100 dots and 200 dots from the left end Between 400 dots and 500 dots from the left end ...

Page 103: ...ecifies the line type Return value Exception Not available in page mode Vertical lines are drawn until their end is specified by addVLineEnd p 105 Use this API function with addVLineEnd Constant style Description LINE_THIN Solid line Thin LINE_MEDIUM Solid line Medium LINE_THICK Solid line Thick LINE_THIN_DOUBLE Double line Thin LINE_MEDIUM_DOUBLE Double line Medium LINE_THICK_DOUBLE Double line T...

Page 104: ...t script type text javascript function buildMessage var builder new epson ePOSBuilder builder addVLineBegin 100 addVLineBegin 200 builder addFeedUnit 100 builder addVLineEnd 100 addVLineEnd 200 script To draw thin vertical lines at 100 dots and 200 dots from the left end ...

Page 105: ...e String Specifies the type of the line you want to finish drawing Return value Exception Not available in page mode Use this API function with addVLineBegin p 103 Constant style Description LINE_THIN Solid line Thin LINE_MEDIUM Solid line Medium LINE_THICK Solid line Thick LINE_THIN_DOUBLE Double line Thin LINE_MEDIUM_DOUBLE Double line Medium LINE_THICK_DOUBLE Double line Thick undefined When no...

Page 106: ...t script type text javascript function buildMessage var builder new epson ePOSBuilder builder addVLineBegin 100 addVLineBegin 200 builder addFeedUnit 100 builder addVLineEnd 100 addVLineEnd 200 script To draw thin vertical lines at 100 dots and 200 dots from the left end ...

Page 107: ...page mode until their end is specified by PageEnd p 108 Use this API function with PageEnd Return value Object type ePOS Print Builder Object ePOS Builder script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addPageBegin builder addText ABCDE builder addPageEnd script To print the characters ABCDE in ...

Page 108: ...function with addPageBegin p 107 Return value Object type ePOS Print Builder Object ePOS Builder script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addPageBegin builder addText ABCDE builder addPageEnd script To print the characters ABCDE in page mode ...

Page 109: ...feed has been performed width Required parameter Object type Number Specifies the width of the print area in dots Specifies an integer from 0 to 65535 height Required parameter Object type Number Specifies the height of the print area in dots Specifies an integer from 0 to 65535 Return value Exception Specify a print area to cover the content to be printed If the print data extends beyond the prin...

Page 110: ...vascript function buildMessage var builder new epson ePOSBuilder builder addPageBegin builder addPageArea 100 50 200 30 builder addText ABCDE builder addPageEnd script To specify the print area with the origin 100 50 a width of 200 dots and a height of 30 dots and print the characters ABCDE ...

Page 111: ...eEnd p 108 Constant dir Description DIRECTION_LEFT_TO_RIGHT default Left to right No rotation Data is printed from the top left corner to the right DIRECTION_BOTTOM_TO_TOP Bottom to top Counterclockwise rotation by 90 degrees Data is printed from the bottom left corner to the top DIRECTION_RIGHT_TO_LEFT Right to left Rotation by 180 degrees Data is printed from the bottom right corner to the left ...

Page 112: ...vascript function buildMessage var builder new epson ePOSBuilder builder addPageBegin builder addPageArea 100 50 30 200 builder addPageDirection builder DIRECTION_TOP_TO_BOTTOM builder addText ABCDE builder addPageEnd script To print the characters ABCDE by rotating them 90 degrees clockwise ...

Page 113: ...108 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 left aligned printing of standard sized characters To print double sized height characters specify a value equal to or greater than 42 for y To print a barcode Specify the bott...

Page 114: ...n buildMessage var builder new epson ePOSBuilder builder addPageBegin builder addPageArea 100 50 200 100 builder addPagePosition 50 30 builder addText ABCDE builder addPageEnd script To specify 50 30 for the print start position in the area specified by the addPageArea method and print the characters ABCDE ...

Page 115: ...pecifies an integer from 0 to 65535 y2 Required parameter Object type Number ècSpecifies the vertical end position of the line in dots Specifies an integer from 0 to 65535 style Optional parameter Object type String Specifies the line type Return value Exception Diagonal lines cannot be drawn Use this API function by inserting it between addPageBegin p 107 and PageEnd p 108 Constant style Descript...

Page 116: ...pt script type text javascript function buildMessage var builder new epson ePOSBuilder builder addPageBegin builder addPageLine 100 0 500 0 builder LINE_THIN builder addPageEnd script To draw a thin solid line between the start position 100 0 and the end position 500 0 ...

Page 117: ...tion of the line in dots Specifies an integer from 0 to 65535 y2 Required parameter Object type Number ècSpecifies the vertical end position of the line in dots Specifies an integer from 0 to 65535 style Optional parameter Object type String Specifies the line type Return value Exception Use this API function by inserting it between addPageBegin p 107 and PageEnd p 108 Constant style Description L...

Page 118: ...avascript function buildMessage var builder new epson ePOSBuilder builder addPageBegin builder addPageLine 100 0 500 200 builder LINE_THIN_DOUBLE builder addPageEnd script To draw a rectangle with a thin double line with the start position 100 0 and the end position 500 200 as its vertexes ...

Page 119: ...escription CUT_NO_FEED Cut without feeding The paper is cut without being fed CUT_FEED Feed cut The paper is fed to the cut position and then is cut CUT_RESERVE Cut reservation Printing continues until the cut position is reached at which the paper is cut undefined When not specified Feed cut The paper is fed to the cut position and then is cut Return value Object type ePOS Print Builder Object eP...

Page 120: ... script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addCut builder CUT_FEED script To perform feed cut operation ...

Page 121: ...value Exception Not available in page mode The drawer and the buzzer cannot be used together Setting Description DRAWER_1 Pin 2 of the drawer kick out connector DRAWER_2 Pin 5 of the drawer kick out connector undefined When not specified Pin 2 of the drawer kick out connector Setting Description PULSE_100 100 ms PULSE_200 200 ms PULSE_300 300 ms PULSE_400 400 ms PULSE_500 500 ms undefined When not...

Page 122: ...c epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addPulse builder DRAWER_1 builder PULSE_100 script To send a 100msec pulse signal to the pin 2 of the drawer kick connector ...

Page 123: ...tern B PATTERN_C Pattern C PATTERN_D Pattern D PATTERN_E Pattern E PATTERN_ERROR Error sound pattern PATTERN_PAPER_END Pattern when there is no paper PATERN_1 Pattern 1 in firmware Ver 2 2 and later PATERN_2 Pattern 2 in firmware Ver 2 2 and later PATERN_3 Pattern 3 in firmware Ver 2 2 and later PATERN_4 Pattern 4 in firmware Ver 2 2 and later PATERN_5 Pattern 5 in firmware Ver 2 2 and later PATER...

Page 124: ...ou want to stop the buzzer execute this API function and specify PATTERN_NONE for pattern Setting Description 1000 to 25500 1000 to 25500 milliseconds undefined 1000 milliseconds PATTERN_A to PATTERN_E PATTERN_ERROR PATTERN_PAPER_END is disregarded Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos p...

Page 125: ...0 1mm Setting of page layout must be done in the standard mode In the page mode addLayout cannot be specified Constant type Description LAYOUT_RECEIPT Receipt without black mark LAYOUT_RECEIPT_BM Receipt with black mark LAYOUT_LABEL Die cut label without black mark LAYOUT_LABEL_BM Die cut label with black mark Paper Type Valid value range Description Receipt without black mark 0 Setup not necessar...

Page 126: ...thout black mark 0 to 1500 Distance from the top of label Die cut label with black mark 15 to 1500 Distance from the bottom of black mark Paper Type Valid value range Description Receipt without black mark 0 Setup not necessary Receipt with black mark 0 Die cut label without black mark 15 to 0 Distance from the bottom of label paper feed direction is a positive number Die cut label with black mark...

Page 127: ...fer to Appendix Printer Specifications Return value Exception Paper Type Valid value range Description Receipt without black mark 0 Setup not necessary Receipt with black mark 0 Die cut label without black mark 0 Die cut label with black mark 0 to 15 Distance from the top of black mark to the bottom of label Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Para...

Page 128: ...ers Mark Parameter sf width sa height sb margin_top se margin_bottom sc offset_cut sd offset_label sf sf sf sf sb sb sc sc sc sa sa sa Receipt Label se se sb sd Cut Cut Cut Bottom edge of print area Bottom edge of print area Standard eject Top position Bottomedge of label with Black Mark sc Top position Top position without Black Mark ...

Page 129: ...OSBuilder builder addLayout builder LAYOUT_RECEIPT_BM 580 0 15 0 script To set 58mm receipt with black mark script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addLayout builder LAYOUT_LABEL 580 0 15 15 25 script To set 58mm die cut label without black mark script type text javascript src epos print ...

Page 130: ...m errors that can be recovered from and clears the buffer Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder force true builder addRecovery script Recovers from errors that can be recover...

Page 131: ...xample Other printing commands in the print document are ignored Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addReset script Resets the printer ...

Page 132: ... Return value Exception Example ESC POS commands are not made public For details contact the dealer Return value Object type ePOS Print Builder Object ePOS Builder Exception Object type Parameter is invalid Error script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder var doc builder addCommand ABC x44 x45 x0a s...

Page 133: ...POS Print Builder object Syntax toString Return value Example Return value Object type Document to be printed String script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder var doc builder toString script ...

Page 134: ...FTONE_ERROR_DIFFUSION Error diffusion suitable for printing text and graphics together HALFTONE_THRESHOLD Threshold suitable for printing text only script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder var canvas document getElementById canvas if canvas getContext var context canvas getContext 2d builder halft...

Page 135: ...ness correction value The default value is 1 0 Example script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder var canvas document getElementById canvas if canvas getContext var context canvas getContext 2d builder brightness 2 2 builder addImage context 0 0 canvas width canvas height script To set brightness as...

Page 136: ...owing functions are enabled in forced transmission mode Drawer kick out addPulse method p 121 Stopping the buzzer addSound method p 123 Recovery from errors that can be recovered from addRecovery method p 130 Reset addReset method p 131 Sending commands in real time addCommand method p 132 script type text javascript src epos print 3 x x js script script type text javascript function buildMessage ...

Page 137: ... ePOS Print Builder object can be operated directly from this property for addition or deletion Example script type text javascript src epos print 3 x x js script script type text javascript function buildMessage var builder new epson ePOSBuilder builder addText ABCDE builder message script To clear the command and reset it to the initial state ...

Page 138: ... parameter Object type String Specifies the URL of the printer to send a print document to in firmware Ver 1 2 and later The URL is as follows Example 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 script type text javascript src epos print 3 x x js script script type text javascript function sendM...

Page 139: ...xception Object type Parameter is invalid Error XMLHttpRequest is not supported Error script type text javascript src epos print 3 x x js script script type text javascript function printHellowWorld var builder new epson ePOSBuilder builder addText Hello World n builder addCut var request builder toString var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new ep...

Page 140: ...the interval specified by the interval property Syntax open Example script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos oncoveropen function alert coveropen function startMonitor epos open function stopMonitor epos close script ...

Page 141: ...xample script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos oncoveropen function alert coveropen function startMonitor epos open function stopMonitor epos close script ...

Page 142: ...ed by the constructor Example 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 script type text javascript src epos print 3 x x js script script type text javascript var epos new epson ePOSPrint epos address http 192 168 192 168 cgi bin epos service cgi devid local_printer epos oncoveropen function a...

Page 143: ...tting for status event operation is retained using a logical value This is read only The default value is false Example script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos oncoveropen function alert coveropen epos open alert epos enabled script ...

Page 144: ...ue 3000 three seconds Minimum value 1000 one second or longer When an invalid value is specified it is assumed to be 3000 Example script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos interval 1000 epos oncoveropen function alert coveropen epos op...

Page 145: ...e status last obtained from the printer This is read only Default value 0 Example script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos onoffline function alert epos status epos open script ...

Page 146: ...printer status This is read only Default value 0 Example script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos onbatterylow function alert epos battery epos open script ...

Page 147: ...efault value 300000 5 minutes Example script type text javascript src epos print 3 x x js script script type text javascript var builder new epson ePOSBuilder builder addText Hello World n builder addCut var request builder toString var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos timeout 60000 epos onreceive function res alert...

Page 148: ...ttery status Number Value Description true or 1 Printing succeeded false or 0 Printing failed Value Description EPTR_AUTOMATICAL An automatically recoverable error occurred EPTR_COVER_OPEN A cover open error occurred EPTR_CUTTER An autocutter error occurred EPTR_MECHANICAL A mechanical error occurred EPTR_REC_EMPTY No paper in roll paper end sensor EPTR_UNRECOVERABLE An unrecoverable error occurre...

Page 149: ..._LINE Waiting to be brought back online ASB_PANEL_SWITCH The paper feed switch is being pressed ON ASB_MECHANICAL_ERR A mechanical error occurred ASB_AUTOCUTTER_ERR An autocutter error occurred ASB_UNRECOVER_ERR An unrecoverable error occurred ASB_AUTORECOVER_ERR An automatically recoverable error occurred ASB_RECEIPT_NEAR_END No paper in roll paper near end sensor ASB_RECEIPT_END No paper in roll...

Page 150: ...he model doesnʹt have a battery installed script type text javascript src epos print 3 x x js script script type text javascript function printHellowWorld var builder new epson ePOSBuilder builder addText Hello World n builder addCut var request builder toString var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos onreceive functio...

Page 151: ...responseText Response text String script type text javascript src epos print 3 x x js script script type text javascript function printHellowWorld var builder new epson ePOSBuilder builder addText Hello World n builder addCut var request builder toString var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos onerror function err var ...

Page 152: ... of the callback function Parameters status Name Status Object type Number Example script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos onstatuschange function status alert status epos open script ...

Page 153: ...1 2 and later Object type Function Example script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos onbatterystatuschange function battery alert battery epos open script script type text javascript src epos print 3 x x js script script type text java...

Page 154: ...script src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos onoffline function alert offline epos open script script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer...

Page 155: ...type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos oncoverok function alert coverok epos open script script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid...

Page 156: ...avascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos onpaperok function alert paperok epos open script script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_prin...

Page 157: ...pe text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos onpaperend function alert paperend epos open script script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid...

Page 158: ...vascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos ondraweropen function alert draweropen epos open script script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local...

Page 159: ...n firmware Ver 2 2 and later Object type Function Example script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson ePOSPrint address epos onbatterylow function alert batterylow epos open script ...

Page 160: ...160 ...

Page 161: ... 167 close Disables status event operation in firmware Ver 1 2 and later 168 recover Recovers from an error in firmware Ver 3 0 and later 169 reset Resets the printer in firmware Ver 3 0 and later 169 Property address URL of the printer in firmware Ver 1 2 and later 170 enabled Enabling disabling of status event in firmware Ver 1 2 and later 171 interval Printer status update interval in firmware ...

Page 162: ...OK event in firmware Ver 2 2 and later 195 onbatterylow Battery low event in firmware Ver 2 2 and later 195 ononline Online event in firmware Ver 1 2 and later 196 onoffline Offline event in firmware Ver 1 2 and later 196 onpoweroff Non response event in firmware Ver 1 2 and later 197 oncoverok Cover close event in firmware Ver 1 2 and later 197 oncoveropen Cover open event in firmware Ver 1 2 and...

Page 163: ...onstant ASB_ Response document status HALFTONE_ Halftone type MODE_ Color mode ALIGN_ Position alignment COLOR_ Color specification FEED_ Paper feed position of label paper black mark paper PAPER_ Type of papers Element API Description Page ...

Page 164: ... Optional parameter Object type String Specifies the address property URL of printer to be used for printing The URL is as follows Example http ePOS Print supported TM printer cgi bin epos service cgi devid device ID of printer to be used for printing timeout timeout time script type text javascript src epos print 3 x x js script script type text javascript function printCanvas var address http 19...

Page 165: ... Sets whether to cut paper mode Optional parameter Object type String Specifies the color mode in firmware Ver 1 2 and later Exception If an HTML5 Canvas image contains images downloaded from different domains you cannot print the image In this case a security error occurs due to violation of the same origin policy of JavaScript 2 is the syntax of compatible version It is recommended to use the sy...

Page 166: ... text javascript function printCanvas var 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 epos onerror function err alert err status epos print canvas script ...

Page 167: ...s the status at the interval specified by the interval property Syntax open Example script type text javascript src epos print 3 x x js script script type text javascript var 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 function stopMonitor epos close script...

Page 168: ...type text javascript src epos print 3 x x js script script type text javascript var 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 function stopMonitor epos close script ...

Page 169: ...int 3 x x js script script type text javascript var 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 recover epos recover script script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local...

Page 170: ...d by the constructor Example 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 script type text javascript src epos print 3 x x js script script type text javascript var epos new epson CanvasPrint epos address http 192 168 192 168 cgi bin epos service cgi devid local_printer epos oncoveropen function ...

Page 171: ...setting for status event operation is retained using a logical value This is read only The default value is false Example script type text javascript src epos print 3 x x js script script type text javascript var 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 epos open alert epos enabled scr...

Page 172: ...e 3000 three seconds Minimum value 1000 one second or longer When an invalid value is specified it is assumed to be 3000 Example script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson CanvasPrint address epos interval 1000 epos oncoveropen function alert coveropen epos o...

Page 173: ...the status last obtained from the printer This is read only Default value 0 Example script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson CanvasPrint address epos onoffline function alert epos status epos open script ...

Page 174: ...rinter status This is read only Default value 0 Example script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson CanvasPrint address epos onbatterylow function alert epos battery epos open script ...

Page 175: ...mes out onerror even is generated Default value 300000 5 minutes Example script type text javascript src epos print 3 x x js script script type text javascript var 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 timeout 60000 epos onreceive function res alert res success epos onerror f...

Page 176: ...ics only HALFTONE_ERROR_DIFFUSION Error diffusion suitable for printing text and graphics together HALFTONE_THRESHOLD Threshold suitable for printing text only To set the halftone type as error diffusion script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var canvas document getElementB...

Page 177: ...ified for the brightness correction value The default value is 1 0 Example To set brightness as 2 2 script type text javascript src epos print 3 x x js script script type text javascript var 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 brightness 2 2 epos print canvas script ...

Page 178: ...fter printing false 0 Default Do not cut paper It sets paper cut after printing script type text javascript src epos print 3 x x js script script type text javascript var 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 cut true epos print canvas script ...

Page 179: ...Monochrome 2 tone MODE_GRAY16 Multiple tones 16 tone Prints with multiple tones script type text javascript src epos print 3 x x js script script type text javascript var 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 mode epos MODE_GRAY16 epos print canvas script ...

Page 180: ...TER Alignment to the center ALIGN_RIGHT Alignment to the right Prints with center alignment script type text javascript src epos print 3 x x js script script type text javascript var 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 align epos ALIGN_CENTER epos print canvas script ...

Page 181: ..._1 1st color COLOR_2 2nd color COLOR_3 3rd color COLOR_4 4th color Prints with the 2nd color script type text javascript src epos print 3 x x js script script type text javascript var 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 color epos COLOR_2 epos print canvas script ...

Page 182: ..._CURRENT_TOF Default Feeds to the top of the current label FEED_NEXT_TOF Feeds to the top of the next label After printing a label it feeds paper to the peeling position script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var canvas document getElementById myCanvas var epos new epson Ca...

Page 183: ...ipt with black mark PAPER_LABEL Die cut label without black mark PAPAER_LABEL_BM Die cut label with black mark Prints a label script type text javascript src epos print 3 x x js script script type text javascript var 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 paper epos PAPER_LABE...

Page 184: ... Object type width Paper width Number height Paper height Number margin_top Top margin Number margin_bottom Bottom margin Number offset_cut Cutting position Number offset_label Bottom position of label Number Paper type Valid value range Description Receipt without black mark 0 Setup not necessary Receipt with black mark 0 auto 284 to 1550 manual Distance from the top of black mark to the top of n...

Page 185: ...thout black mark 0 to 1500 Distance from the top of label Die cut label with black mark 15 to 1500 Distance from the bottom of black mark Paper type Valid value range Description Receipt without black mark 0 Setup not necessary Receipt with black mark 0 Die cut label without black mark 15 to 0 Distance from the bottom of label paper feed direction is a positive number Die cut label with black mark...

Page 186: ...eceipt without black mark 0 Setup not necessary Receipt with black mark 0 Die cut label without black mark 0 Die cut label with black mark 0 to 15 Distance from the top of black mark to the bottom of label Mark Parameter sf width sa height sb margin_top se margin_bottom sc offset_cut sd offset_label sf sf sf sf sb sb sc sc sc sa sa sa Receipt Label se se sb sd Cut Cut Cut Bottom edge of print area...

Page 187: ...javascript var 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 paper epos PAPER_RECEIPT_BM epos layout width 580 height 0 margin_top 15 offset_cut 0 epos cut true epos print canvas script To set 58mm die cut label without black mark script type text javascript src epos print 3 x x js s...

Page 188: ...cript var 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 paper epos PAPER_LABEL_BM epos layout width 580 height 0 margin_top 15 margin_bottom 15 offset_cut 25 offset_label 15 epos cut true epos print canvas script ...

Page 189: ...r battery p 190 Battery status Number Value Decription true or 1 Printing succeeded false or 0 Printing failed Value Decription EPTR_AUTOMATICAL An automatically recoverable error occurred EPTR_COVER_OPEN A cover open error occurred EPTR_CUTTER An autocutter error occurred EPTR_MECHANICAL A mechanical error occurred EPTR_REC_EMPTY No paper in roll paper end sensor EPTR_UNRECOVERABLE An unrecoverab...

Page 190: ...ASB_AUTOCUTTER_ERR An autocutter error occurred ASB_UNRECOVER_ERR An unrecoverable error occurred ASB_AUTORECOVER_ERR An automatically recoverable error occurred ASB_RECEIPT_NEAR_END No paper in roll paper near end sensor ASB_RECEIPT_END No paper in roll paper end sensor ASB_BUZZER A buzzer is on only for applicable devices ASB_WAIT_REMOVE_LABEL Waiting period for removal of label only for applica...

Page 191: ...int 3 x x js script script type text javascript function printCanvas var 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 success var code res code var status res status alert success epos print canvas script ...

Page 192: ...atus HTTP status Number responseText Responce text String To print Canvas ID myCanvas To display the HTTP status code in a message box when a communication error occurs script type text javascript src epos print 3 x x js script script type text javascript function printCanvas var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var canvas document getElementById myCanvas v...

Page 193: ...status Parameter of the callback function Parameters status Name Status Object type Number Example script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson CanvasPrint address epos onstatuschange function status alert status epos open script ...

Page 194: ...f the callback function Parameters battery Name Battery status Object type Number Example script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson CanvasPrint address epos onbatterystatuschange function battery alert battery epos open script ...

Page 195: ...t type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson CanvasPrint address epos onbatteryok function alert batteryok epos open script script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service c...

Page 196: ...pt src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson CanvasPrint address epos ononline function alert online epos open script script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var...

Page 197: ...pt type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson CanvasPrint address epos onpoweroff function alert poweroff epos open script script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cg...

Page 198: ...ascript src epos print 3 x x js script script type text javascript var 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 epos open script script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_...

Page 199: ... type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson CanvasPrint address epos onpapernearend function alert papernearend epos open script script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos serv...

Page 200: ...ipt src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid local_printer var epos new epson CanvasPrint address epos ondrawerclosed function alert drawerclosed epos open script script type text javascript src epos print 3 x x js script script type text javascript var address http 192 168 192 168 cgi bin epos service cgi devid loca...

Page 201: ...ackage This tool allows you to create an ePOS Print API p 59 sample code as you like Use this tool for your Web application development ePOS 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 ...

Page 202: ...rʹs HTML file placed on the local disk some functionality does not operate due to your Web browserʹs security policy Place the HTML file of ePOS Editor to a folder under Web server In Google Chrome when a preview image including pictures is displayed a ʺSECURITY_ERR DOM Exception 18ʺ error occurs In Windows Internet Explorer 9 when printing is performed a ʺSCRIPT5 Access is denied ʺ error occurs ...

Page 203: ...e Preview screen resizes 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 Specify the print timeout time in milliseconds The maximum value is 60000 60 seconds Monito...

Page 204: ...and drag an icon to insert it anywhere in the edit area Edit area Displays the functions selected in the menu area Drag an element to change its position An element can be deleted using the x button located on its right side Import Using ePOS Print XML ePOS Print Editor can import XML data stored in the past For details refer to Import p 208 Clear Deletes the edited details Forced Transmission Set...

Page 205: ...ment Example When the 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 paper cut are displayed as icons The layout may change depending on the preview settings For details ...

Page 206: ...PI 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 ...

Page 207: ...Print XML box and press the Send button The ePOS Print XML print document created using the Edit tab page is displayed in Data to be sent ePOS Print XML 3 The print document is printed to ePOS Print supported TM printer The acquired status is displayed in the Information box Item Description Data to be sent ePOS Print XML The ePOS Print XML document is displayed Send Sends data to the printer and ...

Page 208: ...the Data to be import ePOS Print XML box 3 Click the Apply button 4 The Confirmation screen appears Click the Yes button Note that you cannot perform import operation using ePOS Print API source code Perform import operation using ePOS Print XML print data Item Description Data to be import ePOS Print XML Paste and check the ePOS Print XML print document to be imported Apply Imports the ePOS Print...

Page 209: ...st dot from the top of the character Font B At the 16th dot from the top of the character Default Line Feed Space 30 dots Color Specification First color Page Mode Default Area 512 dots x 831 dots W x H Page Mode Maximum Area 512 dots x 1662 dots W x H Raster image Monochrome image two color image Logo Monochrome image two color image Bar Code UPC A UPC E EAN13 JAN13 EAN8 JAN8 CODE39 ITF CODABAR C...

Page 210: ...feed position for labels black mark paper Not supported Drawer Kick Out Supported Buzzer Optional Pattern A Pattern E Error No paper Stop Paper Layout Settings Not supported Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 80mm ...

Page 211: ... Line Feed Space 30 dots Color Specification First color Page Mode Default Area 512 dots x 831 dots W x H 360 dots x 831 dots W x H Page Mode Maximum Area 512 dots x 1662 dots W x H 360 dots x 1662 dots W x H Raster image Monochrome image two color image Logo Monochrome image two color image Bar Code UPC A UPC E EAN13 JAN13 EAN8 JAN8 CODE39 ITF CODABAR CODE93 CODE128 GS1 128 GS1 DataBar Omnidirect...

Page 212: ... Buzzer Optional Pattern A Pattern E Error No paper Stop Paper Layout Settings Not supported Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 80mm 58mm ...

Page 213: ...t Line Feed Space 30 dots Color Specification First color First color Second color when two color printing is set Page Mode Default Area 512 dots x 831 dots W x H 360 dots x 831 dots W x H when two color printing is set 512 dots x 415 dots W x H 360 dots x 415 dots W x H Page Mode Maximum Area 512 dots x 1662 dots W x H 360 dots x 1662 dots W x H when two color printing is set 512 dots x 831 dots ...

Page 214: ...tion for labels black mark paper Not supported Drawer Kick Out Supported Buzzer Not supported Paper Layout Settings Not supported Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 80mm 58mm ...

Page 215: ...he 21st dot from the top of the character Font B At the 15th dot from the top of the character Default Line Feed Space 30 dots Color Specification First color Page Mode Default Area 512 dots x 1662 dots W x H Page Mode Maximum Area 512 dots x 1662 dots W x H Raster image Monochrome image Logo Monochrome image Bar Code UPC A UPC E EAN13 JAN13 EAN8 JAN8 CODE39 ITF CODABAR CODE93 CODE128 Two Dimensio...

Page 216: ...216 Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 80mm ...

Page 217: ...Font A At the 21st dot from the top of the character Font B At the 15th dot from the top of the character Default Line Feed Space 30 dots Color Specification First color Page Mode Default Area 576 dots x 1662 dots W x H Page Mode Maximum Area 576 dots x 1662 dots W x H Raster image Monochrome image Logo Monochrome image Bar Code UPC A UPC E EAN13 JAN13 EAN8 JAN8 CODE39 ITF CODABAR CODE93 CODE128 T...

Page 218: ...218 Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 80mm ...

Page 219: ...eline Font A At the 21st dot from the top of the character Font B At the 15th dot from the top of the character Default Line Feed Space 30 dots Color Specification First color Page Mode Default Area 512 dots x 1662 dots W x H Page Mode Maximum Area 512 dots x 1662 dots W x H Raster image Monochrome image Logo Monochrome image Bar Code UPC A UPC E EAN13 JAN13 EAN8 JAN8 CODE39 ITF CODABAR CODE93 COD...

Page 220: ...220 Paper Layout Settings Not supported Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 80mm ...

Page 221: ...t A At the 21st dot from the top of the character Font B At the 15th dot from the top of the character Default Line Feed Space 30 dots Color Specification First color Page Mode Default Area 576 dots x 1662 dots W x H 416 dots x 1662 dots W x H Page Mode Maximum Area 576 dots x 1662 dots W x H 416 dots x 1662 dots W x H Raster image Monochrome image Logo Monochrome image Bar Code UPC A UPC E EAN13 ...

Page 222: ...222 Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 80mm 58mm ...

Page 223: ...4 dots W x H Font B ANK 10 dots x 24 dots W x H Font C ANK 8 dots x 16 dots W x H Character Baseline Font A At the 21st dot from the top of the character Font B At the 21 st dot from the top of the character Font C At the 15 st dot from the top of the character Default Line Feed Space 30 dots Color Specification First color First color Second color when two color printing is set Raster Image Monoc...

Page 224: ... color printing is set 576 dots 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 Supported Drawer Kick Out Supported Buzzer Not supported Paper Layout Settings Not supported With automatic setup mode Forced transmission mode Supported Recovery from an error Supported Reset S...

Page 225: ... dots W x H Font B ANK 10 dots x 24 dots W x H Font C ANK 8 dots x 16 dots W x H Character Baseline Font A At the 21st dot from the top of the character Font B At the 21 st dot from the top of the character Font C At the 15 st dot from the top of the character Default Line Feed Space 30 dots Color Specification First color First color Second color when two color printing is set Raster Image Monoch...

Page 226: ... color printing is set 576 dots 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 Supported Drawer Kick Out Supported Buzzer Not supported Paper Layout Settings Not supported With automatic setup mode Forced transmission mode Supported Recovery from an error Supported Reset S...

Page 227: ...1st dot from the top of the character Font B At the 16 th dot from the top of the character Default Line Feed Space 30 dots Color Specification First color First color Second color when two color printing is set Raster Image Monochrome image Two color image Logo Monochrome image Two color image To perform two color printing change the settings of the printer using the memory switch setting utility...

Page 228: ... H 512 dots x 831 dots W x H Page Mode Line Not supported Rectangle Specification of the paper feed position for labels black mark paper Not supported Paper Cut Cut Feed cut Drawer Kick Out Supported Buzzer Supported via Drawer Kick Out Paper Layout Settings Not supported Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 58mm 60mm 80mm ...

Page 229: ...rom the top of the character Font B At the 21 st dot from the top of the character Font C At the 15 th dot from the top of the character Default Line Feed Space 30 dots Color Specification First color Raster Image Monochrome image Logo Monochrome image Bar Code UPC A UPC E EAN13 JAN13 EAN8 JAN8 CODE39 ITF CODABAR CODE93 CODE128 GS1 128 GS1 DataBar Omnidirectional GS1 DataBar Truncated GS1 DataBar ...

Page 230: ...he paper feed position for labels black mark paper Not supported Drawer Kick Out Not supported Buzzer Support Pattern1 Pattern 10 Stop Paper Layout Settings Not supported Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported Receipt 58mm Receipt 60mm ...

Page 231: ...t C ANK 8 dots x 16 dots W x H Character Baseline Font A At the 21st dot from the top of the character Font B At the 21 st dot from the top of the character Font C At the 15 th dot from the top of the character Default Line Feed Space 30 dots Color Specification First color Raster Image Monochrome image Logo Monochrome image Bar Code UPC A UPC E EAN13 JAN13 EAN8 JAN8 CODE39 ITF CODABAR CODE93 CODE...

Page 232: ...ayout Settings Supported Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported Paper type Receipt paper without black mark Receipt paper with black mark Die cut label paper without black mark Die cut label paper with black mark width sf 290 to 600 290 to 600 290 to 600 290 to 600 height sa 0 0 284 to 1550 0 284 to 1550 0 284 to 1550 margin_top sb 0 1...

Page 233: ...n mode ANK 60 characters Character Size Font A ANK 12 dots x 24 dots W x H Font B ANK 9 dots x 17 dots W x H Font A ANK 13 dots x 24 dots W x H Font B ANK 9 dots x 17 dots W x H Character Baseline Font A At the 21st dot from the top of the character Font B At the 15 th dot from the top of the character Default Line Feed Space 3 75 mm 0 15 Color Specification First color Raster Image Monochrome ima...

Page 234: ...e Rectangle Paper Cut Feed cut Feeds paper to cutting position Specification of the paper feed position for labels black mark paper Supported Only for black mark paper Drawer Kick Out Not supported Buzzer Support Pattern1 Pattern 10 Stop Paper Layout Settings Supported Only for receipt paper Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported Paper...

Page 235: ... st dot from the top of the character Default Line Feed Space 30 dots Color Specification First color Raster Image Monochrome image Logo Monochrome image Bar Code UPC A UPC E EAN13 JAN13 EAN8 JAN8 CODE39 ITF CODABAR CODE93 CODE128 GS1 128 GS1 DataBar Omnidirectional GS1 DataBar Truncated GS1 DataBar Limited GS1 DataBar Expanded Two Dimensional Code PDF417 QR Code MaxiCode GS1 DataBar Stacked GS1 D...

Page 236: ...lack mark paper Not supported Drawer Kick Out Supported Buzzer Optional Pattern A Pattern E Error No paper Stop Paper Layout Settings Not supported Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 58mm 80mm ...

Page 237: ...characters ANK 30 characters Character Size Font A ANK 4 5 dots x 9 dots W x H Font B ANK 3 5 dots x 9 dots W x H Character Baseline Font A Bottom of the characters Font B Bottom of the characters Default Line Feed Space 12 dots Color Specification First color First color Second color When using a two color ribbon cassette Raster Image Monochrome image Logo Not supported Bar Code Not supported Two...

Page 238: ...or labels black mark paper Not supported Drawer Kick Out Supported Buzzer Not supported Paper Layout Settings Not supported Forced transmission mode Not supported Recovery from an error Not supported Reset Supported Command Supported 76mm 70mm 58mm ...

Page 239: ...ghts up press the FEED button twice and close the cover 4 Select the paper width according to the operation method to be printed Automatic setting of paper layout 1 Turn the printer s power off and set the paper 2 While the cover is opened turn the power on while pressing the FEED button 3 After confirming the ERROR LED lights up press the FEED button 6 times and close the cover In case of TM L90 ...

Page 240: ...le Rendering Text canvas print text html p 241 Rendering Images canvas print image html p 243 Rendering Graphics canvas print graph html p 245 Rendering Handwritten Images canvas print hand html p 247 Rendering Barcode canvas print barcode html p 249 Rendering Barcode canvas print barcode html p 249 The Web pages introduced here are embedded into the sample program For the details about how to pla...

Page 241: ...rint text html 2 EPSON ePOS Print Sample Program appears Set items on the right of the page The following items can be set Item Dscription Position Specify the rendering coordinates Text Specify the text to be printed Style Specify the text style Clear Clears the image drawn in the Canvas Reset Clears the image drawn in the Canvas In addition the settings are reset to their default values 1 4 2 3 ...

Page 242: ...rint 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 Brightness Adjust the brightness Gamma value in the range 0 1 10 0 Halftone Set the halftone processing method for monochrome printing two tone Cut Paper When this item is selected feed cut is performed after printing Alignment Spec...

Page 243: ...m Description Position Specify the rendering coordinates Size Specify the width and height of the image Angle Specify the rotation angle of the image The rotation angle is counted clockwise from the top left corner Image File in the same server Specify the path to the image file In this Web page specify the name of an image file placed under the same directory as this Web page Clear Clears the ima...

Page 244: ...int 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 Brightness Adjust the brightness Gamma value in the range 0 1 10 0 Halftone Set the halftone processing method for monochrome printing two tone Cut Paper When this item is selected feed cut is performed after printing Alignment Speci...

Page 245: ...e page The following items can be set 3 Click the Draw button The image is drawn on Canvas on the left of the page according to the settings made on the right of the page Item Desctiption Fill Settings Specify the fill type and color Rectangle Specify the start coordinates width and height Circle Specify the central coordinates and radius Clear Clears the image drawn in the Canvas Reset Clears the...

Page 246: ... of printer to be used for printing timeout timeout time Mode Set the color mode Monochrome Grayscale Brightness Adjust the brightness Gamma value in the range 0 1 10 0 Halftone Set the halftone processing method for monochrome printing two tone Cut Paper When this item is selected feed cut is performed after printing Alignment Specify the printing position alignment Color Monochrome Specify the p...

Page 247: ...wser http Web server IP address canvas canvas print hand html 2 EPSON ePOS Print Sample Program appears Set the size of the pen on the right of the page 3 Draw a freehand line on Canvas on the left of the page For the mouse drag it to draw a line for the touch screen monitor draw a line on the touch screen To erase the drawn image click the Clear button 1 4 2 3 ...

Page 248: ...of printer to be used for printing timeout timeout time Mode Set the color mode Monochrome Grayscale Brightness Adjust the brightness Gamma value in the range 0 1 10 0 Halftone Set the halftone processing method for monochrome printing two tone Cut Paper When this item is selected feed cut is performed after printing Alignment Specify the printing position alignment Color Monochrome Specify the pr...

Page 249: ...the right of the page The following items can be set Item Description Position Specify the rendering coordinates Module Size Specify the width and height of the bars Data Specify EAN13 JAN13 data For 12 digit numerical data calculate and add the check digit For 13 digit numerical data verify the check digit For UPC A data add 0 at the start of the string to make it 12 or 13 digit data Clear Clears...

Page 250: ...int 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 Brightness Adjust the brightness Gamma value in the range 0 1 10 0 Halftone Set the halftone processing method for monochrome printing two tone Cut Paper When this item is selected feed cut is performed after printing Alignment Speci...

Page 251: ...iption Name Specifies print data in the name field of label Description Specifies print data in the description field of label Code Prints barcode corresponding to the value EAN13 JAN13 In case of 12 digits check digit is added In case of 13 digits check digit is added UPC A Add 0 at the beginning and adjust to 12 to 13 digits Price Specifies print data in the price field of label Clear Clears the...

Page 252: ...ode Monochrome Grayscale Brightness Adjust the brightness Gamma value in the range 0 1 10 0 Halftone Monochrome Set the halftone processing method for monochrome printing two tone Alignment Specify the printing position alignment Color Monochrome Specify the printing color in 2 tone Paper Specifie the paper type Feed to Specify the paper feeding position Cut Paper When this item is selected feed c...

Page 253: ...print the following Queue Ticket Coupon Label 255 2 Settings Display the Settings screen Set up the following Specifies the IP address of the ePOS Print supported printer Default value 192 168 192 168 Specifies the Device ID of the printer to print queue ticket numbers and coupons Default value local_printer Specifies the timeout time default 60000 Prints coupons in gray scale Only for supported m...

Page 254: ...ge Coupon ePOS Print Canvas API Your Number ePOS Print API Label ePOS Print API Name Color Code 2012001 Item A Red Your Number Die cut label mount width 58mm or above Label size width 54 mm x height 25 4 mm or above ...

Page 255: ...d 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 file using Visual Studio 4 Start debugging Item Description Development environment example Microsoft Visual Studio 2012 Required than Windows 8 Sample program file name win8 ePOS Print Demo zip ...

Page 256: ... the value becomes 192 168 192 168 TM Printer 192 168 192 168 Device ID of the target printer Specifies the Device ID of the printer to print queue ticket numbers and coupons Default value local_printer Print timeout milliseconds Specifies the timeout time default 60000 Print in grayscale Coupon Only for supported models Prints coupons in gray scale Default No Set the paper layout Label Only for T...

Page 257: ...from the left screen There are following printing types 2 Press Print Item Description Queue Ticket Prints queue ticket numbers This is a sample program using the ePOS Print API Coupon Prints coupons This is a sample program using the ePOS Print Canvas API Label Prints labels This is a sample program using the ePOS Print API ...

Page 258: ...258 ...

Reviews: