Select your printer model

Parameters are refined by the selected printer.

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'

  • Failed to open the port.
  • Port lock timeout.
  • The specified device is in process and the process cannot be executed.

'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

 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for JavaScript

Jump to the top