. . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Infinite Peripherals, Inc.
Page 24
www.ipcprint.com
PP-55 Resident Command Set Version 1.01
Detailed Description
ESC r
Reads a bar code
[Code] <1B>H<72>H
[Outline] This command lights up the barcode reader and performs a scan session.
The bar code reader is configured according to the parameters defined.
• Any byte sent to the printer interrupts the scan session.
• If the scan is successful the printer returns an ASCIIZ string with the
following format: <Decimal number – type of the bar code> <space> <bar
code data, including any prefixes, suffixes, AIM identifiers, etc.> <NULL>.
For example: ‘1 ABCDEF’ <NULL>.
• A byte with value 0xFF is transferred as 0xFF, 0xFF.
• A byte with value less than 0x20 is transferred as 0xFF, <byte>+0x20.
• If the scan session completes but no bar code is read, the printer returns
‘0’ <NULL>
• If some error in the scan engine is detected (communication, etc.), no
scan session is started and the printer transmits <NULL>.
• The possible bar code types are given in the following table:
Bar code
value
Bar code
value
Not Applicable
0
EAN 8 with 2
Supps.
74
Code 39
1
EAN 8 with 5
Supps.
138
Codabar
2
EAN 13 with 5
Supps.
75
Code 128
3
EAN 13
11
Discrete 2 of 5
4
EAN 13 with 2
Supps.
75
IATA 2 of 5
5
EAN 13 with 5
Supps.
139
Interleaved 2 of 5
6
MSI Plessey
14
Code 93
7
EAN 128
15
UPC A
8
UPC E1
16
UPC A with 2 Supps.
72
UPC E1 with 2
Supps.
80
UPC A with 5 Supps.
136
UPC E1 with 5
Supps.
144
UPC E0
9
Trioptic Code 39
21
UPC E0 with 2 Supps.
73
Bookland EAN
22
UPC E0 with 5 Supps.
137
Coupon Code
23
EAN 8
10
Code 11
12
Scanlet Webcode
55
[See Also]
ESC q, ESC s, CSE600 Scan Engine Implementation Guide