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

ESC/P Examples, Using the #P Extended Command

Page 142 highlights

Chapter 3 - Extended Commands ESC/P Examples For information on all ESC/P commands, see the ESC/P Programmer's Reference Manual. Using the #P Extended Command Because ESC/P does not echo received data, the #F extended command is not used for simply sending data to the printer. Since there is no response, you will get a timeout error. To send data to the printer, use the #P extended command, as seen in this typical control character sequence: ^9f#P8N8100000=0a=0d#^9c Control Character Sequence Descriptions Character ^9f #P 8N81 00 0 =0d =0a # ^9c Description APC character 0x9F Begin extended command for transmit and receive 115200 baud, no parity, 8 data bits, 1 stop bit Reserved bytes Disabled XON/XOFF flow control Data to be printed Carriage return (required for all command lines) Line feed Terminating character for the #F extended command ST control character 0x9c Printing a Basic Label This example prints the text "Hello" to an ESC/P printer: ^9f#P8N8100000Hello=0a=0d#^9c Printing a Bitmap Image Note: All bitmap commands must be preceded by =1bB and followed by =1bE commands. There are three commands used in printing bitmaps: • Line skip command: A The "A" command will skip ahead several lines. The next example skips ahead 10 lines. ^9f#P8N8100000=1bBA=0a=1bE=0a=0d#^9c Skip Lines Command Sequence Example Character ^9f#P8N8100000 =1bB Description ITE control character sequence Beginning of graphic command 130 Intermec Terminal Emulator (ITE) Programmer's Reference Manual

  • 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
130
Intermec Terminal Emulator (ITE) Programmer’s Reference Manual
ESC/P Examples
For information on all ESC/P commands, see the
ESC/P Programmer’s Reference
Manual
.
Using the #P Extended Command
Because ESC/P does not echo received data, the #F extended command is not used
for simply sending data to the printer. Since there is no response, you will get a
timeout error. To send data to the printer, use the #P extended command, as seen in
this typical control character sequence:
^9f#P8N8100000<data>=0a=0d#^9c
Printing a Basic Label
This example prints the text “Hello” to an ESC/P printer:
^9f#P8N8100000Hello=0a=0d#^9c
Printing a Bitmap Image
There are three commands used in printing bitmaps:
Line skip command: A
The “A” command will skip ahead several lines. The next example skips ahead 10
lines.
^9f#P8N8100000=1bBA=0a=1bE=0a=0d#^9c
Control Character Sequence Descriptions
Character
Description
^9f
APC character 0x9F
#P
Begin extended command for transmit and receive
8N81
115200 baud, no parity, 8 data bits, 1 stop bit
00
Reserved bytes
0
Disabled XON/XOFF flow control
<data>
Data to be printed
=0d
Carriage return (required for all command lines)
=0a
Line feed
#
Terminating character for the #F extended command
^9c
ST control character 0x9c
Note:
All bitmap commands must be preceded by =1bB and followed by =1bE
commands.
Skip Lines Command Sequence Example
Character
Description
^9f#P8N8100000
ITE control character sequence
=1bB
Beginning of graphic command