ENCODING EXAMPLE
For this example we will convert the UPC-A symbol "042100005264" to a
UPC-E code. First, we break the UPC-A symbol into its components: Number
system 0, manufacturer code 42100, product code 00526, check digit 4.
First, we make note of the fact that the number system is zero (0). We
will thus use the first column of the parity encoding
table. We also observe that the original UPC-A check digit was 4. Thus,
consulting the table above, we see that our UPC-E barcode will be encoded with
the parity "EOEEOO".
Next, we must determine how we're going to code this. We see that the
manufacturer code ends in "100", so we can use the first encoding method:
The first two characters of the manufacturer code, the last three
characters of the product code, followed by the third character of the
manufacturer code. That would be "425261". Those are the digits that we
need to code using the parity pattern "EOEEOO".
- LEFT GUARD BARS (always the same): 101.
- 1st UPC-E DIGIT [4]. Encoding with left-hand even parity, 0011101.
- 2nd UPC-E DIGIT [2]. Encoded with left-hand odd parity, 0010011.
- 3rd UPC-E DIGIT [5]. Encoded with left-hand even parity, 0111001.
- 4th UPC-E DIGIT [2]. Encoded with left-hand even parity, 0011011.
- 5th UPC-E DIGIT [6]. Encoded with left-hand odd parity, 0101111.
- 6th UPC-E DIGIT [1]. Encoded with left-hand odd parity, 0011001.
- CENTAR GUARD BARS (always the same): 01010.
- RIGHT GUARD BAR (always the same): 1.
Remember, a "1" represents a bar and a "0" represents a space. Thus if
we convert this string of numbers to their graphical representation we
end up with the following barcode:

To the left of the barcode, the number "0" represents the number system
code. The number "4" to the right of the barcode indicates the original
UPC-A checksum digit. These two digits are printed as human-readable
numbers, but are actually encoded in the parity of the other 6 numbers.
In order to see more clearly the construction of the barcode, the following
graphic shows the exact same barcode but each character, or section, of the
barcode is indicated by alternating colors. Above the barcode, in each
colored section, is a number from 1 to 15, which corresponds to each of the
"steps," or sections, described above. You may easily compare the 1-0
sequence of each step to the graphical representation below:
