Rev. D Application Development Information 4-5
TM-P60 Technical Reference Guide
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.1 Printer 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.
This and many other events can also be checked by firing a StatusUpdateEvent.
StatusUpdateEvent can return information on the following items.
STATUS INFORMATION
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 (Off-line / On-line), (detail of the error;
Mechanical error, autocutter error, auto-recovery error,
unrecoverable error)
PTR_SUE_COVER_OPEN Cover is open.
If OPOSPOSPrinter1.CoverOpen = True Then
MsgBox “Cover is open!”
End If
[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