EasyManuals Logo

Epson TMU220 Reference Guide

Epson TMU220
152 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #91 background imageLoading...
Page #91 background image
Rev. E Application Development Information 5-5
TM-U220 Technical Reference Guide
5.2.1.2 Checking Drawer Status
You can get drawer status by using Status API. Below is examples of program which checks the
drawer status.
There are the other checking method (Bi BiSetStatusBackFunction, BiSetStatusBackWnd) in
Status API. Refer to the Status API User’s Manual and the sample programs for detail.
5.2.2 OPOS
Programming examples of how to use API function relating to a Cash Drawer are shown below.
5.2.2.1 Drawer Open/Close
Using the OpenDrawer method opens the cash drawer. The DrawerOpened property can be
used to check the current state of the drawer. To pause the program until the drawer is closed,
the WaitForDrawerClose method is used.
Below is as example of a program to open and close a cash drawer.
5.2.2.2 Checking Drawer Status
There are methods other than explained in section 5.2.2.1 that can be used to check drawer
status. A StatusUpdateEvent is fired whenever the drawer is opened or closed.
'get the current printer status
rtn = BiGetStatus(m_hApi, getstatus)
If rtn < 0 Then
ErrMsg (rtn) ’Error handling
Exit Sub
End If
If (getstatus And ASB_DRAWER_KICK) = ASB_DRAWER_KICK Then
MsgBox("Drawer is opened") ’Pin No.3 is high
Else
MsgBox("Drawer is closed")
End If
If Not OPOSCashdrawer1.DrawerOpened Then
OPOSCashdrawer1.OpenDrawer
OPOSCashdrawer1.WaitForDrawerClose 10000, 1000, 100, 100
End If

Table of Contents

Other manuals for Epson TMU220

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Epson TMU220 and is the answer not in the manual?

Epson TMU220 Specifications

General IconGeneral
Print speed4.7 lps
Character size1.6 x 3.1 mm
Print technologyDot matrix
Paper dimensions57.5±0.5/69.5±0.5/76±0.5 x 83.0
Dimensions (WxDxH)160 x 286 x 157.5 mm
CertificationWEEE/RoHS
Mean time between failures (MTBF)180000 h
Parallel connectorYes
Standard interfacesParallel

Related product manuals