Select your printer model

Parameters are refined by the selected printer.

forcePulse


Forcibly sends the drawer kick command.

The error status of this API is the result of sending data to the devices.

The processing result of the devices using this API is notified to the listener method set by the setReceiveEventListener API of the Printer class.

Syntax

 
public void forcePulse(int drawer, int pulseTime, int timeout) throws Epos2Exception

Parameter

drawer

Specifies the drawer kick connector.

Value

Description

Printer.DRAWER_2PIN

Drawer kick connector pin No.2

Printer.DRAWER_5PIN

Drawer kick connector pin No.5

Printer.PARAM_DEFAULT

Specifies the default (drawer kick connector pin No.2).

time

Specifies the on time of the drawer kick signal.

Value

Description

Printer.PULSE_100

100-msec signal

Printer.PULSE_200

200-msec signal

Printer.PULSE_300

300-msec signal

Printer.PULSE_400

400-msec signal

Printer.PULSE_500

500-msec signal

Printer.PARAM_DEFAULT

Specifies the default (100-msec signal).

timeout

Specifies the timeout period before completion of command transmission in milliseconds.

Value

Description

0 to 600000

Timeout period (in milliseconds)

Printer.PARAM_DEFAULT

Specifies the default value (10000).

Exception

When the process fails, Epos2Exception with one of the following error status occurs.

Error status

Description

ERR_PARAM

An invalid parameter was passed.

ERR_MEMORY

Memory necessary for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

ERR_PROCESSING

Could not run the process.

ERR_ILLEGAL

This API was called while no communication had been started.

Supplementary explanation

  • The drawer and optional external buzzer cannot be connected simultaneously.
  • For TM-H6000V, the “Command execution during offline” setting must be enabled.
    Refer to TM-H6000V Utility User’s Manual for more information.
  • Available during ePOS-Device XML control.
 

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 Android

Jump to the top