Select your printer model

Parameters are refined by the selected printer.

forcePulse


Forcibly sends the drawer kick command.

The processing result of this API is returned to the callback method set by the setReceiveEventDelegate API of the Epos2HybridPrinter class.

Syntax

 
- (int) forcePulse:(int)drawer pulseTime:(int)pulseTime
timeout:(long)timeout;

Parameter

drawer

Specifies the drawer kick connector.

Value

Description

EPOS2_DRAWER_2PIN

Drawer kick connector pin No.2

EPOS2_DRAWER_5PIN

Drawer kick connector pin No.5

EPOS2_PARAM_DEFAULT

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

pulseTime

Specifies the on time of the drawer kick signal.

Value

Description

EPOS2_PULSE_100

100-msec signal

EPOS2_PULSE_200

200-msec signal

EPOS2_PULSE_300

300-msec signal

EPOS2_PULSE_400

400-msec signal

EPOS2_PULSE_500

500-msec signal

EPOS2_PARAM_DEFAULT

Specifies the default (100-msec signal).

timeout

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

Value

Description

Integer from 0 to 600000

Timeout period (in milliseconds)

EPOS2_PARAM_DEFAULT

Specifies the default value (10000).

Return value

Error status

Description

EPOS2_SUCCESS

The function was executed successfully.

EPOS2_ERR_CONNECT

Communication failed.

EPOS2_ERR_PARAM

An invalid parameter was passed.

EPOS2_ERR_MEMORY

Necessary memory could not be allocated.

EPOS2_ERR_FAILURE

An unknown error occurred.

EPOS2_ERR_PROCESSING

Could not run the process.

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 iOS

Jump to the top