SlideShare a Scribd company logo
1 of 14
Download to read offline
UPC/UPC-A/UPC-E &
EAN Barcode Symbology
Version:v1.1
Crifan Li
Abstract
This article explains the details of UPC symbology and other related UPC-A, UPC-E and EAN.

This article provide multiple formats:
Reading Online

HTML

1

HTMLs

2

PDF

3

CHM

4

TXT

5

RTF

6

Download(7Zip package)

HTML

7

HTMLs

8

PDF

9

CHM

10

TXT

11

RTF

12

HTML version online address:
http://www.crifan.com/files/doc/docbook/symbology_upc/release/html/symbology_
upc.html
Any question or bug report are encouraged to post in the discussion group:
http://www.crifan.com/bbs/categories/symbology_upc/

Revision History
Revision 1.0

2011-07-12

crl

1. explain the UPC and related UPC-A, UPC-E and EAN symboloy
Revision 1.1

2012-08-09

crl

1. Release via Docbook

1

http://www.crifan.com/files/doc/docbook/symbology_upc/release/html/symbology_upc.html
http://www.crifan.com/files/doc/docbook/symbology_upc/release/htmls/index.html
3
http://www.crifan.com/files/doc/docbook/symbology_upc/release/pdf/symbology_upc.pdf
4
http://www.crifan.com/files/doc/docbook/symbology_upc/release/chm/symbology_upc.chm
5
http://www.crifan.com/files/doc/docbook/symbology_upc/release/txt/symbology_upc.txt
6
http://www.crifan.com/files/doc/docbook/symbology_upc/release/rtf/symbology_upc.rtf
7
http://www.crifan.com/files/doc/docbook/symbology_upc/release/html/symbology_upc.html.7z
8
http://www.crifan.com/files/doc/docbook/symbology_upc/release/htmls/index.html.7z
9
http://www.crifan.com/files/doc/docbook/symbology_upc/release/pdf/symbology_upc.pdf.7z
10
http://www.crifan.com/files/doc/docbook/symbology_upc/release/chm/symbology_upc.chm.7z
11
http://www.crifan.com/files/doc/docbook/symbology_upc/release/txt/symbology_upc.txt.7z
12
http://www.crifan.com/files/doc/docbook/symbology_upc/release/rtf/symbology_upc.rtf.7z
2
UPC/UPC-A/UPC-E & EAN Barcode Symbology:
Crifan Li

Version:v1.1
Publication date 2012-08-09
Copyright © 2012 Crifan, http://crifan.com
This article conform to:Attribution-NonCommercial 2.5 Generic (CC BY-NC 2.5)

13

13

http://www.crifan.com/files/doc/docbook/soft_dev_basic/release/html/soft_dev_basic.html#cc_by_nc
Table of Contents
1. Plessey ................................................................................................................................ 1
1.1. Barcode Basic Knowledge ........................................................................................ 1
1.2. What is UPC ............................................................................................................ 1
1.3. Application Field ...................................................................................................... 1
1.4. Example ................................................................................................................... 1
1.5. Technical Detail ........................................................................................................ 2
1.5.1. Bit Pattern of Digit ........................................................................................ 2
1.5.1.1. Mirrored Bit Pattern Design ................................................................ 3
1.5.2. Check Digit Calculation ................................................................................. 3
1.5.3. Prefixes .......................................................................................................... 3
2. Zero-Compressed UPC ⇒ UPC-E ........................................................................................ 5
3. Printing Considerations ...................................................................................................... 7
3.1. Dimensions .............................................................................................................. 7
3.2. Quiet Zone (Light Margin) ....................................................................................... 7
3.3. Barcode Text ............................................................................................................ 7
4. EAN & IAN, EAN-13 & JAN, GTIN, EAN-8, EAN2 & EAN5 .................................................. 8
4.1. EAN, IAN .................................................................................................................. 8
4.2. EAN-13, JAN ............................................................................................................ 8
4.3. GTIN ......................................................................................................................... 8
4.4. EAN-8 ....................................................................................................................... 8
4.5. EAN2 & EAN5 .......................................................................................................... 8
4.6. Relation between UPC EAN GS1 GTIN ..................................................................... 8
Bibliography .......................................................................................................................... 10

iii
List of Figures
1.1. UPC Barcode Format ....................................................................................................... 1
2.1. MSI exapmle 01234567 mode 10 .................................................................................... 6
4.1. Relation between UPC EAN GS1 GTIN ............................................................................. 9

iv
Chapter 1. Plessey
1.1. Barcode Basic Knowledge
1. Bar
bit 1, the vertical black line, called black bar or bar or dark bar.
2. Space
bit 0, the vertical white line/space area, called white space or space or light space

1.2. What is UPC
The UPC is Universal Product Code, is a barcode symbology.
The UPC is called, UPC-A.

1.3. Application Field
UPC is widely used in Canada and the United States for tracking trade items in stores

1.4. Example
Figure 1.1. UPC Barcode Format

1
Plessey

1.5. Technical Detail
The UPC has only numerals (digital number), without letters (such as ‘A’, ‘B’,… ) or other
(control / function ) characters.
Total 12 decimal digits, its format/syntax is:
SLLLLLLMRRRRRRE
In which:
1. S – Start, E – End
fixed bit pattern 101
2. M – Middle
fixed bit pattern 01010, called guard bars
3. L – Left, R - Right
both have 6 digits, each digit is a 7 bits code
So, total bits = S + L + M + R +E = 3 + 7 * 6 + 5 + 7 * 6 + 3 = 95 bits
Since S, M, and E all include two bars, and each of the 12 digits of the UPC-A barcode consists
of two bars and two spaces, all UPC-A barcodes consist of exactly (3 × 2) + (12 × 2) = 30 bars.
For left digits and right digits:
The first digit L is the prefix.
The last digit R is an error correcting check digit, allowing some errors in scanning or manual
entry to be detected.
UPC data structures are a component of GTINs (Global Trade Item Numbers). All of these data
structures follow the global GS1 standards.

1.5.1. Bit Pattern of Digit
The bar-and-space patterns for each digit 0–9 are as follows:
Digit

L Pattern

R Pattern

Widths

0

0001101

1110010

3211

1

0011001

1100110

2221

2

0010011

1101100

2122

3

0111101

1000010

1411

4

0100011

1011100

1132

5

0110001

1001110

1231

6

0101111

1010000

1114

7

0111011

1000100

1312

8

0110111

1001000

1213

9

0001011

1110100

3112

bit pattern for each numeral is designed to be as little like the others as possible, and to have
no more than four consecutive 1s or 0s in order -> more easy to read and recognize it.
2
Plessey

1.5.1.1. Mirrored Bit Pattern Design
Numbers on the right side of the middle guard bars are optically the inverse of the numbers to
the left. In other words, while a number on the left side of the UPC will be made up of black bars
and white spaces, the same number on the right side would be indicated by the inverse (what
was black on the left is now white and what was white is now black).
In the illustration above, the "4" digit (shown in detail) is 1011100 (bar × 1, space × 1, bar ×
3, space × 2). If the "4" digit were on the left hand side it would be 0100011 (space × 1, bar
× 1, space × 3, bar × 2).
This inversion enables the bar code to be scanned from left-to-right or right-to-left. Left-side
digits consist of an even number of white space bits and an odd number of black bars. Right
side digits are the opposite. Using this difference, the scanning software knows if it read the
code the correct way or upside down.

1.5.2. Check Digit Calculation
In the UPC-A system, the check digit is calculated as follows:
1. Add the digits in the odd-numbered positions (first, third, fifth, etc.) together and multiply
by three.
2. Add the digits in the even-numbered positions (second, fourth, sixth, etc.) to the result.
3. Find the result modulo 10 (i.e. the remainder when divided by 10.. 10 goes into 58 5 times
with 8 leftover).
4. If the result is not zero, subtract the result from ten.
For example, 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
1. adding the odd-numbered digits (0 + 6 + 0 + 2 + 1 + 5 = 14), multiplying by three (14 ×
3 = 42),
2. adding the even-numbered digits (42 + (3 + 0 + 0 + 9 + 4) = 58),
3. calculating modulo ten (58 mod 10 = 8),
4. subtracting from ten (10 - 8 = 2).
The check digit is thus 2.
This should not be confused with the real numeral "X" which stands for a value of 10 in modulo
11.

1.5.3. Prefixes
Prefix Value

Usage/ Application Field

0 , 1, 6, 7, 8

For most products

2

Reserved for local use (store/warehouse), for items sold by variable weight.
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 RRRRR is either the weight or the price,
with the first R determining which.

3

Drugs, by National Drug Code number. Pharmaceuticals in the U.S. have the
remainder of the UPC as their National Drug Code (NDC) number; though

[1]

3
Plessey

Prefix Value

Usage/ Application Field
usually only over-the-counter drugs are scanned at point-of-sale, NDCbased UPCs are used on prescription drug packages as well for inventory
purposes

4

Reserved for local use (store/warehouse), often for loyalty cards or store
coupons

5

Coupons, The Manufacturer code is the LLLLL, the first 3 RRR are a family
code (set by manufacturer), and the next 2 RR are a coupon code. This 2digit code determines the amount of the discount, according to a table set
by the GS1 US, with the final R being the check digit. These coupons can
be doubled or tripled

9

Coupons, The Manufacturer code is the LLLLL, the first 3 RRR are a family
code (set by manufacturer), and the next 2 RR are a coupon code. This 2digit code determines the amount of the discount, according to a table
set by the GS1 US, with the final R being the check digit. These coupons
CANNOT be doubled or tripled

Note
1. 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.

4
Chapter 2. Zero-Compressed UPC ⇒
UPC-E

To allow the use of UPC barcodes on smaller packages where a full 12-digit barcode may not
fit, a 'zero-compressed' version of UPC was developed called UPC-E.
This symbology differs from UPC-A in that it only uses a 6-digit code, does not use middle guard
bars, and the end bit pattern (E) becomes 010101.
The way in which a 6-digit UPC-E relates to a 12-digit UPC-A is determined by the last (righthand most) digit. With the manufacturer code represented by X's, and product code by N's then:
Last digit

UPC-E equivalent is

UPC-A equivalent is

0

XXNNN0

0XX000-00NNN + check

1

XXNNN1

0XX100-00NNN + check

2

XXNNN2

0XX200-00NNN + check

3

XXXNN3

0XXX00-000NN + check

4

XXXXN4

0XXXX0-0000N + check

5

XXXXX5

0XXXXX-00005 + check

6

XXXXX6

0XXXXX-00006 + check

7

XXXXX7

0XXXXX-00007 + check

8

XXXXX8

0XXXXX-00008 + check

9

XXXXX9

0XXXXX-00009 + check

For example a UPC-E barcode with the number 654321 would expand to the UPC-A
065100004327. You can convert UPC-E back to UPC-A using this web utility.
UPC-E check digits are calculated using this expanded string in the same way as used by UPC-A.
The resulting check digit is not added to the barcode, however, but is encoded by manipulating
the parity of the six digits which are present in the UPC-E - as shown in the following tables:
Check digit

Parity pattern

0

EEEOOO

1

EEOEOO

2

EEOOEO

3

EEOOOE

4

EOEEOO

5

EOOEEO

6

EOOOEE

7

EOEOEO

8

EOEOOE

9

EOOEOE

Digit to be Odd parity pattern
encoded

Even parity pattern

0

1-1-2-3

3-2-1-1

5
Digit to be Odd parity pattern
encoded

Zero-Compressed
UPC ⇒ UPC-E

Even parity pattern

1

2-2-2-1

1-2-2-2

2

2-1-2-2

2-2-1-2

3

1-4-1-1

1-1-4-1

4

1-1-3-2

2-3-1-1

5

1-2-3-1

1-3-2-1

6

1-1-1-4

4-1-1-1

7

1-3-1-2

2-1-3-1

8

1-2-1-3

3-1-2-1

9

3-1-1-2

2-1-1-3

Our example code 654321, therefore, would become 1-1-1 4-1-1-1 1-2-3-1 2-3-1-1 1-4-1-1
2-2-1-2 2-2-2-1 1-1-1-1-1-1. The resulting barcode would look roughly like this:

Figure 2.1. MSI exapmle 01234567 mode 10

6
Chapter 3. Printing Considerations
3.1. Dimensions
UPC-A Bar code symbols can be printed at various densities to accommodate a variety of
printing and scanning processes.
The significant dimensional parameter is called X-dimension, the ideal width of single module
element. The X-dimension has to be constant in UPC-A symbol. The width of each bar (dark
bar) and space (light bar) is determined by multiplying the X-dimension by the module width
of each dark bar or light bar (1,2,3, or 4).
The X-dimension for the UPC-A at the nominal size is 0.33 mm (0.013 in.). UPC-A can be reduced
or magnified in the range of 80% to 200%.
Nominal symbol height for UPC-A is 25.9 mm (1.0 in.). In UPC-A the dark bars forming the left,
centre, and right Guard Bar Patterns are extended downwards by 5 times X-dimension. This also
applies to the bars of the first and the last symbol characters of UPC-A symbol. See illustration.

3.2. Quiet Zone (Light Margin)
The minimum Quiet Zone width required by the UPC-A bar code symbol is 9 x X-dimension on
both the left and right sides. UPC-E requires 9 X-dimension units on the left side and 7 on the
right. (Source; UPC Symbol Specification Manual).

3.3. Barcode Text
Exactly 12 digits must be printed below the UPC-A barcode.

7
Chapter 4. EAN & IAN, EAN-13 &
JAN, GTIN, EAN-8, EAN2 & EAN5
4.1. EAN, IAN
EAN means "European Article Number", but now renamed IAN (International Article Number)
even though the abbreviation has been retained.
The EAN was developed as a superset of UPC, adding an extra digit to the beginning so that
there would be plenty of numbers for the entire world.

4.2. EAN-13, JAN
An EAN-13 barcode is a 13 digit (12 + check digit) barcoding standard which is a superset of
the original 12-digit UPC (Universal Product Code) system developed in the United States.
The EAN-13 barcode is defined by the standards organisation GS1.
The EAN-13 barcodes are used worldwide for marking products often sold at retail point of sale.
The numbers encoded in EAN-13 bar codes are product identification numbers, which are also
called Japanese Article Number (JAN) in Japan.

4.3. GTIN
All the numbers encoded in UPC and EAN barcodes are known as Global Trade Item Numbers
(GTIN), and they can be encoded in other GS1 barcodes.

4.4. EAN-8
An EAN-8 is a barcode and is derived from the longer European Article Number (EAN-13) code.
It was introduced for use on small packages where an EAN-13 barcode would be too large; for
example on cigarettes, pencils (though it is rarely used for pencils), and chewing gum packets.
EAN-8 barcodes may be used to encode GTIN-8s which are another set of product identifiers
from the GS1 System.
It begins with a 2- or 3-digit GS1 prefix (which is assigned to each national GS1 authority) 5- or 4digit item reference element depending on the length of the GS1 prefix), and a checksum digit.
EAN-8 codes are common throughout the world, and companies may also use them to encode
RCN-8s (8-digit Restricted Circulation Numbers) used to identify own-brand products sold only
in their stores. These are formatted as 0xxx xxxx or 2xxx xxxx.

4.5. EAN2 & EAN5
2-digit (EAN 2) and 5-digit (EAN 5) supplemental barcodes may be added for a total of 14 or
17 data digits. These are generally used for periodicals (to indicate the serial number), or books
and weighted products like food (to indicate the selling price), respectively.

4.6. Relation between UPC EAN GS1 GTIN
The relation between UPC, EAN, GS1, GTIN, can be illustrated by following figure:
8
EAN & IAN, EAN-13 & JAN,
GTIN, EAN-8, EAN2 & EAN5

Figure 4.1. Relation between UPC EAN GS1 GTIN

9
Bibliography
[1] Universal Product Code

1
2

[2] European Article Number
[3] EAN 8

1
2
3

3

http://en.wikipedia.org/wiki/Universal_Product_Code
http://en.wikipedia.org/wiki/EAN-13
http://en.wikipedia.org/wiki/EAN_8

10

More Related Content

What's hot

Application in comprog
Application in comprogApplication in comprog
Application in comprogMARKVILLAPLAZA
 
Manoch1raw 160512091436
Manoch1raw 160512091436Manoch1raw 160512091436
Manoch1raw 160512091436marangburu42
 
Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codesGargiKhanna1
 
Data representation computer architecture
Data representation  computer architectureData representation  computer architecture
Data representation computer architecturestudy cse
 
Bcd to excess 3 code converter
Bcd to excess 3 code converterBcd to excess 3 code converter
Bcd to excess 3 code converterUshaswini Chowdary
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
 
As Level Computer Science Book -1
As Level Computer Science  Book -1As Level Computer Science  Book -1
As Level Computer Science Book -1DIGDARSHAN KUNWAR
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversionsSusantha Herath
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codesRevathi Subramaniam
 
Lec 02 data representation part 1
Lec 02 data representation part 1Lec 02 data representation part 1
Lec 02 data representation part 1Abdul Khan
 

What's hot (20)

Application in comprog
Application in comprogApplication in comprog
Application in comprog
 
Codes r005
Codes  r005Codes  r005
Codes r005
 
Introduction to Computing
Introduction to ComputingIntroduction to Computing
Introduction to Computing
 
Manoch1raw 160512091436
Manoch1raw 160512091436Manoch1raw 160512091436
Manoch1raw 160512091436
 
Codes
CodesCodes
Codes
 
Lecture set 3
Lecture set 3Lecture set 3
Lecture set 3
 
Representation of Real Numbers
Representation of Real NumbersRepresentation of Real Numbers
Representation of Real Numbers
 
Binary codes
Binary codesBinary codes
Binary codes
 
Vhdl introduction
Vhdl introductionVhdl introduction
Vhdl introduction
 
Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codes
 
Data representation computer architecture
Data representation  computer architectureData representation  computer architecture
Data representation computer architecture
 
Bcd to excess 3 code converter
Bcd to excess 3 code converterBcd to excess 3 code converter
Bcd to excess 3 code converter
 
Csc 2313 (lecture 3)
Csc 2313 (lecture 3)Csc 2313 (lecture 3)
Csc 2313 (lecture 3)
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
As Level Computer Science Book -1
As Level Computer Science  Book -1As Level Computer Science  Book -1
As Level Computer Science Book -1
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversions
 
Meghna ppt.
Meghna ppt.Meghna ppt.
Meghna ppt.
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codes
 
B sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lcktB sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lckt
 
Lec 02 data representation part 1
Lec 02 data representation part 1Lec 02 data representation part 1
Lec 02 data representation part 1
 

Viewers also liked

Arm vs mips
Arm vs mipsArm vs mips
Arm vs mipscri fan
 
Virtualbox tutorial
Virtualbox tutorialVirtualbox tutorial
Virtualbox tutorialcri fan
 
Docbook dev note
Docbook dev noteDocbook dev note
Docbook dev notecri fan
 
Usb basic
Usb basicUsb basic
Usb basiccri fan
 
Json tutorial
Json tutorialJson tutorial
Json tutorialcri fan
 
Dma pl08x analysis
Dma pl08x analysisDma pl08x analysis
Dma pl08x analysiscri fan
 
Cross compile
Cross compileCross compile
Cross compilecri fan
 
Symbology code128
Symbology code128Symbology code128
Symbology code128cri fan
 
Dma pl08x analysis
Dma pl08x analysisDma pl08x analysis
Dma pl08x analysiscri fan
 
Regular expression
Regular expressionRegular expression
Regular expressioncri fan
 
Crifanlib python
Crifanlib pythonCrifanlib python
Crifanlib pythoncri fan
 
Crifanlib csharp
Crifanlib csharpCrifanlib csharp
Crifanlib csharpcri fan
 
Symbology gs1128
Symbology gs1128Symbology gs1128
Symbology gs1128cri fan
 
Buy house
Buy houseBuy house
Buy housecri fan
 

Viewers also liked (15)

Arm vs mips
Arm vs mipsArm vs mips
Arm vs mips
 
Virtualbox tutorial
Virtualbox tutorialVirtualbox tutorial
Virtualbox tutorial
 
Docbook dev note
Docbook dev noteDocbook dev note
Docbook dev note
 
Usb basic
Usb basicUsb basic
Usb basic
 
Usb hid
Usb hidUsb hid
Usb hid
 
Json tutorial
Json tutorialJson tutorial
Json tutorial
 
Dma pl08x analysis
Dma pl08x analysisDma pl08x analysis
Dma pl08x analysis
 
Cross compile
Cross compileCross compile
Cross compile
 
Symbology code128
Symbology code128Symbology code128
Symbology code128
 
Dma pl08x analysis
Dma pl08x analysisDma pl08x analysis
Dma pl08x analysis
 
Regular expression
Regular expressionRegular expression
Regular expression
 
Crifanlib python
Crifanlib pythonCrifanlib python
Crifanlib python
 
Crifanlib csharp
Crifanlib csharpCrifanlib csharp
Crifanlib csharp
 
Symbology gs1128
Symbology gs1128Symbology gs1128
Symbology gs1128
 
Buy house
Buy houseBuy house
Buy house
 

Similar to Symbology upc

TM112 Meeting2-Binary data representation.pptx
TM112 Meeting2-Binary data representation.pptxTM112 Meeting2-Binary data representation.pptx
TM112 Meeting2-Binary data representation.pptxMohammedYusuf609377
 
Write the code in C, here is the template providedThe input used .pdf
Write the code in C, here is the template providedThe input used .pdfWrite the code in C, here is the template providedThe input used .pdf
Write the code in C, here is the template providedThe input used .pdfsales223546
 
Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...ArtemKovera
 
Computer archi&mp
Computer archi&mpComputer archi&mp
Computer archi&mpMSc CST
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
chapter one && two.pdf
chapter one && two.pdfchapter one && two.pdf
chapter one && two.pdfmiftah88
 
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCETDigital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCETSeshaVidhyaS
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental Aman anand kumar
 
Number System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptxNumber System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptxMaheShiva
 

Similar to Symbology upc (20)

TM112 Meeting2-Binary data representation.pptx
TM112 Meeting2-Binary data representation.pptxTM112 Meeting2-Binary data representation.pptx
TM112 Meeting2-Binary data representation.pptx
 
Write the code in C, here is the template providedThe input used .pdf
Write the code in C, here is the template providedThe input used .pdfWrite the code in C, here is the template providedThe input used .pdf
Write the code in C, here is the template providedThe input used .pdf
 
Chapter 1: Binary System
 Chapter 1: Binary System Chapter 1: Binary System
Chapter 1: Binary System
 
Counting circuits
Counting circuitsCounting circuits
Counting circuits
 
DLD Chapter-1.pdf
DLD Chapter-1.pdfDLD Chapter-1.pdf
DLD Chapter-1.pdf
 
Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...
 
Number system
Number systemNumber system
Number system
 
Computer archi&mp
Computer archi&mpComputer archi&mp
Computer archi&mp
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
chapter one && two.pdf
chapter one && two.pdfchapter one && two.pdf
chapter one && two.pdf
 
Maths tips
Maths tipsMaths tips
Maths tips
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 
Number Systems.pptx
Number Systems.pptxNumber Systems.pptx
Number Systems.pptx
 
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCETDigital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental
 
Number System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptxNumber System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptx
 
Dpsd lecture-notes
Dpsd lecture-notesDpsd lecture-notes
Dpsd lecture-notes
 

More from cri fan

Scientific network summary
Scientific network summaryScientific network summary
Scientific network summarycri fan
 
Virutal machine tutorial
Virutal machine tutorialVirutal machine tutorial
Virutal machine tutorialcri fan
 
Usb disk driver
Usb disk driverUsb disk driver
Usb disk drivercri fan
 
Uboot starts analysis
Uboot starts analysisUboot starts analysis
Uboot starts analysiscri fan
 
Symbology plessey
Symbology plesseySymbology plessey
Symbology plesseycri fan
 
Soft dev basic
Soft dev basicSoft dev basic
Soft dev basiccri fan
 
Runtime upgrade linux
Runtime upgrade linuxRuntime upgrade linux
Runtime upgrade linuxcri fan
 
Rec soft npp
Rec soft nppRec soft npp
Rec soft nppcri fan
 
Python topic str_encoding
Python topic str_encodingPython topic str_encoding
Python topic str_encodingcri fan
 
Python topic re
Python topic rePython topic re
Python topic recri fan
 
Python summary
Python summaryPython summary
Python summarycri fan
 
Python intermediate tutorial
Python intermediate tutorialPython intermediate tutorial
Python intermediate tutorialcri fan
 
Python beginner tutorial
Python beginner tutorialPython beginner tutorial
Python beginner tutorialcri fan
 
Programming language basic
Programming language basicProgramming language basic
Programming language basiccri fan
 
Nand get type
Nand get typeNand get type
Nand get typecri fan
 
Mpeg vbr
Mpeg vbrMpeg vbr
Mpeg vbrcri fan
 
Linux wireless
Linux wirelessLinux wireless
Linux wirelesscri fan
 
Linux nand driver
Linux nand driverLinux nand driver
Linux nand drivercri fan
 
Language summary
Language summaryLanguage summary
Language summarycri fan
 
Interrupt related
Interrupt relatedInterrupt related
Interrupt relatedcri fan
 

More from cri fan (20)

Scientific network summary
Scientific network summaryScientific network summary
Scientific network summary
 
Virutal machine tutorial
Virutal machine tutorialVirutal machine tutorial
Virutal machine tutorial
 
Usb disk driver
Usb disk driverUsb disk driver
Usb disk driver
 
Uboot starts analysis
Uboot starts analysisUboot starts analysis
Uboot starts analysis
 
Symbology plessey
Symbology plesseySymbology plessey
Symbology plessey
 
Soft dev basic
Soft dev basicSoft dev basic
Soft dev basic
 
Runtime upgrade linux
Runtime upgrade linuxRuntime upgrade linux
Runtime upgrade linux
 
Rec soft npp
Rec soft nppRec soft npp
Rec soft npp
 
Python topic str_encoding
Python topic str_encodingPython topic str_encoding
Python topic str_encoding
 
Python topic re
Python topic rePython topic re
Python topic re
 
Python summary
Python summaryPython summary
Python summary
 
Python intermediate tutorial
Python intermediate tutorialPython intermediate tutorial
Python intermediate tutorial
 
Python beginner tutorial
Python beginner tutorialPython beginner tutorial
Python beginner tutorial
 
Programming language basic
Programming language basicProgramming language basic
Programming language basic
 
Nand get type
Nand get typeNand get type
Nand get type
 
Mpeg vbr
Mpeg vbrMpeg vbr
Mpeg vbr
 
Linux wireless
Linux wirelessLinux wireless
Linux wireless
 
Linux nand driver
Linux nand driverLinux nand driver
Linux nand driver
 
Language summary
Language summaryLanguage summary
Language summary
 
Interrupt related
Interrupt relatedInterrupt related
Interrupt related
 

Recently uploaded

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 

Recently uploaded (20)

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

Symbology upc

  • 1. UPC/UPC-A/UPC-E & EAN Barcode Symbology Version:v1.1 Crifan Li Abstract This article explains the details of UPC symbology and other related UPC-A, UPC-E and EAN. This article provide multiple formats: Reading Online HTML 1 HTMLs 2 PDF 3 CHM 4 TXT 5 RTF 6 Download(7Zip package) HTML 7 HTMLs 8 PDF 9 CHM 10 TXT 11 RTF 12 HTML version online address: http://www.crifan.com/files/doc/docbook/symbology_upc/release/html/symbology_ upc.html Any question or bug report are encouraged to post in the discussion group: http://www.crifan.com/bbs/categories/symbology_upc/ Revision History Revision 1.0 2011-07-12 crl 1. explain the UPC and related UPC-A, UPC-E and EAN symboloy Revision 1.1 2012-08-09 crl 1. Release via Docbook 1 http://www.crifan.com/files/doc/docbook/symbology_upc/release/html/symbology_upc.html http://www.crifan.com/files/doc/docbook/symbology_upc/release/htmls/index.html 3 http://www.crifan.com/files/doc/docbook/symbology_upc/release/pdf/symbology_upc.pdf 4 http://www.crifan.com/files/doc/docbook/symbology_upc/release/chm/symbology_upc.chm 5 http://www.crifan.com/files/doc/docbook/symbology_upc/release/txt/symbology_upc.txt 6 http://www.crifan.com/files/doc/docbook/symbology_upc/release/rtf/symbology_upc.rtf 7 http://www.crifan.com/files/doc/docbook/symbology_upc/release/html/symbology_upc.html.7z 8 http://www.crifan.com/files/doc/docbook/symbology_upc/release/htmls/index.html.7z 9 http://www.crifan.com/files/doc/docbook/symbology_upc/release/pdf/symbology_upc.pdf.7z 10 http://www.crifan.com/files/doc/docbook/symbology_upc/release/chm/symbology_upc.chm.7z 11 http://www.crifan.com/files/doc/docbook/symbology_upc/release/txt/symbology_upc.txt.7z 12 http://www.crifan.com/files/doc/docbook/symbology_upc/release/rtf/symbology_upc.rtf.7z 2
  • 2. UPC/UPC-A/UPC-E & EAN Barcode Symbology: Crifan Li Version:v1.1 Publication date 2012-08-09 Copyright © 2012 Crifan, http://crifan.com This article conform to:Attribution-NonCommercial 2.5 Generic (CC BY-NC 2.5) 13 13 http://www.crifan.com/files/doc/docbook/soft_dev_basic/release/html/soft_dev_basic.html#cc_by_nc
  • 3. Table of Contents 1. Plessey ................................................................................................................................ 1 1.1. Barcode Basic Knowledge ........................................................................................ 1 1.2. What is UPC ............................................................................................................ 1 1.3. Application Field ...................................................................................................... 1 1.4. Example ................................................................................................................... 1 1.5. Technical Detail ........................................................................................................ 2 1.5.1. Bit Pattern of Digit ........................................................................................ 2 1.5.1.1. Mirrored Bit Pattern Design ................................................................ 3 1.5.2. Check Digit Calculation ................................................................................. 3 1.5.3. Prefixes .......................................................................................................... 3 2. Zero-Compressed UPC ⇒ UPC-E ........................................................................................ 5 3. Printing Considerations ...................................................................................................... 7 3.1. Dimensions .............................................................................................................. 7 3.2. Quiet Zone (Light Margin) ....................................................................................... 7 3.3. Barcode Text ............................................................................................................ 7 4. EAN & IAN, EAN-13 & JAN, GTIN, EAN-8, EAN2 & EAN5 .................................................. 8 4.1. EAN, IAN .................................................................................................................. 8 4.2. EAN-13, JAN ............................................................................................................ 8 4.3. GTIN ......................................................................................................................... 8 4.4. EAN-8 ....................................................................................................................... 8 4.5. EAN2 & EAN5 .......................................................................................................... 8 4.6. Relation between UPC EAN GS1 GTIN ..................................................................... 8 Bibliography .......................................................................................................................... 10 iii
  • 4. List of Figures 1.1. UPC Barcode Format ....................................................................................................... 1 2.1. MSI exapmle 01234567 mode 10 .................................................................................... 6 4.1. Relation between UPC EAN GS1 GTIN ............................................................................. 9 iv
  • 5. Chapter 1. Plessey 1.1. Barcode Basic Knowledge 1. Bar bit 1, the vertical black line, called black bar or bar or dark bar. 2. Space bit 0, the vertical white line/space area, called white space or space or light space 1.2. What is UPC The UPC is Universal Product Code, is a barcode symbology. The UPC is called, UPC-A. 1.3. Application Field UPC is widely used in Canada and the United States for tracking trade items in stores 1.4. Example Figure 1.1. UPC Barcode Format 1
  • 6. Plessey 1.5. Technical Detail The UPC has only numerals (digital number), without letters (such as ‘A’, ‘B’,… ) or other (control / function ) characters. Total 12 decimal digits, its format/syntax is: SLLLLLLMRRRRRRE In which: 1. S – Start, E – End fixed bit pattern 101 2. M – Middle fixed bit pattern 01010, called guard bars 3. L – Left, R - Right both have 6 digits, each digit is a 7 bits code So, total bits = S + L + M + R +E = 3 + 7 * 6 + 5 + 7 * 6 + 3 = 95 bits Since S, M, and E all include two bars, and each of the 12 digits of the UPC-A barcode consists of two bars and two spaces, all UPC-A barcodes consist of exactly (3 × 2) + (12 × 2) = 30 bars. For left digits and right digits: The first digit L is the prefix. The last digit R is an error correcting check digit, allowing some errors in scanning or manual entry to be detected. UPC data structures are a component of GTINs (Global Trade Item Numbers). All of these data structures follow the global GS1 standards. 1.5.1. Bit Pattern of Digit The bar-and-space patterns for each digit 0–9 are as follows: Digit L Pattern R Pattern Widths 0 0001101 1110010 3211 1 0011001 1100110 2221 2 0010011 1101100 2122 3 0111101 1000010 1411 4 0100011 1011100 1132 5 0110001 1001110 1231 6 0101111 1010000 1114 7 0111011 1000100 1312 8 0110111 1001000 1213 9 0001011 1110100 3112 bit pattern for each numeral is designed to be as little like the others as possible, and to have no more than four consecutive 1s or 0s in order -> more easy to read and recognize it. 2
  • 7. Plessey 1.5.1.1. Mirrored Bit Pattern Design Numbers on the right side of the middle guard bars are optically the inverse of the numbers to the left. In other words, while a number on the left side of the UPC will be made up of black bars and white spaces, the same number on the right side would be indicated by the inverse (what was black on the left is now white and what was white is now black). In the illustration above, the "4" digit (shown in detail) is 1011100 (bar × 1, space × 1, bar × 3, space × 2). If the "4" digit were on the left hand side it would be 0100011 (space × 1, bar × 1, space × 3, bar × 2). This inversion enables the bar code to be scanned from left-to-right or right-to-left. Left-side digits consist of an even number of white space bits and an odd number of black bars. Right side digits are the opposite. Using this difference, the scanning software knows if it read the code the correct way or upside down. 1.5.2. Check Digit Calculation In the UPC-A system, the check digit is calculated as follows: 1. Add the digits in the odd-numbered positions (first, third, fifth, etc.) together and multiply by three. 2. Add the digits in the even-numbered positions (second, fourth, sixth, etc.) to the result. 3. Find the result modulo 10 (i.e. the remainder when divided by 10.. 10 goes into 58 5 times with 8 leftover). 4. If the result is not zero, subtract the result from ten. For example, 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 1. adding the odd-numbered digits (0 + 6 + 0 + 2 + 1 + 5 = 14), multiplying by three (14 × 3 = 42), 2. adding the even-numbered digits (42 + (3 + 0 + 0 + 9 + 4) = 58), 3. calculating modulo ten (58 mod 10 = 8), 4. subtracting from ten (10 - 8 = 2). The check digit is thus 2. This should not be confused with the real numeral "X" which stands for a value of 10 in modulo 11. 1.5.3. Prefixes Prefix Value Usage/ Application Field 0 , 1, 6, 7, 8 For most products 2 Reserved for local use (store/warehouse), for items sold by variable weight. 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 RRRRR is either the weight or the price, with the first R determining which. 3 Drugs, by National Drug Code number. Pharmaceuticals in the U.S. have the remainder of the UPC as their National Drug Code (NDC) number; though [1] 3
  • 8. Plessey Prefix Value Usage/ Application Field usually only over-the-counter drugs are scanned at point-of-sale, NDCbased UPCs are used on prescription drug packages as well for inventory purposes 4 Reserved for local use (store/warehouse), often for loyalty cards or store coupons 5 Coupons, The Manufacturer code is the LLLLL, the first 3 RRR are a family code (set by manufacturer), and the next 2 RR are a coupon code. This 2digit code determines the amount of the discount, according to a table set by the GS1 US, with the final R being the check digit. These coupons can be doubled or tripled 9 Coupons, The Manufacturer code is the LLLLL, the first 3 RRR are a family code (set by manufacturer), and the next 2 RR are a coupon code. This 2digit code determines the amount of the discount, according to a table set by the GS1 US, with the final R being the check digit. These coupons CANNOT be doubled or tripled Note 1. 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. 4
  • 9. Chapter 2. Zero-Compressed UPC ⇒ UPC-E To allow the use of UPC barcodes on smaller packages where a full 12-digit barcode may not fit, a 'zero-compressed' version of UPC was developed called UPC-E. This symbology differs from UPC-A in that it only uses a 6-digit code, does not use middle guard bars, and the end bit pattern (E) becomes 010101. The way in which a 6-digit UPC-E relates to a 12-digit UPC-A is determined by the last (righthand most) digit. With the manufacturer code represented by X's, and product code by N's then: Last digit UPC-E equivalent is UPC-A equivalent is 0 XXNNN0 0XX000-00NNN + check 1 XXNNN1 0XX100-00NNN + check 2 XXNNN2 0XX200-00NNN + check 3 XXXNN3 0XXX00-000NN + check 4 XXXXN4 0XXXX0-0000N + check 5 XXXXX5 0XXXXX-00005 + check 6 XXXXX6 0XXXXX-00006 + check 7 XXXXX7 0XXXXX-00007 + check 8 XXXXX8 0XXXXX-00008 + check 9 XXXXX9 0XXXXX-00009 + check For example a UPC-E barcode with the number 654321 would expand to the UPC-A 065100004327. You can convert UPC-E back to UPC-A using this web utility. UPC-E check digits are calculated using this expanded string in the same way as used by UPC-A. The resulting check digit is not added to the barcode, however, but is encoded by manipulating the parity of the six digits which are present in the UPC-E - as shown in the following tables: Check digit Parity pattern 0 EEEOOO 1 EEOEOO 2 EEOOEO 3 EEOOOE 4 EOEEOO 5 EOOEEO 6 EOOOEE 7 EOEOEO 8 EOEOOE 9 EOOEOE Digit to be Odd parity pattern encoded Even parity pattern 0 1-1-2-3 3-2-1-1 5
  • 10. Digit to be Odd parity pattern encoded Zero-Compressed UPC ⇒ UPC-E Even parity pattern 1 2-2-2-1 1-2-2-2 2 2-1-2-2 2-2-1-2 3 1-4-1-1 1-1-4-1 4 1-1-3-2 2-3-1-1 5 1-2-3-1 1-3-2-1 6 1-1-1-4 4-1-1-1 7 1-3-1-2 2-1-3-1 8 1-2-1-3 3-1-2-1 9 3-1-1-2 2-1-1-3 Our example code 654321, therefore, would become 1-1-1 4-1-1-1 1-2-3-1 2-3-1-1 1-4-1-1 2-2-1-2 2-2-2-1 1-1-1-1-1-1. The resulting barcode would look roughly like this: Figure 2.1. MSI exapmle 01234567 mode 10 6
  • 11. Chapter 3. Printing Considerations 3.1. Dimensions UPC-A Bar code symbols can be printed at various densities to accommodate a variety of printing and scanning processes. The significant dimensional parameter is called X-dimension, the ideal width of single module element. The X-dimension has to be constant in UPC-A symbol. The width of each bar (dark bar) and space (light bar) is determined by multiplying the X-dimension by the module width of each dark bar or light bar (1,2,3, or 4). The X-dimension for the UPC-A at the nominal size is 0.33 mm (0.013 in.). UPC-A can be reduced or magnified in the range of 80% to 200%. Nominal symbol height for UPC-A is 25.9 mm (1.0 in.). In UPC-A the dark bars forming the left, centre, and right Guard Bar Patterns are extended downwards by 5 times X-dimension. This also applies to the bars of the first and the last symbol characters of UPC-A symbol. See illustration. 3.2. Quiet Zone (Light Margin) The minimum Quiet Zone width required by the UPC-A bar code symbol is 9 x X-dimension on both the left and right sides. UPC-E requires 9 X-dimension units on the left side and 7 on the right. (Source; UPC Symbol Specification Manual). 3.3. Barcode Text Exactly 12 digits must be printed below the UPC-A barcode. 7
  • 12. Chapter 4. EAN & IAN, EAN-13 & JAN, GTIN, EAN-8, EAN2 & EAN5 4.1. EAN, IAN EAN means "European Article Number", but now renamed IAN (International Article Number) even though the abbreviation has been retained. The EAN was developed as a superset of UPC, adding an extra digit to the beginning so that there would be plenty of numbers for the entire world. 4.2. EAN-13, JAN An EAN-13 barcode is a 13 digit (12 + check digit) barcoding standard which is a superset of the original 12-digit UPC (Universal Product Code) system developed in the United States. The EAN-13 barcode is defined by the standards organisation GS1. The EAN-13 barcodes are used worldwide for marking products often sold at retail point of sale. The numbers encoded in EAN-13 bar codes are product identification numbers, which are also called Japanese Article Number (JAN) in Japan. 4.3. GTIN All the numbers encoded in UPC and EAN barcodes are known as Global Trade Item Numbers (GTIN), and they can be encoded in other GS1 barcodes. 4.4. EAN-8 An EAN-8 is a barcode and is derived from the longer European Article Number (EAN-13) code. It was introduced for use on small packages where an EAN-13 barcode would be too large; for example on cigarettes, pencils (though it is rarely used for pencils), and chewing gum packets. EAN-8 barcodes may be used to encode GTIN-8s which are another set of product identifiers from the GS1 System. It begins with a 2- or 3-digit GS1 prefix (which is assigned to each national GS1 authority) 5- or 4digit item reference element depending on the length of the GS1 prefix), and a checksum digit. EAN-8 codes are common throughout the world, and companies may also use them to encode RCN-8s (8-digit Restricted Circulation Numbers) used to identify own-brand products sold only in their stores. These are formatted as 0xxx xxxx or 2xxx xxxx. 4.5. EAN2 & EAN5 2-digit (EAN 2) and 5-digit (EAN 5) supplemental barcodes may be added for a total of 14 or 17 data digits. These are generally used for periodicals (to indicate the serial number), or books and weighted products like food (to indicate the selling price), respectively. 4.6. Relation between UPC EAN GS1 GTIN The relation between UPC, EAN, GS1, GTIN, can be illustrated by following figure: 8
  • 13. EAN & IAN, EAN-13 & JAN, GTIN, EAN-8, EAN2 & EAN5 Figure 4.1. Relation between UPC EAN GS1 GTIN 9
  • 14. Bibliography [1] Universal Product Code 1 2 [2] European Article Number [3] EAN 8 1 2 3 3 http://en.wikipedia.org/wiki/Universal_Product_Code http://en.wikipedia.org/wiki/EAN-13 http://en.wikipedia.org/wiki/EAN_8 10