5-6
Application Development Information for OPOS
Rev. A
5.3 Cash Drawer
Programming examples of how to use API function relating to a Cash Drawer are shown below.
5.3.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.3.2 Checking Drawer Status
There are methods other than explained in section 5.3.1 that can be used to check drawer status.
A StatusUpdateEvent is fired whenever the drawer is opened or closed.
Below are examples of programs that use events to check if the drawer has been opened or
closed.
If Not OPOSCashdrawer1.DrawerOpened Then
OPOSCashdrawer1.OpenDrawer
OPOSCashdrawer1.WaitForDrawerClose 10000, 1000, 100, 100
End If
[Main Program]
Global DrawerFlag As Boolean
If Not OPOSCashdrawer1.DrawerOpened Then
DrawerFlag = True
OPOSCashdrawer1.OpenDrawer
While (DrawerFlag = True)
’This part uses timer management to check the status of DrawerFlag.
DoEvents
Wend
End If
[Event Management]
Private Sub OPOSCashdrawer1_StatusUpdateEvent(ByVal As Long)
If Data = False Then
DrawerFlag = False
End If
End Sub
Содержание TM-H6000II
Страница 1: ...TM H6000II Technical Reference guide EPSON English 404367000 ...
Страница 2: ......
Страница 6: ...iv Rev A ...
Страница 44: ...1 30 General Information Rev A ...
Страница 96: ...4 10 Maintenance Troubleshooting Rev A ...
Страница 108: ...A 2 Character Code Tables A 2 Page 1 Katakana ...
Страница 109: ...Character Code Tables A 3 TM H6000II Technical Reference Guide A 3 Page 2 PC850 Multilingual ...
Страница 110: ...A 4 Character Code Tables A 4 Page 3 PC860 Portuguese ...
Страница 111: ...Character Code Tables A 5 TM H6000II Technical Reference Guide A 5 Page 4 PC863 Canadian French ...
Страница 112: ...A 6 Character Code Tables A 6 Page 5 PC865 Nordic ...
Страница 113: ...Character Code Tables A 7 TM H6000II Technical Reference Guide A 7 Page 16 WPC1252 ...
Страница 114: ...A 8 Character Code Tables A 8 Page 17 PC866 Cyrillic2 ...
Страница 115: ...Character Code Tables A 9 TM H6000II Technical Reference Guide A 9 Page 18 PC852 Latin2 ...
Страница 116: ...A 10 Character Code Tables A 10 Page 19 PC858 Euro ...
Страница 117: ...Character Code Tables A 11 TM H6000II Technical Reference Guide A 11 Page 254 Space Page ...
Страница 118: ...A 12 Character Code Tables A 12 Page 255 Space Page ...
Страница 120: ...A 14 Character Code Tables ...
Страница 121: ......
Страница 122: ...EPSON SEIKO EPSON CORPORATION Printed in Japan ...