Epson C32C824151 Technical Reference - Page 62

Commands Sent to a TM Printer When the Power is On, Monitoring of the ASB status, Priorities o, f

Page 62 highlights

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. 4-6 Programming Samples Rev. A

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84

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 o
f 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.