IPAddr

Operating the Epson POS Printer Drawer Kick out

  1. Drawer Hardware
  2. ESC POS Control
  3. Windows Drivers
  4. OPOS Control
  5. References

Drawer Hardware

EPSON provides a Drawer Kick ( DK ) connector on the TM Printer range that allows the programmer to control up to two cash drawers. The DK connector supplies +24VDC to the drawer solenoid(s) [Pin4] and then returns this signal to ground [Pin5 or Pin2] when the printer receives the appropriate control command. The connector also has provision for the connection of a drawer position switch. This switch, in conjunction with the Automatic Status Back command or similar, can inform the application of drawer position.

Controlling the Cash drawer

ESC POS Control

The EPSON ESC POS Drawer Kick command enables the control of either 1 or 2 Cash drawers

ESC p m t1 t2

Where
ESC p is the drawer kick command
m is the DK connector pin to output control signals ( Pin2 or Pin5 )
t1 is the ON time of the drawer kick signal. The ON time is 2mS x t1 value.
t2 is the OFF time of the drawer kick signal ( time before the next ON signal can be received ) The
OFF time is 2mS x t2 value.

ASCIIESCpmt1t2
Hexadecimal1B700,100 to FF00 to FF
Decimal271120,1 ( 48,49 )0 to 2550 to 255
    t1 ON Timet2 OFF Time

Cash Drawer

Phone Plug Wiring for Epson Cash Drawer
8 Pin Plug6 Pin Plug4 Pin PlugDrawer
1WHI     
2BRN1WHI   
3YEL2BLK1BLKDRW:1
4GRN3RED2RED 
5RED4GRN3GRN+24V
6BLK5YEL4YELDRW:2
7ORA6BLU   
8BLU     

The cash drawer works by applying ground (OV) to either Pin 2 (for drawer 1) or pin 5 (for drawer 2) while maintaining 24VDC on pin 4

One of the other pins is connected to ground all the time and two other pins are connected to a microswitch in the cash drawer which is used to signal whether the drawer is open or closed.

The remaining pin is not connected to anything.

Controlling the Cash drawer

Programming Examples
ESC p m t1 t2

Decimal Example

MSComm1.Output = Chr$(27) + Chr$(112) + Chr$(0) + Chr$(25) + Chr$(250)
Kick drawer 1 with the following pulse
Hexadecimal Example
MSComm1.Output = Chr$(&H1B) + Chr$(&H70) + Chr$(&H0) + Chr$(&H19) + Chr$(&HFA)
Kick drawer 1 with the following pulse
50mS
500mS
On
Time
Off
Time
50mS
500mS
On
Time
Off
Time

EPSON supplies a Windows driver for the current range of TM Series printers. Programmers can also use the Generic/Text Only driver to control the Cash drawer.

EPSON Windows Driver

EPSON has provided a ‘control' font in the Windows driver that sends the appropriate command to the printer when triggered by certain control characters. The control characters listed below are provided for Cash drawer control.

Control-Font
Character Code
Function
Extended character
code (on all fonts
other than those
marked "Ext.")
A
Open Drawer 1 (50ms drive pulse width)
81H
B
Open Drawer 1 (100ms drive pulse width)
82H
C
Open Drawer 1 (150ms drive pulse width)
83H
D
Open Drawer 1 (200ms drive pulse width)
84H
E
Open Drawer 1 (250ms drive pulse width)
85H
a
Open Drawer 2 (50ms drive pulse width)
89H
b
Open Drawer 2 (100ms drive pulse width)
8AH
c
Open Drawer 2 (150ms drive pulse width)
8BH
d
Open Drawer 2 (200ms drive pulse width)
8CH
e
Open Drawer 2 (200ms drive pulse width)
8DH

Programming Examples

Cash drawer 1 Kick

Printer.FontName = "control"
Printer.FontSize = 10
Printer.Print "A"

Cash drawer 2 Kick

Printer.FontName = "control"
Printer.FontSize = 10
Printer.Print "a"
Note: If the EPSON TM Series print driver is installed as the Default Windows print driver additional fonts will appear in the drop down font combo box in Windows programs such as WordPad and
Word97. In this font list there will be a number of EPSON internal printer fonts added. These fonts allow printing of internal font characters that speed up printing of Receipts to the maximum allowable
speed. They also allow selection of the control font. Using this font and the special printer control characters listed previously we can easily control the printer operation.
To kick Cash drawer 1, we would only need to set the font to control in WordPad, Word97, Access or any other Window based program that allows font selection, type the desired control character, and
print the data. The EPSON print driver would see the control font character and then send the required SC POS command to the printer. EPSON Internal
Barcode Font EPSON printer control font
Page 8
Generic Windows Driver
The Generic / Text Only driver in Windows has features in the Device Options area that allow the
placement of printer control codes. Using this area we can produce simple printer control independent
of the application.
Device Options
Tab

Printer control codes here Or here

Printer can also be controlled here
Page 9

Entering Printer control commands

To enter printer control commands into the Generic/Text Only driver you will need to access the
correct ASCII characters via the P.C's keyboard. To achieve this you hold down the ALT key, then
enter the desired ASCII characters decimal equivalent on the numeric keypad, then release the ALT
key.
Example
Use Windows notebook for these examples
To obtain the ASCII character ‘p' we need to refer to the ASCII Character Code table. In this table we
can see the decimal equivalent of ASCII ‘p' is 112. To enter this character we do the following;
1) Press and hold the ALT key
2) Press and release 1 on the numeric keypad, then press and release 1 again, then press and
release 2.
3) Release the ALT key
The ASCII character ‘p' should now appear.
To obtain the Ζ character
1) Press and hold the ALT key
2) Press and release 1 on the numeric keypad, then press and release 4, then press and release 6.
3) Release the ALT key
The ASCII character ‘Ζ' should now appear.
Generic Driver Device Options Example
To enter the Cash drawer command, ESC p m t1 t2, we would have entered the following data in the
Device Options ‘End print job' box
1) Press and release the ESC key
2) Press and hold the ALT key
3) Press and release 1 on the numeric keypad, then press and release 1, then press and release 2.
4) Release the ALT key
5) Press and hold the ALT key
6) Press and release 4 on the numeric keypad then press and release 8.
7) Release the ALT key
8) Enter { character twice
<ESC> p0{{ should now be showing in the Device Options ‘End print job' box;
This will cause the Generic/Text Only print driver to output the EPSON Cash drawer command,
ESC p m t1 t2, after it has finished printing.
ESC p m t1 t2

EPSON OPOS Drivers

EPSON supplies an OPOS driver (Service Object) for a Standard Cash drawer. In the Cash drawer
Device Specific Settings area in OPOS you can set the values for m (Cash drawer Selection) and t1, t2
(ON / OFF time).
m value
t1 value
t2 value

OPOS Commands

To operate the Autocutter mechanism in OPOS it is only necessary to send the following command to
the OPOS Control Object.
Cocash1.OpenDrawer
There is also a command that allows monitoring of drawer open status. For this command to operate
connection will have to be made between the DK connector and a position switch on the Cash drawer.
Cocash1.DrawerOpened
Programming Examples
No position switch
Cocash1.Open ("Cash drawer")
Cocash1.Claim 2000
Cocash1.DeviceEnabled = True
Cocash1.OpenDrawer
Cocash1.DeviceEnabled = False
Position switch fitted
Cocash1.Open ("Cash drawer")
Cocash1.Claim 2000
Cocash1.DeviceEnabled = True
If Not Cocash1.DrawerOpened Then
Cocash1.OpenDrawer
Cocash1.WaitForDrawerClose 10000,1000,100,100
End If
Cocash1.DeviceEnabled = False
This example is asking
If the Cash drawer is not open then open the drawer, if the Cash drawer is open wait for it to be closed.
The timing parameters after the WaitForDrawerClose command set up the Beep sound in Windows.
This beep gives an audible warning to the operator to close the drawer.

References

ESC POS Section
TM-t88II Specification Manual Revision D
Visual Basic 5.0
EAL Printer Control.ppt
Character Code Table PC437
Windows Drivers
Windows 95
EPSON TM Printer Driver Users Manual 1.53E
WordPad
Character Code Table PC437
TM-T88II Specification Manual Revision D
Visual Basic 5.0
EAL Printer Control.ppt
EPSON OPOS Drivers
EPSON OPOS ADK Training Manual
EPSON OPOS ADK Application Development Guide Version 1.72E
EPSON OPOS ADK Application Development Guide POS Printers (EPSON TM Series) Version 1.74E
OLE for Retail POS Application Programmers Guide Release 1.2
EAL OPOS Presentation.ppt
For further information or assistance please contact
EPSON AUSTRALIA
Craig Alderson
Sales Support Technician
70 Gibbes Street
Chatswood NSW 2067
61299039142
calderson@epson.com.au
DH Technology
Joe Parolaro
Technical Manager
39 Leighton Place
Hornsby NSW 2077
61294771999
parolaro@dhtech.aust.com
CASHFLOW Retail Systems
Duncan Mullin
Technical Manager
13 Morningside Drive
St Lukes 1996
Auckland NZ
6498469933
support@cashflow.co.nz

What is OPOS ?

OPOS is Object Linked Embedding for Point Of Sale. OPOS aims to standardise methods of printer control across all POS peripherals and peripheral manufacturers by using OLE (ActiveX) technology. This will allow more open and general purpose development of applications and control software. At present over 180 companies are developing or have developed OPOS supported products with more and more products becoming OPOS compliant all the time. By using OPOS drivers, the application developer frees himself from undertaking the time consuming development of specialised drivers for specific hardware items. This allows more time and resources to be spent on creating more effective POS solutions that fully utilise features of Windows such as Multitasking and Multimedia. Both Microsoft and Fujitsu have made available large scale OPOS solutions. EPSON provides, at no cost, copies of the OPOS Application Developers Kit. This kit contains the OPOS drivers, sample applications in Visual Basic and numerous Application Development Guides for >current EPSON products. If you would like more information on OPOS or any other EPSON product, please contact EPSON Australia or your local EPSON distributor

EPSON
TM-H5000II
EPSON
Intelligent Register
EPSON
TM-U590