Citizen Systems Network Router 1.8 Manuale Utente

Pagina di 61
 
 
 
 
 
CITIZEN OPOS DRIVER 1.8 Application Development Guide
47
OutPutID Property/ OutputCompleteEvent Event 
Identifier of asynchronous output started just before is retained and incremented by +1 with the 
following output. 
<Visual Basic installation example: Output subroutine> 
 
Dim i as Integer 
Dim Result As Long 
Dim PrintStation As Long 
 
For  i = 0 to 10 
    DoEvents 
Result = OPOSPrinter.PrintNormal(PrintStation, "TEST PRINT" + Str(i) + Chr$(&HD) + Chr$(&HA)) 
Next i 
 
 
<Visual Basic installation example: Event acquisition subroutine> 
 
Private Sub OPOSPrinter_OutputCompleteEvent(ByVal OutputID As Long) 
    Debug.Print "OutputCompleteEvent -> " + Str(OutputID) 
End Sub 
 
 
<Output result> 
 
OutputCompleteEvent ->    1 
OutputCompleteEvent ->    2 
OutputCompleteEvent ->    3 
OutputCompleteEvent ->    4 
OutputCompleteEvent ->    5 
OutputCompleteEvent ->    6 
OutputCompleteEvent ->    7 
OutputCompleteEvent ->    8 
OutputCompleteEvent ->    9 
OutputCompleteEvent ->    10 
OutputCompleteEvent ->    11 
 
 
CapRecEmptySensor/ RecEmpty Property 
When "Active Paper Sensor” is set to “PaperNearEnd” (Registry: "PaperSensor"="001"), Paper 
Out sensor becomes non-active state.    Accordingly, the value of the CapRecEmptySensor 
property is set to “FALSE” and the value of the RecEmpty property remains in the “FALSE “state 
even in the Paper End condition.    Here, StatusUpdateEvents (PTR_SUE_REC_EMPTY) is not 
reported. 
 
 
(Configuration Utility)