Opos; Checking The Printer State - Epson U220B - TM Two-color Dot-matrix Printer Technical Reference Manual

Technical reference
Hide thumbs Also See for U220B - TM Two-color Dot-matrix Printer:
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. D

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tm-u220Tm-u220aTm-u220d

Table of Contents