PA-6225 SERIES USER MANUAL
3-3-6. Cash Drawer Function
bool CashDrawerOpen (short num_drawer);
Open the cash drawer API.
num_drawer = 1 (Open the Cash Drawer1)
num_drawer = 2 (Open the Cash Drawer2)
True (1) on success, False (0) on failure
CashDrawerOpen(0x01); // Open the Cash Drawer1
bool GetCashDrawerStatus (short num_drawer);
Get the cash drawer status.
num_drawer = 1 (Get the Cash Drawer1 status)
num_drawer = 2 (Get the Cash Drawer2 status)
True (1) on success, False (0) on failure
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