The Universal Product Code (UPC) is one of a wide variety of bar code languages called symbologies. The UPC was the original barcode widely used in the United States and Canada for items in stores.
In 1970 Logicon Inc. created the Universal Grocery Products Identification Code (UGPIC). In 1970 it was used by Monarch Marking in the United States and Plessey Telecommunications in the United Kingdom. *
A group of grocery industry trade associations formed the Uniform Grocery Product Code Council which with McKinsey & Co., a consulting firm, defined the predecessor to the Uniform Product Code. In 1973 George J. Laurer developed the Universal Product Code.*
The first item to be placed under a UPC scanner in a retail store was a 10-pack of Wrigley's Chewing Gum at a Marsh Supermarket in Troy, Ohio, on June 26, 1974.
The UPC (now officially EAN.UCC-12) encodes twelve decimal digits as SLLLLLLMRRRRRRE, where S (start) and E (end) are the bit pattern 101, M (middle) is the bit pattern 01010 (called guard bars), and each L (left) and R (right) are digits, each represented by a seven-bit code. This is a total of 95 bits. The bit pattern for each numeral is designed to be as little like the others as possible, and to have no more than four 1s or 0s in order. Both are for reliability in scanning.
The UPC is only numerals, with no letters or other characters. The first L digit is 0 for ordinary items, 3 for pharmaceuticals, 2 for variable-weight items, and 5 for coupons (though stores often ignore this and use 000000 or 999999). The rest of L is the manufacturer code. The first five R digits are the product code assigned by the manufacturer. The last digit R is a check digit, so that errors in scanning or manual entry can be detected. In the UPC-A system, the check digit is calculated as follows:
For instance, a UPC-A barcode (In this case, a UPC for a Box of Tissues) "03600029145X" where X is the check digit, X can be calculated by adding the odd-numbered digits (0+6+0+2+1+5 = 14), multiplying by three (14 × 3 = 42), adding the even-numbered digits (42+3+0+0+9+4 = 58) and subtracting from the next-higher multiple of ten (60 - 58 = 2). The check digit is thus 2.
Pharmaceuticals in the U.S. have the remainder of the UPC as their National Drug Code (NDC) number; though usually only over-the-counter drugs are scanned at point-of-sale, NDC-based UPCs are used on prescription drug packages as well for inventory purposes. Variable-weight items, such as meats and fresh fruits and vegetables, are assigned a UPC by the store if they are packaged there. In this case, the LLLLL is the item number, and the _RRRR is either the weight or the price, with the first R determining which. Likewise, coupons are supposed to have the coupon code in LLLLL, the amount to be taken off in _RRRR, and whether that amount is a percent or a literal amount encoded in the first R.
By prefixing these with a 0, they become EAN-13 rather than UPC-A. This does not change the check digit. All point-of-sale systems can now understand both equally.
Each digit in UPC-A has two forms. In EAN there are two additional forms so that each digit can be encoded with even or odd parity. For instance, the number 6 can be encoded as:
The first and second forms are the one's complement of each other, as are the third and fourth.
The (L) codes for the ten digits are:
The (R) codes are simply the one's complement of the (L) codes.
The (R) codes:
Company Prefixes are assigned by a GS1 Member Organization, which is now using longer company codes (with shorter item codes) for smaller companies.
If you want to read barcodes yourself and not need to count one, zero, zero, one..., or have to memorize those, there is an easier "code" to reading barcodes. The bars and spaces in barcodes have four different lengths, or values. A digit in a UPC barcode consists of two spaces and 2 bars, the lengths of the digit always equalling seven. The lengths can be called 1, 2, 3 and 4. 1 is the thinnest, 2 is twice as wide as 1, 3 is as wide as three 1 bars, and 4 is the widest, equal to four 1 bars, or two 2 bars.
(L) codes: 0 : 3-2-1-1 1 : 2-2-2-1 2 : 2-1-2-2 3 : 1-4-1-1 4 : 1-1-3-2 5 : 1-2-3-1 6 : 1-1-1-4 7 : 1-3-1-2 8 : 1-2-1-3 9 : 2-1-1-3
For example, let's say the first digit in a barcode, after the 1-1-1 start code, is one. You would see a space 1 long, a bar 2 long, a space 2 long and a bar 2 long. After the first six digits, there are five 1's (space bar space bar space), this is to make sure the barcode ends in a bar, not a space. After that, the digits on the right start with a bar and end with a space, the inverse of the digits on the left. Then the ending 1-1-1 sequence, which is bar-space-bar again.
Barcodes | Checksum algorithms | Identifiers | Universal Identifiers | Supply chain management
Universal Product Code | Code universel des produits | UPC | UPC Nederland B.V. | Universal Product Code | Universal Product Code | UPC Sverige | Mã sản phẩm chung
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Universal Product Code".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world