Chapter 3 Software Utilities
PA-5822 USER MANUAL
Page: 3-17
Sample Code
(1)
VB Declaration Method
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)
Call Function
Open cash drawer:
CashDrawerOpen(1)
Open cash drawer1
CashDrawerOpen(2)
Open cash drawer2
Check cash drawer status:
Dim receive_status as Boolean
Check cash drawer1 status
Receive_Status = CashDrawerOpen(&H1)
Check cash drawer2 status
Receive_Status = CashDrawerOpen(&H2)
(1)
C# Declaration Method
Public class PortAccess
{
[DllImport(“CashDrawer.dll”,EntryPoint = “Initial_CashDrawer”)]
Public static extern void Initial_CashDrawer();
[DllImport(“CashDrawer.dll”,EntryPoint= “GetCashDrawerStatus”)]
Public static extern bool GetCashDrawerStatus()
[DllImport(“CashDrawer.dll”,EntryPoint = “CashDrawerOpen”)]
Public static extern bool CashDrawerOpen(short num_drawer);}
(2)
Call Function
Open cash drawer1
PortAccess.CashDrawerOpen(0x01); //check cash drawer1 status
Open cash drawer2
PortAccess.CashDrawerOpen(0x02); //check cash drawer2 status
Bool bstatus;
bstatus = PortAccess.GetCashDrawerStatus(0x01);
bstatus = PortAccess.GetCashDrawerStatus(0x02); //Before get cash drawer
status, need to initial cash drawer first
Summary of Contents for PA-5822 M1
Page 10: ...vii Figure 3 26 Boot Menu Screen 3 52 Figure 3 27 Save Exit Menu Screen 3 54...
Page 32: ...Chapter 2 Hardware Configuration PA 5822 USER MANUAL Page 2 11 Jumper Diagrams Jumper Settings...
Page 119: ...Appendix A System Diagrams PA 5822 SERIES USER MANUAL Page A 2 HDD Tray Disassembly...
Page 120: ...Appendix A System Diagrams PA 5822 SERIES USER MANUAL Page A 3 MSR module Assembly...