Select your printer model
onreceive event
Receives the execution results of the HybridPrinter2 object.
Syntax
Function(data, sq); |
Parameters of callback function
Parameter: data,sq
Object type: Object,Number
Properties of data object
Property |
Description |
Object type |
---|---|---|
method |
Method name to return the event |
String |
success |
Method processing result to return the event |
Boolean |
code |
Method execution result to return the event |
String |
status |
Printer status |
String |
data |
MICR read result |
String |
success
Value |
Description |
---|---|
true |
Success |
false |
Failure |
code
Value |
Description |
---|---|
'SUCCESS' |
Success |
'EPTR_AUTOMATICAL' |
Automatic recovery error occurred. |
'EPTR_COVER_OPEN' |
Cover open error occurred. |
'EPTR_CUTTER' |
Auto cutter error occurred. |
'EPTR_MECHANICAL' |
Mechanical error occurred. |
'EPTR_REC_EMPTY' |
Roll paper has run out. |
'EPTR_UNRECOVERABLE' |
Unrecoverable error occurred. |
'SchemaError' |
Print request XML contains a syntax error. |
'DeviceNotFound' |
Printer specified by the device ID does not exist. |
'PrintSystemError' |
Error occurred with the printing system. |
'EX_BADPORT' |
Error was detected with the communication port. |
'ERROR_BADPORT' |
Error was detected with the communication port. |
'EPTR_PAPER_PULLED_OUT' |
The paper was pulled out. |
'EX_TIMEOUT' |
Print timeout occurred. |
'ERROR_DEVICE_NOT_FOUND' |
The device was not found. |
'ERROR_DEVICE_BUSY' |
|
'CANCEL' |
Cancels the paper insertion wait status. |
'ERROR_COVER_OPEN' |
Cover open error occurred. |
'ERROR_CANCEL_FAILED' |
Failed to cancel the paper insertion wait status. |
'ERROR_TIMEOUT' |
Paper insertion wait timeout occurred. |
'ERROR_PARAMETER' |
A parameter error occurred. |
'ERROR_NOT_SUPPORTED' |
Printer does not support the requested function. |
'EPTR_SCHEMAERROR' |
Print request XML contains a syntax error. |
'ERROR_COMMAND' |
The paper type of the request to clear the insertion wait status does not match the paper type of the insertion wait status in the printer. |
'ERROR_WAIT_EJECT' |
Paper eject error occurred. |
'EMICR_ILLEGAL_LENGTH' |
Inserted slip paper is not of an appropriate length. |
'EMICR_NO_MICR' |
Cannot detect MICR data. |
'EMICR_RECOGNITION' |
Illegible MICR text was detected. |
'EMICR_READ' |
Error occurred during MICR read operation. |
'EMICR_NOISE_DETECTED' |
MICR noise error was detected. |
'EMICR_COVER_OPEN' |
Cover was opened during MICR read operation. |
'EMICR_PAPER_JAM' |
Paper jam error occurred. |
'EMICR_PAPER_PULLED_OUT' |
The MICR paper was pulled out. |
'SYSTEM_ERROR' |
A system error occurred. |
status
Perform an AND operation with a constant.
Value |
Description |
---|---|
ASB_NO_RESPONSE |
No response from printer |
ASB_PRINT_SUCCESS |
Printing completed. |
ASB_DRAWER_KICK |
Drawer kick connector pin No.3 status = "H" |
ASB_OFF_LINE |
Offline status |
ASB_COVER_OPEN |
Cover open |
ASB_PAPER_FEED |
Paper is being fed by the paper feed switch. |
ASB_PANEL_SWITCH |
Paper feed switch is held depressed. |
ASB_MECHANICAL_ERR |
Mechanical error occurred. |
ASB_AUTOCUTTER_ERR |
Auto cutter error occurred. |
ASB_UNRECOVER_ERR |
Unrecoverable error occurred. |
ASB_AUTORECOVER_ERR |
Automatic recovery error occurred. |
ASB_INSERTION_WAIT_PAPER |
Paper insertion wait status in slip printing, endorsement printing, validation printing, or reading by MICR. |
ASB_REMOVAL_WAIT_PAPER |
Paper removal wait status |
ASB_RECEIPT_NEAR_END |
Roll paper has almost run out. |
ASB_RECEIPT_END |
Roll paper has run out. |
ASB_TOF_NOPAPER |
Paper is not inserted deep enough. |
ASB_BOF_NOPAPER |
Paper is not correctly aligned with the right edge of the paper guide. |
ASB_EJD_NOPAPER |
Paper has been removed |
ASB_SLIP_NO_SELECT |
Slip printing is not selected. |
ASB_SLIP_IMPOSSIBLE_PRINT |
Cannot print on the slip paper. |
ASB_VALIDATION _NO_SELECT |
Validation printing is not selected. |
ASB_VALIDATION _IMPOSSIBLE_PRINT |
Cannot print on the validation paper. |
sq object properties
Property |
Description |
Object type |
---|---|---|
sq |
Process sequence number |
String |
Supplementary explanation
- When a method other than readMicrData method is executed, null will be set in the data property.
- No onreceive event is notified if a communication error occurs.
To notify the disconnection event, implement the onreconnecting event, onreconnect event, ondisconnect event. - If a communication error occurs and it is deemed that no recovery will take place,
notify ondisconnect event.
Since no onreceive event is notified in this case, detect print failures in ondisconnect event.
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
- Introduction
- help
- ePOSDevice object
- Common to device objects
- OtherPeripheral object
- Display object
- createWindow method
- destroyWindow method
- setCurrentWindow method
- clearWindow method
- addCreateScreen method
- addCreateScreenCustom method
- createTextArea method
- destroyTextArea method
- setCurrentTextArea method
- clearTextArea method
- setCursorPosition method
- moveCursorPosition method
- setCursorType method
- addText method
- addReverseText method
- addMarquee method
- setBlink method
- setBrightness method
- addBackgroundColor method
- addStartSlideShow method
- addStopSlideShow method
- addDownloadImage method
- addRegisterDownloadImage method
- addNVImage method
- addClearImage method
- addSymbol method
- addClearSymbol method
- showClock method
- addCommand method
- send method
- reset method
- onreceive event
- Keyboard object
- POSKeyboard object
- MSR object
- Printer object
- addTextAlign method
- addTextLineSpace method
- addTextRotate method
- addText method
- addTextLang method
- addTextFont method
- addTextSmooth method
- addTextDouble method
- addTextSize method
- addTextStyle method
- addTextPosition method
- addTextVPosition method
- addFeedUnit method
- addFeedLine method
- addFeedPosition method
- addFeed method
- addImage method
- addLogo method
- addBarcode method
- addSymbol method
- addHLine method
- addVLineBegin method
- addVLineEnd method
- addPageBegin method
- addPageEnd method
- addPageArea method
- addPageDirection method
- addPagePosition method
- addPageLine method
- addPageRectangle method
- addRotateBegin method
- addRotateEnd method
- addCut method
- addPulse method
- addSound method
- addLayout method
- recover method
- addRecovery method
- reset method
- addReset method
- addCommand method
- send method
- print method
- getPrintJobStatus method
- startMonitor method
- stopMonitor method
- halftone property
- brightness property
- force property
- timeout property
- interval property
- drawerOpenLevel property
- message property
- onreceive event
- onstatuschange event
- onbatterystatuschange event
- ononline event
- onoffline event
- onpoweroff event
- oncoverok event
- oncoveropen event
- onpaperok event
- onpapernearend event
- onpaperend event
- ondrawerclosed event
- ondraweropen event
- onbatteryok event
- onbatterylow event
- HybridPrinter2 object
- lock method
- unlock method
- selectPaperType method
- waitInsertion method
- cancelInsertion method
- ejectPaper method
- sendData method
- print method
- readMicrData method
- cleanMicrReader method
- recover method
- reset method
- startMonitor method
- stopMonitor method
- setMessage method
- getMessage method
- halftone property
- brightness property
- force property
- paperType property
- interval property
- waitTime property
- enable40cplMode property
- onreceive event
- Scanner object
- SimpleSerial object
- GermanyFiscalElement object
- DeviceHubTerminal object
- CommBoxManager object
- CommBox object
- ePosDeviceConfiguration object
- Appendix
- Error Code List
- Key code list
- List of Supported Objects
- List of Supported APIs
- Printer-specific Support Information
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m30III
- TM-m30III-H
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-T20II
- TM-T20III
- TM-T82III
- TM-T88VI
- TM-T88VII
- TM-L100
- TM-T70
- TM-T70II
- TM-T88IV
- TM-T88V
- TM-U220
- TM-U220II
- TM-U330
- TM-P20
- TM-P20II
- TM-P60II (Receipt)
- TM-P60II (Peeler)
- TM-P80
- TM-P80II
- TM-H6000V
- TM-T20II-i
- TM-T70-i
- TM-T82II-i
- TM-T83II-i
- TM-T88V-i
- TM-T88VI-iHUB
- TM-U220-i
- TM-U220IIB-i
- TM-T70II-DT
- TM-T70II-DT2
- TM-T88V-DT
- TM-T88VI-DT2
- TM-H6000IV-DT
- TM-T20
- TM-T82II
- TM-T83II
- TM-T90
- TM-L90
- TM-H6000IV
- Usage restriction by firmware version