Intermec CV30 Intermec Terminal Emulator (ITE) Programmer's Reference Manual - Page 145

IPL Examples, Using #P and #F Extended Commands, Querying Print Status, Querying the Printer Model - battery

Page 145 highlights

Chapter 3 - Extended Commands IPL Examples Note: Printers using Bluetooth connections do not return data. If you use #F in control character sequences to Bluetooth printers, you will get an F error saying that the command timed out. Querying Print Status This example queries the status of the printer and expects a response. ^9f#F8N810000099000000bb05=1b(ST?)#^9c where =1b(ST?) is the ESC/P "Status" command. A typical response from the printer could be: {ST!E:N;L:D;P:P;R:16384;B:O,H:O} Print Status Reply Descriptions Return Code E:N L:D P:P R:16384 B:O H:O Description Error status: N (No error) Printer media cover status: D (Cover is closed) Media status: P (Media is installed) Amount of RAM buffer remaining: 16384 (kilobytes) Battery status: O(OK) Printhead temperature: O (OK) Querying the Printer Model This example uses the ESC/P "Infrared" command to query the printer model. ^9f#F8N810000099000000bb05=1b(IR?)#^9c where =1b(IR?) is the ESC/P "Infrared" command. A typical response from the printer could be: {IR!P:OFF;AV:Not supported;DV:Not supported;IV:Not supported;IN:PB50,ID:PB50 The IN or ID value includes the printer model. For information on all IPL commands, see the IPL Command Reference Manual. For further information about IPL syntax and forms, see the IPL Developer's Guide. Using #P and #F Extended Commands A #F command instructs the device to wait for a response from the printer. #F is required for queries. For print commands, #F allows you to receive a response from the printer. However, if no response is needed or required, a #P command can run more quickly. Typical command sequences are as follows: ^9f#P8N8100000#^9c ^9f#F8N810000099000000bb05#^9c Querying Printer Status This example queries the status of the printer and expects a response. Intermec Terminal Emulator (ITE) Programmer's Reference Manual 133

  • 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
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184

Chapter 3 — Extended Commands
Intermec Terminal Emulator (ITE) Programmer’s Reference Manual
133
Querying Print Status
This example queries the status of the printer and expects a response.
^9f#F8N810000099000000bb
05=1b(ST?)#^9c
where =1b(ST?) is the ESC/P “Status” command.
A typical response from the printer could be:
{ST!E:N;L:D;P:P;R:16384;B:O,H:O}
Querying the Printer Model
This example uses the ESC/P “Infrared” command to query the printer model.
^9f#F8N810000099000000bb
05=1b(IR?)#^9c
where =1b(IR?) is the ESC/P “Infrared” command.
A typical response from the printer could be:
{IR!P:OFF;AV:Not supported;DV:Not supported;IV:Not
supported;IN:PB50,ID:PB50
The IN or ID value includes the printer model.
IPL Examples
For information on all IPL commands, see the
IPL Command Reference Manual
.
For
further information about IPL syntax and forms, see the
IPL Developer’s Guide
.
Using #P and #F Extended Commands
A #F command instructs the device to wait for a response from the printer. #F is
required for queries. For print commands, #F allows you to receive a response from
the printer. However, if no response is needed or required, a #P command can run
more quickly. Typical command sequences are as follows:
^9f#P8N8100000<data>#^9c
^9f#F8N810000099000000bb
05<data>#^9c
Querying Printer Status
This example queries the status of the printer and expects a response.
Note
: Printers using Bluetooth connections do not return data. If you use #F in
control character sequences to Bluetooth printers, you will get an F error saying that
the command timed out.
Print Status Reply Descriptions
Return Code
Description
E:N
Error status: N (No error)
L:D
Printer media cover status: D (Cover is closed)
P:P
Media status: P (Media is installed)
R:16384
Amount of RAM buffer remaining: 16384 (kilobytes)
B:O
Battery status: O(OK)
H:O
Printhead temperature: O (OK)