5-6 Application Development Information Rev. D
Below are examples of programs that use events to check if the drawer has been opened or
closed.
5.2.3 ESC/POS
When you drive a cash drawer which is connected to this printer, please refer to “FAQ about
ESC/POS command.“ About “FAQ about ESC/POS command,“ please contact your dealer or
EPSON.
5.3 NV memory
This printer has NV memory (Non-volatile). The data of NV memory remains after you turn off
the power. The NV memory is available in two ways.
1. NV Bit-image
Please refer “NV Bit-image Printing” (page 5-8) for detail of the function.
[Main Program]
Global DrawerFlag As Boolean
If Not OPOSCashdrawer1.DrawerOpened Then
DrawerFlag = True
OPOSCashdrawer1.OpenDrawer
While (DrawerFlag = True)
íThis part uses timer management to check the status of DrawerFlag.
DoEvents
Wend
End If
[Event Management]
Private Sub OPOSCashdrawer1_StatusUpdateEvent(ByVal As Long)
If Data = False Then
DrawerFlag = False
End If
End Sub