Epson TM-U220 TM-U220 Technical Reference Guide - Page 91

Rev. H, Application Development Information

Page 91 highlights

TM-U220 Technical Reference Guide method, change the FlagWhenIdle property to TRUE. When all data has finished printing, the printer becomes idle and a StatusUpdateEvent is fired to the application with the value of PTR_SUE_IDLE. 5.1.2.2 Printer Errors and Status A change in printer status when asynchronous data is being sent is made available to the program by the firing of an ErrorEvent and StatusUpdateEvent. When the printer changes status while nothing is happening, the change is told to the program by a StatusUpdateEvent only. As an example, assume that the printer cover becomes open. Usually, when data is not being sent to the printer and the cover is opened, a StatusUpdateEvent is fired to the application. After the AsyncMode property is set to TRUE and a method is used to print data, if the cover is opened while the data is being sent, the program is notified by an ErrorEvent. ErrorEvents are fired when the error has interrupted the data that is being sent. Only StatusUpdateEvent will fire when the error does not effect the data and the data will continue being sent as normal. Reasons for the ErrorEvent being fired and the corresponding error names are listed below. ResultCode/ ResultCodeExtended Reason OPOS_E_ILLEGAL There is an abnormality with the device. (Includes the following 1 error) OPOS_E_EXTENDED Error determined by the device's SO (Includes the following 4 errors) OPOS_EPTR_COVER_OPEN Cover is open. OPOS_EPTR_REC_EMPTY Receipt paper is empty. OPOS_E_FAILURE Hard error (Includes the following 6 errors). OPOS_EPTR_UNRECOVERABLE Error that cannot be recovered from. OPOS_EPTR_CUTTER Error with the auto cutter. OPOS_EPTR_MECHANICAL Mechanical error. OPOS_EPTR_OVERHEAT Head overheat error. OPOS_EX_DEVBUSY Device busy error. OPOS_EPTR_REC_CARTRIDGE_REMOVED Receipt cartridge is removed. OPOS_EPTR_REC_CARTRIDGE_EMPTY Receipt cartridge is empty. OPOS_EPTR_REC_HEAD_CLEANING Receipt head starts cleaning. After an error occurs, more detailed information about the error can be obtained from the ErrorLevel, ErrorStation, and ErrorString properties. 5.1.2.3 ESC/POS commands When you use ESC/POS commands to control the printer, you can get the status by using "status command" including Auto Status Back command (ASB.) Please refer to "ESC/POS APG." Rev. H Application Development Information 5-3

  • 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
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154

Rev. H
Application Development Information
5-3
TM-U220 Technical Reference Guide
method, change the FlagWhenIdle property to TRUE. When all data has finished printing, the
printer becomes idle and a StatusUpdateEvent is fired to the application with the value of
PTR_SUE_IDLE.
5.1.2.2
Printer Errors and Status
A change in printer status when asynchronous data is being sent is made available to the
program by the firing of an ErrorEvent and StatusUpdateEvent. When the printer changes status
while nothing is happening, the change is told to the program by a StatusUpdateEvent only.
As an example, assume that the printer cover becomes open. Usually, when data is not being
sent to the printer and the cover is opened, a StatusUpdateEvent is fired to the application. After
the AsyncMode property is set to TRUE and a method is used to print data, if the cover is
opened while the data is being sent, the program is notified by an ErrorEvent. ErrorEvents are
fired when the error has interrupted the data that is being sent. Only StatusUpdateEvent will
fire when the error does not effect the data and the data will continue being sent as normal.
Reasons for the ErrorEvent being fired and the corresponding error names are listed below.
ResultCode/ ResultCodeExtended Reason
After an error occurs, more detailed information about the error can be obtained from the
ErrorLevel, ErrorStation, and ErrorString properties.
5.1.2.3
ESC/POS commands
When you use ESC/POS commands to control the printer, you can get the status by using
“status command” including Auto Status Back command (ASB.) Please refer to “ESC/POS
APG.”
OPOS_E_ILLEGAL
There is an abnormality with the device. (Includes the
following 1 error)
OPOS_E_EXTENDED
Error determined by the device’s SO (Includes the
following 4 errors)
OPOS_EPTR_COVER_OPEN
Cover is open.
OPOS_EPTR_REC_EMPTY
Receipt paper is empty.
OPOS_E_FAILURE
Hard error (Includes the following 6 errors).
OPOS_EPTR_UNRECOVERABLE
Error that cannot be recovered from.
OPOS_EPTR_CUTTER
Error with the auto cutter.
OPOS_EPTR_MECHANICAL
Mechanical error.
OPOS_EPTR_OVERHEAT
Head overheat error.
OPOS_EX_DEVBUSY
Device busy error.
OPOS_EPTR_REC_CARTRIDGE_REMOVED
Receipt cartridge is removed.
OPOS_EPTR_REC_CARTRIDGE_EMPTY
Receipt cartridge is empty.
OPOS_EPTR_REC_HEAD_CLEANING
Receipt head starts cleaning.