ePOS-Print API Users Manual
Page 7
... 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 onoffline event ...154 onpoweroff event...
... 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 onoffline event ...154 onpoweroff event...
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 method...168 ...recover method ...169 reset method ...169 address property ...170 enabled property...171 interval property ...172 status property ...173 battery property ...174 timeout property ...175 halftone property ...176 brightness property ...177 cut property ...178 mode property ...179 align property ...180 color property ...181...
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 method...168 ...recover method ...169 reset method ...169 address property ...170 enabled property...171 interval property ...172 status property ...173 battery property ...174 timeout property ...175 halftone property ...176 brightness property ...177 cut property ...178 mode property ...179 align property ...180 color property ...181...
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 onoffline onpoweroff oncoverok oncoveropen onpaperok ...(in firmware Ver.1.2 and later) Printer status update interval 144 (in firmware Ver.1.2 and later) Status 145 Battery status 146 The connecting was timeout. 147 Response message receipt event 148 Communication error event 151 Status change event ...
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 onoffline onpoweroff oncoverok oncoveropen onpaperok ...(in firmware Ver.1.2 and later) Printer status update interval 144 (in firmware Ver.1.2 and later) Status 145 Battery status 146 The connecting was timeout. 147 Response message receipt event 148 Communication error event 151 Status change event ...
ePOS-Print API Users Manual
Page 64
Element API Event ondrawerclosed ondraweropen onbatteryok onbatterylow Constant ASB_* Description Drawer close event (in firmware Ver.1.2 and later) Drawer open event (in firmware Ver.1.2 and later) Battery OK event (in firmware Ver.2.2 and later) Battery low event (in firmware Ver.2.2 and later) Status Page 157 158 158 159 64
Element API Event ondrawerclosed ondraweropen onbatteryok onbatterylow Constant ASB_* Description Drawer close event (in firmware Ver.1.2 and later) Drawer open event (in firmware Ver.1.2 and later) Battery OK event (in firmware Ver.2.2 and later) Battery low event (in firmware Ver.2.2 and later) Status Page 157 158 158 159 64
ePOS-Print API Users Manual
Page 146
Default value: 0 Example 146 This is read-only. battery property Battery status of the printer. Object type Number Description Battery status obtained from the last printer status.
Default value: 0 Example 146 This is read-only. battery property Battery status of the printer. Object type Number Description Battery status obtained from the last printer status.
ePOS-Print API Users Manual
Page 148
... of the response object" on page 148.) Response message Object Properties of the response object Property success (p. 148) code (p. 148) status (p. 149) battery (p. 150) Name Print result Error code Status Battery status Object type Boolean String Number Number Value of code Value 'EPTR_AUTOMATICAL' 'EPTR_COVER_OPEN' 'EPTR_CUTTER' 'EPTR_MECHANICAL' 'EPTR_REC_EMPTY' 'EPTR_UNRECOVERABLE' 'SchemaError' 'DeviceNotFound' 'PrintSystemError...
... of the response object" on page 148.) Response message Object Properties of the response object Property success (p. 148) code (p. 148) status (p. 149) battery (p. 150) Name Print result Error code Status Battery status Object type Boolean String Number Number Value of code Value 'EPTR_AUTOMATICAL' 'EPTR_COVER_OPEN' 'EPTR_CUTTER' 'EPTR_MECHANICAL' 'EPTR_REC_EMPTY' 'EPTR_UNRECOVERABLE' 'SchemaError' 'DeviceNotFound' 'PrintSystemError...
ePOS-Print API Users Manual
Page 149
... ASB_WAIT_ON_LINE ASB_PANEL_SWITCH ASB_MECHANICAL_ERR ASB_AUTOCUTTER_ERR ASB_UNRECOVER_ERR ASB_AUTORECOVER_ERR ASB_RECEIPT_NEAR_END ASB_RECEIPT_END ASB_BUZZER ASB_WAIT_REMOVE_LABEL ASB_NO_LABEL ASB_SPOOLER_IS_STOPPED Description No response from the TM printer Printing is successfully completed Status of the 3rd pin of the drawer kick-out connector = "H" Battery offline status (only for applicable devices) (in firmware Ver.2.2 and later) Offline The cover is open...
... ASB_WAIT_ON_LINE ASB_PANEL_SWITCH ASB_MECHANICAL_ERR ASB_AUTOCUTTER_ERR ASB_UNRECOVER_ERR ASB_AUTORECOVER_ERR ASB_RECEIPT_NEAR_END ASB_RECEIPT_END ASB_BUZZER ASB_WAIT_REMOVE_LABEL ASB_NO_LABEL ASB_SPOOLER_IS_STOPPED Description No response from the TM printer Printing is successfully completed Status of the 3rd pin of the drawer kick-out connector = "H" Battery offline status (only for applicable devices) (in firmware Ver.2.2 and later) Offline The cover is open...
ePOS-Print API Users Manual
Page 150
Example To create and send a print document. Value of battery Status of power Value (battery) 0x30XX 0x31XX Remaining battery Value (battery) 0xXX36 0xXX35 0xXX34 0xXX33 0xXX32 0xXX31 0xXX30 Description The AC adapter is connected The AC adapter is connected Description Battery amount 6 Battery amount 5 Battery amount 4 Battery amount 3 Battery amount 2 Battery amount 1 (Near end) Battery amount 0 (Real end) 0 is shown when the model doesnʹt have a battery installed. To display the print result in a message box. 150
Example To create and send a print document. Value of battery Status of power Value (battery) 0x30XX 0x31XX Remaining battery Value (battery) 0xXX36 0xXX35 0xXX34 0xXX33 0xXX32 0xXX31 0xXX30 Description The AC adapter is connected The AC adapter is connected Description Battery amount 6 Battery amount 5 Battery amount 4 Battery amount 3 Battery amount 2 Battery amount 1 (Near end) Battery amount 0 (Real end) 0 is shown when the model doesnʹt have a battery installed. To display the print result in a message box. 150
ePOS-Print API Users Manual
Page 153
Chapter 4 ePOS-Print API onbatterystatuschange event Registers call back function and obtains battery status change event. (in firmware Ver.2.2 and later) Object type Function (battery) Parameter of the callback function Parameters: Name: Object type: battery Batterystatus Number Example ononline event Registers a callback function to obtain a online event. (in firmware Ver.1.2 and later) 4 Object type Function () Example 153
Chapter 4 ePOS-Print API onbatterystatuschange event Registers call back function and obtains battery status change event. (in firmware Ver.2.2 and later) Object type Function (battery) Parameter of the callback function Parameters: Name: Object type: battery Batterystatus Number Example ononline event Registers a callback function to obtain a online event. (in firmware Ver.1.2 and later) 4 Object type Function () Example 153
ePOS-Print API Users Manual
Page 158
ondraweropen event Registers a callback function to obtain a drawer open event. (in firmware Ver.1.2 and later) Object type Function () Example onbatteryok event Registers call back function and obtains remaining battery event. (in firmware Ver.2.2 and later) Object type Function () Example 158
ondraweropen event Registers a callback function to obtain a drawer open event. (in firmware Ver.1.2 and later) Object type Function () Example onbatteryok event Registers call back function and obtains remaining battery event. (in firmware Ver.2.2 and later) Object type Function () Example 158
ePOS-Print API Users Manual
Page 159
Chapter 4 ePOS-Print API onbatterylow event Registers call back function and obtains no remaining battery event. (in firmware Ver.2.2 and later) Object type Function () Example 4 159
Chapter 4 ePOS-Print API onbatterylow event Registers call back function and obtains no remaining battery event. (in firmware Ver.2.2 and later) Object type Function () Example 4 159
ePOS-Print API Users Manual
Page 161
... ❏ ePOS-Print Canvas API (window.epson.CanvasPrint) object (p. 161) window.epson.CanvasPrint Components Element API Constructor CanvasPrint method print open close recover Property reset address enabled interval status battery timeout halftone brightness cut Description Page Initializes an ...Printer status update interval 172 (in firmware Ver.1.2 and later) Status (in firmware Ver.1.2 and later) 173 Battery status 174 Connection timeout 175 Raster image halftone processing method 176 (in firmware Ver.1.2 and later) Raster image brightness correction ...
... ❏ ePOS-Print Canvas API (window.epson.CanvasPrint) object (p. 161) window.epson.CanvasPrint Components Element API Constructor CanvasPrint method print open close recover Property reset address enabled interval status battery timeout halftone brightness cut Description Page Initializes an ...Printer status update interval 172 (in firmware Ver.1.2 and later) Status (in firmware Ver.1.2 and later) 173 Battery status 174 Connection timeout 175 Raster image halftone processing method 176 (in firmware Ver.1.2 and later) Raster image brightness correction ...
ePOS-Print API Users Manual
Page 162
... event 189 Communication error event 192 Status change event 193 (in firmware Ver.1.2 and later) Battery status change event 194 (in firmware Ver.2.2 and later) Battery OK event 195 (in firmware Ver.2.2 and later) Battery low event 195 (in firmware Ver.2.2 and later) Online event (in firmware Ver.1.2 and...
... event 189 Communication error event 192 Status change event 193 (in firmware Ver.1.2 and later) Battery status change event 194 (in firmware Ver.2.2 and later) Battery OK event 195 (in firmware Ver.2.2 and later) Battery low event 195 (in firmware Ver.2.2 and later) Online event (in firmware Ver.1.2 and...
ePOS-Print API Users Manual
Page 174
Object type Number Description Battery status obtained from the last printer status. This is read-only. battery property Battery status of the printer. Default value: 0 Example 174
Object type Number Description Battery status obtained from the last printer status. This is read-only. battery property Battery status of the printer. Default value: 0 Example 174
ePOS-Print API Users Manual
Page 189
...Decription Value of success Value true or 1 false or 0 Name Print result Error code Status Battery status Object type Boolean String Number Number Printing succeeded. Chapter 5 ePOS-Print Canvas API onreceive event This ...object" on page 189.) Name: Object type: Response message Object Properties of the response object Parameter success (p. 189) code (p. 189) status (p. 190) battery (p. 190) Value of code Value Decription 'EPTR_AUTOMATICAL' An automatically recoverable error occurred 'EPTR_COVER_OPEN' A cover open error occurred 'EPTR_CUTTER' An autocutter ...
...Decription Value of success Value true or 1 false or 0 Name Print result Error code Status Battery status Object type Boolean String Number Number Printing succeeded. Chapter 5 ePOS-Print Canvas API onreceive event This ...object" on page 189.) Name: Object type: Response message Object Properties of the response object Parameter success (p. 189) code (p. 189) status (p. 190) battery (p. 190) Value of code Value Decription 'EPTR_AUTOMATICAL' An automatically recoverable error occurred 'EPTR_COVER_OPEN' A cover open error occurred 'EPTR_CUTTER' An autocutter ...
ePOS-Print API Users Manual
Page 190
... ASB_MECHANICAL_ERR ASB_AUTOCUTTER_ERR ASB_UNRECOVER_ERR ASB_AUTORECOVER_ERR ASB_RECEIPT_NEAR_END ASB_RECEIPT_END ASB_BUZZER ASB_WAIT_REMOVE_LABEL ASB_NO_LABEL ASB_SPOOLER_IS_STOPPED Decription No response from the TM printer Printing is successfully completed Status of the 3rd pin of the drawer kick-out connector = "H" Off line status from remaining battery (only for applicable devices) (in firmware Ver.2.2 and later) Offline The cover is...
... ASB_MECHANICAL_ERR ASB_AUTOCUTTER_ERR ASB_UNRECOVER_ERR ASB_AUTORECOVER_ERR ASB_RECEIPT_NEAR_END ASB_RECEIPT_END ASB_BUZZER ASB_WAIT_REMOVE_LABEL ASB_NO_LABEL ASB_SPOOLER_IS_STOPPED Decription No response from the TM printer Printing is successfully completed Status of the 3rd pin of the drawer kick-out connector = "H" Off line status from remaining battery (only for applicable devices) (in firmware Ver.2.2 and later) Offline The cover is...
ePOS-Print API Users Manual
Page 194
onbatterystatuschange event Registers call back function and obtains battery status change event. (in firmware Ver.2.2 and later) Syntax Function (battery) Parameter of the callback function Parameters: Name: Object type: battery Battery status Number Example 194
onbatterystatuschange event Registers call back function and obtains battery status change event. (in firmware Ver.2.2 and later) Syntax Function (battery) Parameter of the callback function Parameters: Name: Object type: battery Battery status Number Example 194
ePOS-Print API Users Manual
Page 195
Chapter 5 ePOS-Print Canvas API onbatteryok event Registers call back function and obtains remaining battery event. (in firmware Ver.2.2 and later) Syntax Function () Example onbatterylow event Registers call back function and obtains no remaining battery event. (in firmware Ver.2.2 and later) Syntax Function () Example 195
Chapter 5 ePOS-Print Canvas API onbatteryok event Registers call back function and obtains remaining battery event. (in firmware Ver.2.2 and later) Syntax Function () Example onbatterylow event Registers call back function and obtains no remaining battery event. (in firmware Ver.2.2 and later) Syntax Function () Example 195
ePOS-Print API Users Manual For TM-i firmware 4.1
Page 7
......135 send method ...136 getPrintJobStatus method ...138 open method ...139 close method ...140 address property...141 enabled property ...142 interval property...142 status property ...143 battery property ...143 timeout property ...144 onreceive event...145 onerror event ...148 onstatuschange event ...149 onbatterystatuschange event ...149 ononline event ...150 onoffline event ...150 onpoweroff event...
......135 send method ...136 getPrintJobStatus method ...138 open method ...139 close method ...140 address property...141 enabled property ...142 interval property...142 status property ...143 battery property ...143 timeout property ...144 onreceive event...145 onerror event ...148 onstatuschange event ...149 onbatterystatuschange event ...149 ononline event ...150 onoffline event ...150 onpoweroff event...
ePOS-Print API Users Manual For TM-i firmware 4.1
Page 8
ePOS-Print Canvas API 157 ■ List of ePOS-Print Canvas API functions 157 window.epson.CanvasPrint Components 157 ■ ePOS-Print Canvas API Object 159 Constructor ...159 print method ...160 getPrintJobStatus method...162 open method...163... close method...164 recover method...165 reset method...165 address property ...166 enabled property...167 interval property ...168 status property ...169 battery property ...170 timeout property ...171 halftone property ...172 brightness property ...173 cut property ...174 mode property ...175 align property ...176 color property ...
ePOS-Print Canvas API 157 ■ List of ePOS-Print Canvas API functions 157 window.epson.CanvasPrint Components 157 ■ ePOS-Print Canvas API Object 159 Constructor ...159 print method ...160 getPrintJobStatus method...162 open method...163... close method...164 recover method...165 reset method...165 address property ...166 enabled property...167 interval property ...168 status property ...169 battery property ...170 timeout property ...171 halftone property ...172 brightness property ...173 cut property ...174 mode property ...175 align property ...176 color property ...