ePOS-Print API Users Manual
Page 4
...TM-T88V-i TM-T70-i TM-L90-i Manual Content The manual is made up of the following sections: Chapter 1 Overview Chapter 2 Sample Program Chapter 3 Programming Guide Chapter 4 ePOS-Print API Chapter 5 ePOS-Print Canvas API Chapter 6 ePOS-Print Editor Appendix Printer specifications Paper... setting function of the Manual This manual is a generic term for building/designing an ePOS-Print API system or developing/designing an ePOS-Print printer application. The TM-i series in HTML5 Canvas Windows ...
...TM-T88V-i TM-T70-i TM-L90-i Manual Content The manual is made up of the following sections: Chapter 1 Overview Chapter 2 Sample Program Chapter 3 Programming Guide Chapter 4 ePOS-Print API Chapter 5 ePOS-Print Canvas API Chapter 6 ePOS-Print Editor Appendix Printer specifications Paper... setting function of the Manual This manual is a generic term for building/designing an ePOS-Print API system or developing/designing an ePOS-Print printer application. The TM-i series in HTML5 Canvas Windows ...
ePOS-Print API Users Manual
Page 8
ePOS-Print Canvas API 161 ■ List of ePOS-Print Canvas API functions 161 window.epson.CanvasPrint Components 161 ■ ePOS-Print Canvas API Object 164 Constructor ...164 print method ...165 open method ...167 close ...property ...175 halftone property ...176 brightness 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 ...
ePOS-Print Canvas API 161 ■ List of ePOS-Print Canvas API functions 161 window.epson.CanvasPrint Components 161 ■ ePOS-Print Canvas API Object 164 Constructor ...164 print method ...165 open method ...167 close ...property ...175 halftone property ...176 brightness 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 ...
ePOS-Print API Users Manual
Page 9
...; Printer specifications ...209 TM-T88V-i ...209 TM-T88V ...211 TM-T88IV ...213 TM-T70-i...215 TM-T70-i (Multi-language model) ...217 TM-T70...219 TM-T70 (Multi-language model) ...221 TM-L90-i ...223 TM-L90 ...225 TM-T90...227 TM-P60II ...229 TM-P60II with Peeler ...231 TM-P80 ...233 TM-T20...235 TM-U220...237 ■ Paper setting function of TM-L90 239 Setting Paper Width...239 Automatic setting...
...; Printer specifications ...209 TM-T88V-i ...209 TM-T88V ...211 TM-T88IV ...213 TM-T70-i...215 TM-T70-i (Multi-language model) ...217 TM-T70...219 TM-T70 (Multi-language model) ...221 TM-L90-i ...223 TM-L90 ...225 TM-T90...227 TM-P60II ...229 TM-P60II with Peeler ...231 TM-P80 ...233 TM-T20...235 TM-U220...237 ■ Paper setting function of TM-L90 239 Setting Paper Width...239 Automatic setting...
ePOS-Print API Users Manual
Page 13
Print Example ePOS-Print API Chapter 1 Overview Printing a Logo Alignment: Center Paper Feed 1 Paper Feed and Paper Cut Your Number: Printing a raster image Printing text in the double-sized width style Scale: x 6 (horizontal) and x 4 (vertical) Alignment: Center Printing a Barcode 13
Print Example ePOS-Print API Chapter 1 Overview Printing a Logo Alignment: Center Paper Feed 1 Paper Feed and Paper Cut Your Number: Printing a raster image Printing text in the double-sized width style Scale: x 6 (horizontal) and x 4 (vertical) Alignment: Center Printing a Barcode 13
ePOS-Print API Users Manual
Page 16
... (device font)/double-sizing/scale/smoothing/print position) ❏ Character style setting (inversion of black and white/underline/bold) ❏ Paper feed setting (in dots/in HTML5 Canvas ❏ Control of images (raster images) rendered in lines) ❏ Image printing (raster... Printer Specifications. Features The installed functions vary depending 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/...
... (device font)/double-sizing/scale/smoothing/print position) ❏ Character style setting (inversion of black and white/underline/bold) ❏ Paper feed setting (in dots/in HTML5 Canvas ❏ Control of images (raster images) rendered in lines) ❏ Image printing (raster... Printer Specifications. Features The installed functions vary depending 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/...
ePOS-Print API Users Manual
Page 40
... printer Print timeout (millisecond) Print in grayscale (Coupon) (Only for supported models) Set the paper layout (Label) (Only for TM-P60II) Description Specifies the IP address of the ePOS-Print supported TM printer. (Default value: TM-i: DHCP (If an address fails to be assigned via DHCP, the value becomes "192...
... printer Print timeout (millisecond) Print in grayscale (Coupon) (Only for supported models) Set the paper layout (Label) (Only for TM-P60II) Description Specifies the IP address of the ePOS-Print supported TM printer. (Default value: TM-i: DHCP (If an address fails to be assigned via DHCP, the value becomes "192...
ePOS-Print API Users Manual
Page 41
The line feed space is suitable for the type of printing such as printing receipts that requires the paper length to change according to write programs in the print positions (coordinates). 3 41 ePOS-Print API Print Mode There are printed line by line. This ...
The line feed space is suitable for the type of printing such as printing receipts that requires the paper length to change according to write programs in the print positions (coordinates). 3 41 ePOS-Print API Print Mode There are printed line by line. This ...
ePOS-Print API Users Manual
Page 50
....ASB_PANEL_SWITCH) { msg += ' Panel switch is feeding paper\n'; } if (asb & epos.ASB_WAIT_ON_LINE) { msg += ' Waiting for the error handling method by a callback function. //Create an ePOS-Print object var epos = new epson.ePOSPrint(address); // Set a response receipt callback function...) { msg += ' Offline status\n'; } if (asb & epos.ASB_COVER_OPEN) { msg += ' Cover is open\n'; } if (asb & epos.ASB_PAPER_FEED) { msg += ' Paper feed 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...
....ASB_PANEL_SWITCH) { msg += ' Panel switch is feeding paper\n'; } if (asb & epos.ASB_WAIT_ON_LINE) { msg += ' Waiting for the error handling method by a callback function. //Create an ePOS-Print object var epos = new epson.ePOSPrint(address); // Set a response receipt callback function...) { msg += ' Offline status\n'; } if (asb & epos.ASB_COVER_OPEN) { msg += ' Cover is open\n'; } if (asb & epos.ASB_PAPER_FEED) { msg += ' Paper feed 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...
ePOS-Print API Users Manual
Page 51
.../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 epos.open(); 3 51
.../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 epos.open(); 3 51
ePOS-Print API Users Manual
Page 55
For the details about the printer end point address, refer to select paper cut = true; var context = canvas.getContext('2d'); . . Refer to Printer End Point Address (p.48). TITLE function drawCanvas() { // Rendering in HTML5 Canvas is printed ...= 'http://192.168.192.168/cgi-bin/epos/ service.cgi?devid=local_printer&timeout=10000'; //Create an ePOS-Print Canvas API object 3 var epos = new epson.CanvasPrint(address); //Print epos.cut ; Create an ePOS-Print Canvas API object using the ePOS-Print Canvas API. Chapter 3 Programming Guide Prints an Canvas image...
For the details about the printer end point address, refer to select paper cut = true; var context = canvas.getContext('2d'); . . Refer to Printer End Point Address (p.48). TITLE function drawCanvas() { // Rendering in HTML5 Canvas is printed ...= 'http://192.168.192.168/cgi-bin/epos/ service.cgi?devid=local_printer&timeout=10000'; //Create an ePOS-Print Canvas API object 3 var epos = new epson.CanvasPrint(address); //Print epos.cut ; Create an ePOS-Print Canvas API object using the ePOS-Print Canvas API. Chapter 3 Programming Guide Prints an Canvas image...
ePOS-Print API Users Manual
Page 57
... += ' Auto recovery error generated\n'; } if (asb & epos.ASB_RECEIPT_NEAR_END) { msg += ' No paper in the roll paper near end detector\n'; } if (asb & epos.ASB_RECEIPT_END) { msg += ' No paper in the roll paper end detector\n'; } if (asb & epos.ASB_BUZZER) { msg += ' Sounding the buzzer (limited model...)\n'; } if (asb & epos.ASB_SPOOLER_IS_STOPPED) { msg += ' Stop the spooler\n'; } //Display in the dialog box alert(msg); } 57 var epos = new epson.CanvasPrint...
... += ' Auto recovery error generated\n'; } if (asb & epos.ASB_RECEIPT_NEAR_END) { msg += ' No paper in the roll paper near end detector\n'; } if (asb & epos.ASB_RECEIPT_END) { msg += ' No paper in the roll paper end detector\n'; } if (asb & epos.ASB_BUZZER) { msg += ' Sounding the buzzer (limited model...)\n'; } if (asb & epos.ASB_SPOOLER_IS_STOPPED) { msg += ' Stop the spooler\n'; } //Display in the dialog box alert(msg); } 57 var epos = new epson.CanvasPrint...
ePOS-Print API Users Manual
Page 58
.../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(); 58
.../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(); 58
ePOS-Print API Users Manual
Page 60
...Adds a tag for specifying the print Page- - ● 111 tion direction in page mode. ● 117 Cut addCut Adds a tag for paper cut. - ● 119 Drawer kickout addPulse Adds a tag for specifying the print addPageArea area in page mode. - ● 115 ...addPageRect- angle in page mode. Feed Adds control of label paper/black addFeedPosition ● mark paper to command buffer ● 83 - 84 addFeed Adds a line feed to the command ● buffer. - 86 Graphic addImage ...
...Adds a tag for specifying the print Page- - ● 111 tion direction in page mode. ● 117 Cut addCut Adds a tag for paper cut. - ● 119 Drawer kickout addPulse Adds a tag for specifying the print addPageArea area in page mode. - ● 115 ...addPageRect- angle in page mode. Feed Adds control of label paper/black addFeedPosition ● mark paper to command buffer ● 83 - 84 addFeed Adds a line feed to the command ● buffer. - 86 Graphic addImage ...
ePOS-Print API Users Manual
Page 61
... a tag for turning on ePOS-Print Builder ● object. - 123 - 125 - 130 - 131 ● 132 - 133 4 61 ated by on the buzzer. ● Adds the paper layout setup to the command ● buffer. Sends ESC/POS commands.
... a tag for turning on ePOS-Print Builder ● object. - 123 - 125 - 130 - 131 ● 132 - 133 4 61 ated by on the buzzer. ● Adds the paper layout setup to the command ● buffer. Sends ESC/POS commands.
ePOS-Print API Users Manual
Page 62
...position two-dimensional code type error correction level line style page mode print direction paper cut type drawer kick-out connector drawer kick-out pulse length buzzer sound pattern Paper feed position of label paper/black mark paper Type of images and barcodes, etc.) ❏ Range Depending on ...type (in firmware Ver.1.2 and later) Color mode (in dots for units that represent length. (Print position, paper feed space, width and height of papers Numerical values to be set to parameters In the ePOS-Print Builder object API, numerical values are set to some parameters.
...position two-dimensional code type error correction level line style page mode print direction paper cut type drawer kick-out connector drawer kick-out pulse length buzzer sound pattern Paper feed position of label paper/black mark paper Type of images and barcodes, etc.) ❏ Range Depending on ...type (in firmware Ver.1.2 and later) Color mode (in dots for units that represent length. (Print position, paper feed space, width and height of papers Numerical values to be set to parameters In the ePOS-Print Builder object API, numerical values are set to some parameters.
ePOS-Print API Users Manual
Page 63
Chapter 4 ePOS-Print API window.epson.ePOSPrint Components Element API Constructor ePOS-Print Method send open Property close address enabled Event interval status battery timeout onreceive onerror onstatuschange onbatterystatuschange ononline ...later) Cover close event 155 (in firmware Ver.1.2 and later) Cover open event 155 (in firmware Ver.1.2 and later) Paper remaining event 156 (in firmware Ver.1.2 and later) Paper near end event 156 (in firmware Ver.1.2 and later) Paper end event 157 (in firmware Ver.1.2 and later) 63
Chapter 4 ePOS-Print API window.epson.ePOSPrint Components Element API Constructor ePOS-Print Method send open Property close address enabled Event interval status battery timeout onreceive onerror onstatuschange onbatterystatuschange ononline ...later) Cover close event 155 (in firmware Ver.1.2 and later) Cover open event 155 (in firmware Ver.1.2 and later) Paper remaining event 156 (in firmware Ver.1.2 and later) Paper near end event 156 (in firmware Ver.1.2 and later) Paper end event 157 (in firmware Ver.1.2 and later) 63
ePOS-Print API Users Manual
Page 65
Constructor Constructor for printer control commands that specify strings or graphics to be printed, paper cut, etc. Creates a new ePOS-Print Builder object and initializes it. Chapter 4 ePOS-Print API ePOS-Print Builder Object This objects creates a print document for an ePOS-Print Builder object. Syntax ePOSBuilder(); Example 4 65
Constructor Constructor for printer control commands that specify strings or graphics to be printed, paper cut, etc. Creates a new ePOS-Print Builder object and initializes it. Chapter 4 ePOS-Print API ePOS-Print Builder Object This objects creates a print document for an ePOS-Print Builder object. Syntax ePOSBuilder(); Example 4 65
ePOS-Print API Users Manual
Page 69
Parameter data : ( Required parameter, Object type : String) Specify a character string to print content other than text, execute line feed or paper feed. • In page mode, characters are laid out in the current print position with the reference point being the character baseline dot (Printer specifications (p....
Parameter data : ( Required parameter, Object type : String) Specify a character string to print content other than text, execute line feed or paper feed. • In page mode, characters are laid out in the current print position with the reference point being the character baseline dot (Printer specifications (p....
ePOS-Print API Users Manual
Page 82
Parameter unit : ( Required parameter, Object type : Number) Specifies the paper feed space (in dots to 255. addFeedUnit method Adds paper feeding in dots). Specifies an integer from 0 to the command buffer. Return value Return value ePOS-Print Builder Object Object type ePOS Builder Exception Parameter " ... " is invalid Exception Object type Error Example To feed paper by 30 dots: 82 Syntax addFeedUnit(unit);
Parameter unit : ( Required parameter, Object type : Number) Specifies the paper feed space (in dots to 255. addFeedUnit method Adds paper feeding in dots). Specifies an integer from 0 to the command buffer. Return value Return value ePOS-Print Builder Object Object type ePOS Builder Exception Parameter " ... " is invalid Exception Object type Error Example To feed paper by 30 dots: 82 Syntax addFeedUnit(unit);
ePOS-Print API Users Manual
Page 83
Specifies an integer from 0 to the command buffer. Chapter 4 ePOS-Print API addFeedLine method Adds paper feeding in lines). " is invalid Exception Object type Error Example To feed paper by 3 lines: 83 Return value ePOS-Print Builder Object Object type ePOS Builder Exception Parameter " ... Parameter line : Return value ( Required parameter, Object type : Number) Specifies the paper feed space (in lines to 255. Syntax addFeedLine(line);
Specifies an integer from 0 to the command buffer. Chapter 4 ePOS-Print API addFeedLine method Adds paper feeding in lines). " is invalid Exception Object type Error Example To feed paper by 3 lines: 83 Return value ePOS-Print Builder Object Object type ePOS Builder Exception Parameter " ... Parameter line : Return value ( Required parameter, Object type : Number) Specifies the paper feed space (in lines to 255. Syntax addFeedLine(line);