EasyManua.ls Logo

protech PA-6225 - Cash Drawer Function

protech PA-6225
283 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 3 Software
PA-6225 SERIES USER MANUAL
Page 152
3-3-6. Cash Drawer Function
CashDrawerOpen
bool CashDrawerOpen (short num_drawer);
Purpose:
Open the cash drawer API.
Value:
num_drawer = 1 (Open the Cash Drawer1)
num_drawer = 2 (Open the Cash Drawer2)
Return:
True (1) on success, False (0) on failure
Example:
CashDrawerOpen(0x01); // Open the Cash Drawer1
GetCashDrawerStatus
bool GetCashDrawerStatus (short num_drawer);
Purpose:
Get the cash drawer status.
Value:
num_drawer = 1 (Get the Cash Drawer1 status)
num_drawer = 2 (Get the Cash Drawer2 status)
Return:
True (1) on success, False (0) on failure
Example:
Short data;
data= GetCashDrawerStatus(0x01); // Get the Cash Drawer1 status
if (data)
MsgBox(“open1”); // Cash Drawer1 status “Open”
Else
MsgBox(“close1”); // Cash Drawer1 status “Close”
Endif

Table of Contents