Chapter 3 Software
PA-3122 SERIES USER
′
S MANUAL
Page:3-44
3-3-2. API Procedure
Take
VB2005 .NET
for example.
1.
First you must 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
2.
Then 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
Summary of Contents for PA-3122
Page 1: ...USER S MANUAL PA 3122 10 4 POS Terminal Powered by Intel Celeron J1900 Quad Core PA 3122 M1...
Page 165: ...Chapter 3 Software PA 3122 SERIES USER S MANUAL Page 3 106...
Page 189: ...Chapter 4 System Assembly PA 3122 SERIES USER S MANUAL Page 4 6...
Page 191: ...Chapter 4 System Assembly PA 3122 SERIES USER S MANUAL Page 4 8 With MSR 01 Without MSR 02...
Page 193: ...Chapter 4 System Assembly PA 3122 SERIES USER S MANUAL Page 4 10...
Page 195: ...Chapter 4 System Assembly PA 3122 SERIES USER S MANUAL Page 4 12...
Page 198: ...Chapter 4 System Assembly PA 3122 SERIES USER S MANUAL Page 4 15 02 01 Push...
Page 199: ...Chapter 4 System Assembly PA 3122 SERIES USER S MANUAL Page 4 16 Heatsink 05 02 01 03 04...
Page 201: ...Chapter 4 System Assembly PA 3122 SERIES USER S MANUAL Page 4 18...
Page 203: ...Chapter 4 System Assembly PA 3122 SERIES USER S MANUAL Page 4 20...
Page 210: ...Chapter 4 System Assembly PA 3122 SERIES USER S MANUAL Page 4 27 Without VFD Module 01...