Opos; Checking The Printer State - Epson TM-U220 Reference Manual

Hide thumbs Also See for TM-U220:
Table of Contents

Advertisement

5.1.2 OPOS

Note
This section describes the summary of status handling. Refer to "OPOS ADK Application Development
Guide General Functions" for details.

5.1.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
PTR_SUE_COVER_OK
PTR_SUE_REC_EMPTY
PTR_SUE_REC_NEAREMPTY
PTR_SUE_REC_PAPEROK
PTR_SUE_IDLE
When the FlagWhenIdle property is set to TRUE, PTR_SUE_IDLE is sent to inform the
application that the printer is idle. Other than when data is being sent, the printer is in an idle
state, so if FlagWhenIdle is TRUE, an event will be fired when printing is finished. After the
event is fired, FlagWhenIdle will be set to FALSE. By using this value, the information below can
be found out.
*Finding out when multiple asynchronous print jobs have finished printing. When multiple
asynchronous print jobs have been sent to the printer, it is possible to know when they have
finished printing. After setting the AsyncMode property to TRUE and running the PrintNormal
5-2 Application Development Information
Cover is open.
Cover is closed.
Receipt paper is out.
Receipt paper is near the end. (The near end detector is
factory option. When the printer does not have one, the status
does not occur.)
Receipt paper is OK.
Printer State is idle.
Rev. E

Advertisement

Table of Contents
loading

Table of Contents