Generate Pulse to Open Cash Drawer

This commands sends a pulse to open the cash drawer.

ASCII

ESC p n p1 p2

Hexadecimal

1B 70 n p1 p2

Decimal

27 112 n p1 p2

Values of n

0, 48—Drawer 1

1, 49—Drawer 2

Range of p1

0–255

Range of p2

0–255

Formulas

The value for either p1 or p2 is the hexadecimal number multiplied by 2 msec to equal the total time.

1.On time = p1 x 2 msec

2.Off time = p2 x 2 msec

Example:   

MSComm1.Output = Chr$(&H1B) & Chr$(&H70) & Chr$(n) & Chr$(n)

Note:  The off-time is the delay before the printer performs the next operation. The recommend time for NCR cash drawers is 110 msec on time. Refer to cash drawer specifications for required on and off times.