Guide To Decoding Barcodes
Guide To Decoding Barcodes
symbology
A guide to
decoding barcodes
Symbology in barcodes
Barcode technologies provide fast reliable data collection to ensure part or product
traceability, error-proof assembly processes, and enhance customer service.
Barcodes are machine readable symbols that store identifying data about the part or product with
which they are associated. These symbols, when read by a barcode scanner, are decoded, recorded, and
processed to extract the data for a variety of uses (e.g., pricing, order fulfillment, traceability through
production, sortation, shipping, etc.)
Over the years, different forms of barcodes have been developed to help businesses around the world.
These include:
Stacked
Postal codes linear barcodes
This type of barcode lies somewhere in between a 2-D A stacked linear barcode is one of two types of 2-D
and a 1-D linear barcode. Instead of encoding data in barcodes. These simply consist of multiple linear
the black bar and white space widths, these primarily barcodes that are layered on top of one another,
use the height of the bars. The majority of postal codes allowing a greater amount information to be encoded.
only use numbers, but a few are now starting to include However, to fully decode the data, a barcode reader
letters as well. must be able to simultaneously read the code both
horizontally and vertically.
Universal
Product
Code (UPC)
8 75678 16412 1
Clocking Pattern
Provides a count of the number of rows and columns in the code.
Data
Matrix
CELL
DATA region
Can be text or numeric data up to 2,335 alphanumeric characters.
Redundant data is often included so even if one or more cells are
damaged, the code is still readable.
A brief history
It might be hard to remember a time when barcodes were not part of our daily lives,
but it was not until the 1970s that they first made an impact. Although the first
patent was actually issued in 1952, it was still some time later that they were
commercially used to label railroad cars.
However, it took until June 1974 before the first scanner was installed at a Marsh’s
supermarket in Ohio, USA, allowing a product with a barcode attached to be read
for the very first time. Unassumingly, this was just a simple packet of Wrigley’s®
chewing gum.
Today’s application
Decades after that first scan, we can hardly imagine a world without barcodes. Available in
various guises, barcodes continue to benefit industries that manufacture, buy, sell and
distribute products. They help collect data faster and more reliably, improve decision
making, eliminate the possibility of human error, reduce employee training time and track
products throughout their lifecycle. They are also extremely versatile, inexpensive to design
and print and ultimately reduce costs.
Quite simply they have changed the way businesses work across the globe.
1-D linear barcodes are probably the most commonly recognized style of barcode used today.
The following selection of symbols help illustrate their multiple forms:
Code 128
Code 128 is a more recently introduced symbol and the most robust 1-D barcode type. The
number 128 refers to the ability to hold any character of the ASCII 128 character set. That
includes all digits, characters and punctuation marks. This makes it fairly compact and very
powerful as it enables diverse storage of data.
Typical Usage: Logistics
Encoding Type: Alphanumeric | Format: Multi-width | Check Digit: Required
UPC-A EAN-13
By far the most common and well-known barcode used in the EAN-13 is the European counterpart of the UPC-A symbol.
U.S., UPC-A encodes 12 digits of data. The first digit is the The main difference between them is that the EAN-13 encodes
number system character followed by a five-digit manufacturer an extra digit of data to make a total of 13. The first two digits
number, a five-digit product number and a final check digit. of the barcode identify a specific country and the check digit is
Due to its limited encoding, UPC-A is primarily used in retail. the last number of the second group of six digits.
UPC-E EAN-8
UPC-E is a condensed variation of a UPC-A barcode. The code EAN-8 is the EAN equivalent of UPC-E in the sense that it
is condensed as a result of eliminating ‘extra’ zeros from the provides a short barcode. Set in two groups of four numbers,
digital data. Because the resulting barcode is about half the it is composed of two flag digits, five data digits and one
size of a UPC-A barcode, it is generally used on very small check digit. This is primarily used on small packaging where
packaging where space is limited. space is limited.
Code 39
Code 39, also known as ‘3 of 9 Code’, was the first symbol to use numbers and
letters. It is a variable-length barcode that is self-checking so a check digit normally
isn’t necessary, but is recommended. Its popularity is due to its ability to encode up
to 43 numbers, letters and other characters. Code 39 is still widely used, especially
in non-retail environments.
Typical Usage: Military & Automotive
Encoding Type: Partial alphanumeric | Format: Wide/narrow | Check Digit: Optional
Extended Code 39
Extended Code 39 uses a combination of two standard Code 39 characters to
encode every one of the 128 ASCII characters. It also allows for special characters,
such as lowercase letters. Generally, the more special characters that are used, the
longer the barcode will become. Most barcode readers will not automatically read
Extended Code 39 without custom configuration.
Typical Usage: Military & Automotive
Encoding Type: Partial alphanumeric | Format: Wide/narrow | Check Digit: Optional
Code 93 Codabar
Code 93 was designed to encode data more compactly and Codabar is a discrete, self-checking barcode that allows encoding
with higher data redundancy than with older multi-length of up to 16 different characters, plus an additional four special
barcode types such as Code 39. start and stop characters, which include A, B, C and D.
Interleaved 2 of 5 MSI/Plessey
Interleaved 2 of 5 encodes any even number of numeric MSI/Plessey, also known as Modified Plessey, is used
characters. Unlike Standard 2 of 5 (a.k.a. Industrial 2 of 5), which primarily to mark supermarket shelves for inventory control.
only encodes information in the width of the bars, Interleaved 2 MSI is a continuous, non-self-checking barcode. While the
of 5 encodes data in the width of both the bars and spaces. This barcode can be of any length, a given application usually
allows Interleaved 2 of 5 to achieve higher density encoding. implements a fixed-length barcode.
Over the years nearly every country in the world has developed
Postal codes their own postal codes to best suit their needs. However, in recent
times there has been a move towards standardizing them.
POSTNET
The POSTNET (Postal Numeric Encoding Technique) barcode
is used by the U.S. Postal Service to automatically sort mail.
Unlike most other barcodes in which data is encoded in the
width of the bars and spaces, POSTNET actually encodes
data in the height of the bars.
2-D symbologies are a more recent addition to the world of barcodes. By storing data
both horizontally and vertically, significantly more can be encoded than is possible with
a 1-D barcode. The following examples demonstrate the more popular ones available.
Typical Usage:
Aerospace, Components, Typical Usage:
U.S. Mail, HIBC, Defense, Logistics
& Printed Media
QR Aztec
QR (Quick Read) codes contain square blocks of black cells Named after the resemblance of the central finder pattern to
on a white background with finder patterns in the top an Aztec pyramid, the code is built on a square grid with a
left, top right, and bottom left corners. QR was developed bulls-eye pattern at its center for locating the code. Data is
with the intention of being used for tracking parts during encoded in concentric square rings around the bulls-eye
vehicle assembly. However, it has grown in popularity since pattern. Aztec codes have the potential to use less space
the introduction of readers on smartphones, and it is now than other matrix barcodes because they do not require a
commonly used in printed marketing materials. surrounding blank ‘quiet zone’.
Encoding Type: ASCII characters | Format: Wide/narrow Encoding Type: ASCII characters | Format: Wide/narrow
Check Digit: Required Check Digit: Required
Fixed-mount
Handheld
Mobile Computers
Verifiers
www.cognex.com/id
Corporate Headquarters One Vision Drive Natick, MA USA Tel: +1 508.650.3000 Fax: +1 508.650.3344