Chapter 4 Software Utilities
PA-3222 SERIES USER MANUAL
Page: 4-90
4.10.2 API Procedure
Take
VB2005 .NET
for example. Follow the instructions below to perform the API
procedure:
Step 1.
Declare a function. You may create a module in your project and fill in the
function.
Example: Cash drawer
Declare Function GetCashDrawerStatus Lib CashDrawer.dll (ByVal num_drawer as
short) As Boolean
Declare Function CashDrawerOpen Lib CashDrawer.dll (ByVal num_drawer as short)
As Boolean
Step 2.
Create a button to call API Function.
a.)
Call Cash drawer open event:
Private Sub cash_btn1_Click (ByVal Sender As System.Object, ByVal e As
System.EventArgs) Handles cash_btn1.Click
CashDrawerOpen(1), “1” specifies the cash drawer 1 port
CashDrawerOpen(2), “2” specifies the cash drawer 2 port
Timer1.start
b.)
Detect Cash drawer status:
A timer event can be created.
Private Sub Timer1_Tick (ByVal Sender As System.Object,ByVal e As
System.EventArgs) Handles Timer1.Tick
Dim Receive_Status1 as Boolean
Dim Receive_Status2 as Boolean
Receive_Status1 = CashDrawerOpen(&H1)
If Receive_Status1 = true then
Text1.text = “cash drawer1 open” ‘enter text into textbox.
Else
Text1.text = “cash drawer1 close” ‘enter text into textbox.
End if
‘=========================================
Receive_Status2 = CashDrawerOpen(&H2)
If Receive_Status2 = true then
Text2.text = “cash drawer2 open” ‘enter text into textbox.
Else
Text2.text = “cash drawer2 close” ‘enter text into textbox.
End if
‘=========================================
End sub
Содержание PA-3222
Страница 1: ...USER MANUAL PA 3222 10 1 POS Terminal Powered by Intel Celeron J1900 Quad Core PA 3222 M1...
Страница 11: ...viii Configuring WatchDog Timer B 10 Flash BIOS Update B 13...
Страница 24: ...Chapter 2 Getting Started PA 3222 SERIES USER MANUAL Page 2 10 2 3 6 Side View 147 75...
Страница 26: ...Chapter 2 Getting Started PA 3222 SERIES USER MANUAL Page 2 12 2 4 3 Top View...
Страница 37: ...Chapter 3 Hardware Configuration PA 3222 SERIES USER MANUAL Page 3 7 Jumper diagrams Jumper settings...
Страница 163: ...Chapter 4 Software Utilities PA 3222 SERIES USER MANUAL Page 4 78...
Страница 173: ...Chapter 4 Software Utilities PA 3222 SERIES USER MANUAL Page 4 88 e Example 3 PROMAG MSR PART NO HID mode...
Страница 221: ...Appendix A System Diagrams PA 3222 SERIES USER MANUAL Page A 4...
Страница 227: ...Appendix A System Diagrams PA 3222 SERIES USER MANUAL Page A 10 Exploded Diagram For Fingerprint Module 150 149 147 148...
Страница 232: ...Appendix A System Diagrams PA 3222 SERIES USER MANUAL Page A 15 With Paper Holder Without Paper Holder 03...
Страница 247: ...Appendix B Technical Summary PA 3222 SERIES USER MANUAL Page B 14...