Epson TM-P60 manual Printer Status on APD, Checking the printer state

Models: TM-P60

1 148
Download 148 pages 51.9 Kb
Page 67
Image 67

TM-P60 with Peeler Technical Reference Guide

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.

 

 

PTR_SUE_COVER_OK

Cover is closed.

 

 

PTR_SUE_REC_EMPTY

Receipt paper is out.

 

 

PTR_SUE_REC_PAPEROK

Receipt paper is OK.

 

 

PTR_SUE_IDLE

Printer State is idle.

 

 

Rev. B

Application Development Information 4-5

Page 67
Image 67
Epson TM-P60 manual Printer Status on APD, Checking the printer state