Chapter 3 Software Utilities
PA-5822 USER MANUAL
Page: 3-21
3.3
API Function
The API program-related sample programs, developed in VB.Net and C#, are
provided for easy use of the API Package. Refer to the main API functions listed as
below:
API Function
DLL
Cash Drawer
CashDrawerOpen
GetCashDrawerStatus
multilangXML.dll
CashDrawer.dll
Watchdog
(WD)
Watchodog_Set
Watchodog_Stop
Watchdog_SetMinSec
Watchdog_Recount
WatchDog.dll
Hardware
Monitor
HMWVoltage_Get
HMWTemperataure_Get
HMWFanSpeed_Get
Hardware
Monitor.dll
3.3.1
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;
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...