| ||
|
|
|
Roll Paper cover status | Roll paper cover is open or closed | |
|
|
|
FEED button status | Paper feed button is pressed or not | |
|
|
|
Error status | Various error information | |
| Mechanical error, autocutter error, | |
| unrecoverable error) |
The statuses are useful for the following situations.
❏When an error status is sent to the host PC, the host PC can display an error message or solution message for operator (with beeping).
❏When “Paper end“ status is sent to the host PC, the host PC can display a message for the operator to replace roll paper (with beeping).
4.4.1Printer Status on APD
When you use APD to get printer’s status, you have to install “Status API“ and use it. Refer to “Status API User’s Manual“ and the sample program of Status API for details.
4.4.2 OPOS
Note
This section describes the summary of status handling. Refer to “OPOS ADK Application Development Guide General Functions” for details.
4.4.2.1 Checking the printer state
The state of the printer can be checked through properties supported by the printer. For example, if the user wants to check if the printer cover is open, the CoverOpen property can be used.
If OPOSPOSPrinter1.CoverOpen = True Then
MsgBox “Cover is open!”
End If
This and many other events can also be checked by firing a StatusUpdateEvent.
[Event management]
Private Sub OPOSPOSPrinter1_StatusUpdateEvent(ByVal Data As Long)
If Data = PTR_SUE_COVER_OPEN Then
MsgBox “Cover is open!”
End If
End Sub
StatusUpdateEvent can return information on the following items.
STATUS INFORMATION
PTR_SUE_COVER_OPEN
Cover is open.
Rev. D | Application Development Information |