83
Chapter 4 API Reference
4
addPulse
Adds the drawer kick to the command buffer. Sets the drawer kick.
Syntax
public void addPulse(int drawer, int time)
throws EposException
Parameter
drawer : Specifies the drawer kick connector.
time : Specifies the ON time of the drawer kick signal.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Example
• Not available in page mode.
• The drawer and the buzzer cannot be used together.
Set value Description
Builder.DRAWER_1 Pin 2 of the drawer kick-out connector
Builder.DRAWER_2 Pin 5 of the drawer kick-out connector
Builder.PARAM_DEFAULT Pin 2 of the drawer kick-out connector
Set value Description
Builder.PULSE_100 100 ms
Builder.PULSE_200 200 ms
Builder.PULSE_300 300 ms
Builder.PULSE_400 400 ms
Builder.PULSE_500 500 ms
Builder.PARAM_DEFAULT 100 ms
Error status Description
ERR_PARAM Invalid parameter was passed.
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.
To send a 100msec pulse signal to the pin 2 of the drawer kick connector:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addPulse(Builder.DRAWER_1, Builder.PULSE_100);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}