5-2
Application Development Information
Rev. H
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.
This and many other events can also be checked by firing a StatusUpdateEvent.
StatusUpdateEvent can return information on the following items.
STATUS INFORMATION
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
PTR_SUE_COVER_OPEN
Cover is open.
PTR_SUE_COVER_OK
Cover is closed.
PTR_SUE_REC_EMPTY
Receipt paper is out.
PTR_SUE_REC_NEAREMPTY
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.)
PTR_SUE_REC_PAPEROK
Receipt paper is OK.
PTR_SUE_IDLE
Printer State is idle.
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
Summary of Contents for C31C514452
Page 1: ...TM U220 Technical Reference guide EPSON English Rev H 404455408 ...
Page 8: ...vii Rev H ...
Page 14: ...xiii Rev H ...
Page 30: ...1 16 General Information Rev H 1 7 1 2 Overview Type B ...
Page 31: ...Rev H General Information 1 17 TM U220 Technical Reference Guide 1 7 1 3 Overview Type D ...
Page 32: ...1 18 General Information Rev H ...
Page 80: ...3 38 Setup Rev H ...
Page 100: ...5 12 Application Development Information Rev H ...
Page 128: ...B 10 How to Install the Printer on a Wall with the WH 10 Rev H B 2 2 TM U220 Type D 5 14 146 ...
Page 130: ...C 2 Character Code Table Rev H C 2 Page 1 Katakana ...
Page 132: ...C 4 Character Code Table Rev H C 4 Page 3 PC860 Portuguese ...
Page 134: ...C 6 Character Code Table Rev H C 6 Page 5 PC865 Nordic ...
Page 138: ...C 10 Character Code Table Rev H C 10 Page 16 WPC1252 ...
Page 140: ...C 12 Character Code Table Rev H C 12 Page 18 PC852 Latin2 ...
Page 141: ...Rev H Character Code Table C 13 TM U220 Technical Reference Guide C 13 Page 19 PC858 Euro ...
Page 149: ...Rev H Character Code Table C 21 TM U220 Technical Reference Guide C 21 Page 254 Blank page ...
Page 150: ...C 22 Character Code Table Rev H C 22 Page 255 Blank page ...
Page 152: ...C 24 Character Code Table Rev H ...