CI Barcode
CI Barcode
(Computer Interfacing)
Barcode
(Computer Peripherals by Cook & White)
Iyolita Islam
1 Barcode
2 Codes
3 Error Handling
Giving every item that you want to classify its own, unique
number and then simply print the number on the item so an
electronic scanning device can read it.
Trouble with decimal numbers:
• a misprinted number can show different one
• For example, eight could look like a three to a computer or a
six is identical to nine if you turn it upside down—which could
cause all sorts of chaos at the checkout if you scanned the
wrong way up
12 digit number
UPC prefix denotes the product category, 0 for grocery, 3 for
pharmaceuticals etc
The scan able area of every UPC-A barcode follows the pattern
SLLLLLLMRRRRRRE,
where S (start), M (middle), and E (end) guard patterns are
represented the same way on every UPC-A barcode and the L
(left) and R (right) sections collectively represent the 12
numerical digits that make each UPC-A unique.
The total width for a digit is always 7 modules; consequently,
UPC-A 12-digit number requires a total of 7×12 = 84 modules.
A complete UPC-A is 95 modules wide: 84 modules for the digits,
combined with 11 modules for the S (start), M (middle), and E
(end) guard patterns.
Codes used on either side of the center line are different so that
the direction of scan can be determined
A scanner can determine whether it is scanning a symbol from
left-to-right or from right-to-left (the symbol is upside-down).
After seeing a S (start) or E (end) guard pattern (they are the
same, bar-space-bar, whichever direction they are read), the
scanner will first see odd parity digits, if scanning left-to-right, or
even parity digits, if scanning right-to-left.
With the parity/direction information, an upside-down symbol will
not confuse the scanner.
When confronted with an upside-down symbol, the scanner may
simply ignore it or recognize the digits and put them in the right
order.
For UPC: left hand digits are encoded using ‘Left Hand A’
For EAN:
• The EAN scheme is encoded so that a UPC can be read and
so from 00 to 09 is not used in EPC.
• This helps to reduce the confusion between the UPC and EAN
labelled products.
• left hand digits are encoded using mixture of ‘Left Hand A’
and ‘Left Hand B’
• The first digit determines which coding to use for each of the
remaining six digits.
Example
Assume the barcode data = 01234567890X and it is UPC code. Calculate
the checksum.