beautypg.com

4 monitoring of the asb status, 5 the priorities of printing, 6 time-out for connection – Epson UB E02 User Manual

Page 64

background image

4-6

Programming Samples

Rev. A

4.3 Commands Sent to a TM Printer When the Power is On

When the power is turned on, the UB-E02 transmits the following commands to the TM printer
and maintains the statuses. The UB-E02 acquires printer information by GS I and monitors the
printer status through the TMNet WebConfig using the GS a 255 command.

ESC/POC command descriptions:

GS I 1

: printer ID

GS I 2

: printer type ID

GS I 3

: printer ROM version ID

GS a FFh

: Enables ASB status

Note:
When the power is turned off or the printer is off-line, the commands above are not transmitted.

4.4 Monitoring of the ASB status

The UB-E02 monitors the ASB statuses transmitted from TM printers to control the printer
statuses from host computers. The printer can know the statuses by remote using the TMNet
WinConfig or the TMNet WebConfig.

If the printing data includes commands that disable the ASB such as ESC @ and GS a 00h, the
ASB status from the TM printer will not be transmitted afterward when the printer status is
changed and the UB-E02 cannot monitor the status of the TM printer.

To monitor the printer status, when there is a command that disables the ASB in a data string
sent by an application to the TM printer, transmit a command that enables the ASB.

4.5 The Priorities of Printing

The UB-E02 permits up to 3 requests of connecting regardless of the lpr/port9100 protocol.
Printing by the TM printer is given the first priority. Data transmission is blocked for other
requests until the first connection is closed (explicit close or close by time-out).

4.6 Time-out for Connection

If there is no data transmitted from the host for 5 minutes, regardless of the protocol, lpr/
port9100, the UB-E02 closes the connection. To continue the connection, the host needs to send
the UDP command explicitly.