Protech Systems PA-3222 User Manual page 176

10.1 inch pos terminal powered by intel celeron j1900 quad-core
Hide thumbs Also See for PA-3222:
Table of Contents

Advertisement

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);
Open cash drawer2
PortAccess.CashDrawerOpen(0x02);
Bool bstatus;
bstatus = PortAccess.GetCashDrawerStatus(0x01);
PA-3222 SERIES USER MANUAL
Chapter 4 Software Utilities
//check cash drawer1 status
//check cash drawer2 status
Page: 4-91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents