49
CITIZEN UWP POS Print SDK - Programming Manual
2.3.18. OpenDrawerAsync method
Syntax
Task<int> OpenDrawerAsync (int drawer, int pulseLen)
Parameter
The meaning and the setting range of the parameters are as follows.
Value
[IN/OUT] Meaning
Setting range
drawer
[IN]
Cash drawer number
CMP_DRAWER_1: Drawer 1
CMP_DRAWER_2: Drawer 2
pulseLen
[IN]
Signal length
1 - 8 (x 100) msec
Description
This method is used to open the cash drawer is connected to the printer.
Return value
Return CMP_SUCCESS (0) in success. Please refer to "
" for the error code except it.
Example
await printer.OpenDrawerAsync( ESCPOSConst.CMP_DRAWER_1, 1 );