Barcode Handbook: Barcode Type Selection Guide
Barcode Handbook: Barcode Type Selection Guide
Barcode Handbook: Barcode Type Selection Guide
CONTENTS
1
C h a p te r Basics of Bar Code
C h a p te r 2
EAN
C h a p te r 3
ITF and Standard Distribution Code
C h a p te r 4
CODE 39 and Codabar
C h a p te r 5
CODE 128 and GS1-128
5
7 check DR (Codabar) 64
3-2-3 Creation of Standard Distribution Code 29
Weighted Modulus 11 (Codabar) 65
3-2-4 Composition of Standard Distribution Code 29
Runes (Modulus 10/weight 2) (Codabar) 67
3-2-5 Assigning Distribution Identification Code 30
Modulus 103 (CODE 128) 68
3-2-6 Standard Size of Standard Distribution Code 31
3-2-7 Why Is ITF Used? 32
3-2-8 What Is Add-on Version? 32
3-2-9 Bearer Bar 32
Chapter 1
Basics of Bar Code
1-1 Basics of Bar Code 4
1-1-1 Structure of Bar Code 4
1-1-2 Narrow Bar and Wide Bar 5
1-1-3 Binary Level and Multiple Level 6
1-1-4 What Is Check Digit? 7
1-2 Bar Code Types 8
Chapter 1 Basics of Bar Code
Quiet Quiet
zone Bar code symbol zone
a 0 1 2 3 a
One Point
Unless the quiet zones are wide enough, it becomes unstable for the bar code reader to
scan the bar code data.
Start/stop character
Character to indicate start or end of the data.
Start/stop character varies depending on the type of the bar code. CODE 39 uses “*” and CODABAR uses “a”, “b”, “c”
and “d”. (EAN and ITF use, instead of character, a bar pattern which indicates the start/end of the data.)
Data (message)
Bar patterns of character (numeral, alphabet, etc.) representing the data are arranged from left.
The drawing above shows that the data of “012” is demonstrated, with the bar patterns representing 0, 1, and 2 being
arranged respectively from the left.
Check digit
A numeric value calculated to check for read error. It is appended directly after the bar code data. (See page 7 for
details.)
4
Chapter 1 Basics of Bar Code
NB
1
WB
NB : Narrow bar
WB : Wide bar
NS : Narrow space
WS : Wide space
WS
NS
NB : WB = NS : WS = 1 : 2 to 1 : 3
One Point
If the ratio of narrow and wide is out of the range above, the bar code reader may perform
unstable readings.
For preparing a bar code, careful attention shall be made to this ratio. The following ratio is
normally recommended for preparing a bar code.
The width of a narrow bar is a key for selecting a bar code reader.
Narrow bar width is also named “minimum element width”.
One Point
• If the narrow width is small:
• The size of a bar code becomes small.
• A bar code with many digits can be printed in a given space.
• The readable range (reading depth) for a bar code is narrowed.
• High performance is required for the printer to print a bar code.
(laser printer, thermal transfer printer)
5
Chapter 1 Basics of Bar Code
Narrow space
Wide space
Bar codes in the categories of EAN and CODE 128 consist of bars and spaces that have four steps of narrow and wide
widths. It is named the “multiple level” bar code.
The ratio is 1 : 2 : 3 : 4. Allowance is very limited.
One Point
“Multiple level” EAN and CODE 128 have four steps of bar width. If the print quality is not
good enough to identify the bar width, reading error tends to occur.
The printers with poor print quality including dot impact printer are not suitable for EAN and
CODE 128.
6
Chapter 1 Basics of Bar Code
1
Reading bar code • Bar code is read.
1 2 3 6
Read error
Mismatch 6
One Point
Calculating the check digit
The following explains how to calculate the check digit, taking Modulus 10/3 Weight as an example,
which is applied for EAN and ITF.
2 Multiply each odd numbered value by 3 and each even numbered value by 1.
3 Total the multiplied values and then subtract the last digit value of the total value from 10 to get
the check digit.
12 11 10 9 8 7 6 5 4 3 2 1
4 9 7 1 2 3 4 5 6 7 8 9
× × × × × × × × × × × ×
1 3 1 3 1 3 1 3 1 3 1 3
= = = = = = = = = = = =
4 + 27 + 7 + 3 + 2 + 9 + 4 + 15 + 6 + 21 + 8 + 27
=133
10 - 3 (the last digit value of 133) = 7
7
Chapter 1 Basics of Bar Code
1-2 Bar Code Types (EAN, CODE 39, ITF, CODABAR, CODE 128)
About 100 types of bar code are available in the world. The followings are typical bar codes:
Symbol
•N
umeric values •N
umeric values • Numeric values (0 to 9) • Numeric values (0 to 9) • All ASCII codes
(0 to 9) only (0 to 9) only • Alphabet • Symbol (-, $, /, +) • Numeric values
• Symbol (-, ., space, $, /, • S
tart/stop character (0 to 9)
Character +, %) (a to d) • Alphabet, upper
type • Start/stop character case/lower case
(*: asterisk) • Symbol
• Control character
([CR], [STX], etc.)
• Standardized as the • Allows a bar code size • Availability of alphabet • Possible to indicate • Supports all types of
distribution code. smaller than other bar and symbol allows some alphabets and characters.
code types with the indication of article symbols. • Allows the minimum
Features same digits. numbers. size of bar code for
indication with the
numeric values only.
(more than 12 digits)
Printable 13 digits or 8 digits Even digits only Any digits Any digits Any digits
digits
• Four bar sizes • Two bar sizes • Two bar sizes • Two bar sizes • Four bar sizes
• No start/stop character • No start/stop character • Uses asterisk * for start/ • Uses a to d for start/ •T hree types of start/
• Indicates one character • Indicates one character stop character. stop character. stop characters. Each
Bar with two bars and two with five bars (or five • Indicates one character • Indicates one character type supports its own
structure spaces. spaces). with five bars and four with four bars and three character type.
spaces. spaces. • Indicates one character
with three bars and
three spaces.
• World universal code • Standardized as the • Widely used as the • Blood bank • Starts to be used as
• Marked on most daily distribution code. industrial bar code. • Slip of door-to-door GS1-128 in each
goods • Automobile Industry delivery service (Japan) industry.
Application Action Group (AIAG) • Distribution business
performance • Book industry • Electronic Industries industry
Alliance (EIA) • Food industry
• Medical industry
8
Chapter 2
EAN
2-1 EAN Code and POS System 10
2-1-1 EAN Code 10
2-1-2 POS System 10
2-2 EAN Data Composition 12
2-2-1 Data Composition 12
2-2-2 Source Marking and In-store Marking 15
2-2-3 Standard Size and Magnification 16
2-3 Applications in Other Industries 17
2-3-1 EAN Code of Books 17
2-4 EAN Composition 18
2-4-1 EAN Composition (Details) 18
2-4-2 EAN Character Composition 18
2-4-3 Features of EAN Bar Composition 19
2-5 UPC 20
2-5-1 What Is UPC? 20
2-5-2 Number System Character and
Data Composition of UPC-A 20
2-5-3 Future of UPC Code 21
Chapter 2 EAN
2
Emollient
shampoo
1)
Sales
This item is 280YEN for sale. management
2)
Stock and
Only 10 pieces are left in stock. purchase
Try to purchase 50 pieces. management
3)
10
Chapter 2 EAN
1) Sales management
Use of a bar code allows everybody to work on a cash register without any difficulty. The system supports
the workers who are not skillful with cash register operation, so that the customers may not be forced to wait
for a long time.
Counting the daily sales amount can be done instantly.
11
Chapter 2 EAN
2 Country
code
Manufacturer
code
Product
item code
Check digit
Country code
Represents the country name. (See the table in page 14)
Manufacturer code
Represents the original seller’s name.
Manufacturer code shall be applied for registration at the code center of each country in order to obtain it.
EAN code can be used only after the manufacturer code is obtained.
Bar code for Kokuyo’s staple Bar code for Kokuyo’s B5 notebook
Manufacturer code
Product item code
12
Chapter 2 EAN
One Point For the companies who already obtained the manufacturer code with 5 digits, the conventional
manufacturer code with 5 digits can be used as they are, and no change of the coding system is
required.
The number of total digits (13 digits) remains unchanged.
The manufacturer codes with 5 digits and 7 digits will be used in parallel from January, 2001 onwards.
However, the following numbers will be assigned, so that the EAN code with the same number will never appear. (Table
below is applicable only in Japan.)
4900000 to 4999999
Manufacturer code with 5 digits
4500000 to 4599999
As can be seen above, the first three digits make it possible to find whether the manufacturer code has 5 digits or 7
digits.
13
Chapter 2 EAN
2 476
477
Azerbaijan (Note 4)
Lithuania
76
770
478 Uzbekistan 773
479 Sri Lanka 775
480 Philippine 777
481 Belarus 779
482 Ukraine 780
484 Moldova 784
485 Armenia 786
486 Georgia 789
487 Kazakhstan 80 to 83
489 Hong Kong 84
50 U.K. 850
520 Greece 858
528 Lebanon 859
529 Cyprus 860
531 Macedonia 867
535 Malta 869
539 Ireland 87
54 Belgium, Luxembourg 880
560 Portuguese 885
569 Iceland 888
57 Denmark 890
590 Poland 893
594 Romania 899
599 Hungary 90 to 91
600 to 601 The Republic of South Africa 93
609 Mauritius 94
611 Morocco 955
613 Algeria 977
619 Tunisia 978 to 979
621 Syria 980
622 Egypt 981 to 982
625 Jordan 99
626 Iran N/A (Note 5)
628 Saudi Arabia (Note 4)
64 Finland
(Note 1) EAN member countries do not include U.S.A. and Canada. The country code of U.S.A. and Canada will be changed from 00 to 13 in 2005.
(Note 2) U
PC, unified product code of U.S.A. and Canada, is established in 1973. Other 94 countries (92 organizations) are the member countries of International EAN
Association. The country code of U.S.A. and Canada will be changed from 00 to 13 in 2005.
(Note 3) The code center of each country defines its own usage. Used mainly for in-store marking of retailers.
(Note 4) New member country in 1999
(Note 5) New member country in 1999 (country code to be determined)
14
Chapter 2 EAN
2
The source-marked bar code has
“49” or “45”.
B5 notebook MADE IN JAPAN
2) In-store marking
Fresh foods (vegetables, meats, etc.) carry the labels where marking is arranged specifically by the individual
supermarket, because the price depends on the weight of the individual product. This operation is called in-store
marking, as it is available only in the store.
Since goods carrying in-store marking (e.g. vegetables) are sold only at that store, no manufacturer code is required
and thus, any data composition is for the store’s disposal. The price can also be included in the bar code. For the
first two digits corresponding to EAN country code, however, it is ruled to use 20 to 29 to avoid any confusion.
Sliced pork
Processed Open
date date
99.12.29 99.12.31
15
Chapter 2 EAN
· The narrow bar width of the standard bar code is 0.33 mm 0.013".
· The standard bar code can be enlarged or reduced within the range of magnification ratio from 0.8 to 2.0.
(The range for narrow bar width is from 0.26 to 0.66 mm 0.010" to 0.026".)
The following table shows the size of the bar code for each magnification.
(For standard type [13 digits] bar code)
Narrow bar width 0.264 mm 0.010" 0.33 mm 0.013" 0.396 mm 0.016" 0.66 mm 0.026"
2 Bar code length 29.83 mm 1.17" 37.29 mm 1.47" 44.75 mm 1.76" 74.58 mm 2.94"
Bar code height 18.29 mm 0.72" 22.86 mm 0.90" 27.43 mm 1.08" 45.72 mm 1.80"
16
Chapter 2 EAN
ISBN
A flag (978) to
identify ISBN
Classification Price
code code
17
Chapter 2 EAN
Check digit
Center bar
Center bar
Left Right Left Right
character data character data character data character data
(6 digits) (5 digits) (4 digits) (3 digits)
• EAN does not use start/stop character, while it has a left guard bar on the left, a right guard bar on the right, and a
center bar in the center of the bar code.
• Other numbers are arranged in order.
As can be seen from the arrangement of the bar code above, the standard type has only 12 digits including the check
digit. However, it actually represents 13 digits of data. For this, see page 16.
18
Chapter 2 EAN
For the leftmost character (the first digit) in the standard type, it is determined by any combination of the odd and even
parities of the 6 characters on the left side of the center bar.
The combination is as follows:
O : Odd parity
E : Even parity
0 OOOOOO 5 OEEOOE
1 OOEOEE 6 OEEEOO
2 OOEEOE 7 OEOEOE
3 OOEEEO 8 OEOEEO 2
4 OEOOEE 9 OEEOEO
In the short type (8 digits), all characters (4 digits) on the left side of the center bar are represented by odd parities.
• The EAN code uses 4 different bar widths, and high print quality is required. If the printers with low print quality, such
as ink jet printers for FA and dot impact printers, are used, the bar code reader cannot perform stable reading.
• The number of digits is fixed and users are not allowed to make their own data composition at their option.
19
Chapter 2 EAN
2-5 UPC
2-5-1 What Is UPC?
UPC is a unified product code used in U.S.A. and Canada. EAN of Europe and JAN of Japan are based on UPC.
UPC uses mainly UPC-A and UPC-E. UPC-A has 12 digits, while UPC-E has 8 digits.
UPC - A UPC - E
One Point
For the goods exported to U.S.A. and Canada, it is necessary to obtain the UPC manufacturer code
and to implement the source marking of UPC, because there are many
20
Chapter 2 EAN
0,6,7 0 0 1 2 3 4 0 1 2 3 4 0
NS Manufacturer code Product item code C/D
For source marking
(same system as for EAN) (From March 20, 2000 onwards)
1 0 1 2 3 4 5 6 0 1 2 1
1,8,9
NS Manufacturer code Product C/D
item code
2
For in-store marking
2 0 1 2 3 4 8 1 2 3 4 0 2
(weighing commodities) NS Product item code Price Price C/D
C/D
5 0 1 2 3 4 0 1 2 0 1 7
5 For coupons
NS Manufacturer code Family Coupon C/D
code price
One Point
The manufacturer codes applied after March 20, 2000 are changed to 7 digits, the same as for EAN.
21
Chapter 2 EAN
MEMO
22
Chapter 3
ITF and
Standard Distribution Code
3-1 ITF 24
3-1-1 ITF Composition 24
3-1-2 ITF Character Composition 25
3-1-3 ITF Features 25
3-1-4 ITF Applications 26
3-1-5 Disadvantages of ITF 26
3-1-6 Other “2 of 5” Codes 27
3-2 Standard Distribution Code 28
3-2-1 What Is Standard Distribution Code? 28
3-2-2 Just-in-time Needs 28
3-2-3 Creation of Standard Distribution Code 29
3-2-4 Composition of
Standard Distribution Code 29
3-2-5 Assigning Distribution Identification Code 30
3-2-6 Standard Size of
Standard Distribution Code 31
3-2-7 Why Is ITF Used? 32
3-2-8 What Is Add-on Version? 32
3-2-9 Bearer Bar 32
Chapter 3 ITF and Standard Distribution Code
3-1 ITF
ITF is the abbreviation for “Interleaved Two of Five”. It is widely used as the standard distribution
code printed on corrugated cardboard boxes.
There are several types called “2 of 5” as shown below. All of them represent one character using
the same composition consisting of 2 wide bars (spaces) out of 5 bars (spaces). Although their
composition is similar, the code is completely different.
• Industrial “2 of 5” ......................... In the past, this code was used in industrial applications. Since
this code assigns information only to bars, not to spaces, the
code size increases. It is not currently used in many areas, except
for distribution management.
• Matrix “2 of 5” .............................. This code is different from the industrial “2 of 5”, because both
bars and spaces have information.
• IATA ............................................. This code is used for the management of air cargo by IATA
(International Air Transport Association).
3
3 5
Character Bar pattern
Start code bars Stop code bars
START
2
3
5
8
8 2
STOP
• The first character is represented by 5 bars and the second one by 5 spaces. Therefore, ITF has always even digits.
(“ITF of 5 digits” unavailable)
• ITF has high-density composition, because both bars and spaces have information.
• No start/stop character is used, but bar patterns representing start and stop are used.
24
Chapter 3 ITF and Standard Distribution Code
• More data can be contained compared with other codes, if the label size is same. (Number of digits can be increased.)
• Wider bar width is possible, if the label size and the number of digits are same.
If the bar width is wider, it is easy for the bar code reader to read. The reading with long distance can also be
performed.
25
Chapter 3 ITF and Standard Distribution Code
• It is used for the standard distribution code to be printed on the corrugated cardboard boxes.
(The details are explained on page 28)
3 3 5
3
8 2
When the laser beam scans in a
slanting direction as shown left,
the bar code is read as “38”.
One Point
When ITF is used, to avoid the skip reading, the bar code reader shall be set to the “digit designation”
function mode where only the specified numbers of digits are read.
26
Chapter 3 ITF and Standard Distribution Code
COOP “2 of 5”
This code is used by co-op organization. That is why it is called COOP “2 of 5”. It is usually printed on the corrugated
cardboard boxes that contain the goods for the delivery to co-op. It is also used for checking the goods. Bar composition
of COOP “2 of 5” is as follows:
START
0
1
2
3
4
5
6
7
8
9
3
STOP
Industrial “2 of 5”
In the past, this code was used in industrial applications. However, it is not currently used in many areas, except for
some distribution applications.
Industrial “2 of 5” has the following bar composition and uses 5 bars representing one character. Since this code
assigns the data only to bars, not to spaces, it has very low data density.
START
0
1
2
3
4
5
6
7
8
9
STOP
27
Chapter 3 ITF and Standard Distribution Code
1 Diversification of packaging
Retailers place orders in various unit quantities like 120 pieces or 10 pieces. Therefore, various package sizes are
developed to meet such requirements as 120 pieces or 10 pieces.
3
120 pieces 10 pieces
28
Chapter 3 ITF and Standard Distribution Code
One Point
It is not necessary to register a new manufacturer code because the EAN manufacturer code can be
used for the standard distribution code.
29
Chapter 3 ITF and Standard Distribution Code
Identification code
Distribution identification code Description
0 Package containing products mixed
1 to 7 Quantity of the same product in the package
8 Reserved
9 Add-on version added
* See page 32 for add-on version.
(Example) If the same products are packaged differently, different distribution identification codes are used.
EAN code
6 pieces packaged
12 pieces packaged
30
Chapter 3 ITF and Standard Distribution Code
0.75"
19 mm or more
1.26" ±0.12"
32 ±3 mm
149
31
Chapter 3 ITF and Standard Distribution Code
The add-on version is the distribution code added after the standard version of the standard distribution code. It is used
for products such as ham and sausages whose prices vary according to the weight of each individual package. The
add-on version consists of five digits representing the measured value and the check digit with 1 digit. If a decimal point
3 is necessary, it shall be placed between the third and fourth digits. Instead of add-on version, “GS1-128” based on
CODE 128 is currently used as a code to represent measured values.
Bearer bar
Bar codes are printed on corrugated cardboard boxes using flexographic printing (the printing method using a resin or
rubber relief press). Since the surface of the corrugated cardboard is not completely flat, the printing pressure of the
flexographic press is not applied evenly. This may cause a distorted bar code. A bearer bar code is used to prevent the
direct printing pressure from being concentrated on the bar code and to keep the printing pressure evenly.
32
Chapter 4
CODE 39 and Codabar
4-1 CODE 39 34
4-1-1 CODE 39 Composition 34
4-1-2 CODE 39 Character Composition 34
4-1-3 CODE 39 Features 35
4-1-4 CODE 39 Applications 35
4-2 Codabar 37
4-2-1 Codabar Composition 37
4-2-2 Codabar Character Composition 37
4-2-3 Codabar Features 38
4-2-4 Codabar Applications 38
Chapter 4 CODE 39 and Codabar
4-1 CODE 39
CODE 39 is the bar code developed by Intermec Corporation in 1975. Total 43 characters
including numbers, alphabets and some symbols can be included in the bar code. Since alphabets
can be handled, CODE 39 is indispensable in the industrial fields and used in FA industries such
as automobiles and electronics. It is standardized by AIAG (Automotive Industry Action Group) in
U.S.A.
Inter-character gap
* 1 A
*
• 9 bars and spaces are used to represent one character. More bars and spaces than other codes provide less
incomplete reading and high reliability.
• 9 bars and spaces are used to represent one character. More bars and spaces than other codes provide the largest
size of bar code.
35
Chapter 4 CODE 39 and Codabar
AIAG label
AIAG (Automotive Industry Action Group) label is the bar code label standardized by its industry for checking
automotive parts receipts in U.S.A. The label is attached to the containers of automotive parts without fail. Every receipt
of the parts is confirmed by reading the label.
TP31520AC82007
PART NO.
(P)
Part code
100
QUANTITY
(Q)
SUPPLIER
(V)
16 2 9 6 8 7 3 4
Supplier code
SERIAL
(S)
5 13 4 4 3 19 9
Serial number
36
Chapter 4 CODE 39 and Codabar
4-2 Codabar
Codabar is the bar code developed by Monarch Marking Systems in 1972. It is the bar code
introduced at early stage following “2 of 5”. It is widely used for applications that require serial
numbers, such as management of blood banks, slips for door-to-door delivery services and
member cards.
4
4-2-2 Codabar Character Composition
Codabar can represent characters including numbers (0 to 9), alphabets (A, B, C, D) and symbols (-, $, /, ., +).
37
Chapter 4 CODE 39 and Codabar
One Point
To avoid skip reading, it is recommended to apply the same way as for ITF, using the “digit designation”
function of the bar code reader where only the specified numbers of digits are read.
4 Sender
Distribution
center office
Distribution
center office
(Osaka)
in Osaka in Tokyo
Collection Delivery Collection Delivery
Blood bank
Codabar is also applied to the test tube for blood test (specimen) in order to confirm the individual ID.
38
Chapter 5
CODE 128 and GS1-128
5-1 CODE 128 40
5-1-1 CODE 128 Composition 40
5-1-2 CODE 128 Features 41
5-1-3 CODE 128 Applications 41
5-1-4 CODE 128 Character Composition 42
5-2 GS1-128 43
5-2-1 What Is GS1-128? 43
5-2-2 Background of GS1-128 Establishment 44
5-2-3 GS1-128 Composition 44
5-2-4 Application Identifier 46
5-2-5 GS1-128 Applications 50
Chapter 5 CODE 128 and GS1-128
STOP
FNC1
94
90
34
56
78
94
31
00
03
55
90
12
01
01
• A start character has three types; “CODE-A”, “CODE-B” and “CODE-C”. The type of start character determines the
character composition of subsequent characters. (See the table of character composition on page 42. For example,
when CODE A is used as a start character, the characters in the CODE-A column can be represented.)
CODE A
STOP
FNC1
30
22
17
10
D
1
5
• When CODE-C is used, 2-digits numbers can be represented by one type of bar pattern. This allows the very high
data density.
• When code set characters (CODE-A, CODE-B and CODE-C) are used, the bar code started with the start character of
CODE-A can be changed to use the characters in the CODE-B or CODE-C column in the middle of bar code
processing.
• When “SHIFT” is used, only one character next to the SHIFT can be changed to the character in the next column (A to
B, B to C, C to A). (Similar to the SHIFT key operation of on the computer keyboard)
• When CODE-C is used as the start character, one bar pattern can represent 2-digits numbers. This allows very
efficient bar code composition. If the bar code data has 12 or more digits, CODE 128 provides smaller size than ITF.
• Since CODE 128 uses 4 types of bar size, printers with high print quality are required. CODE 128 is not suitable for
printing with dot matrix printers and FA ink-jet printers and for flexographic printing on corrugated cardboards.
41
Chapter 5 CODE 128 and GS1-128
42
Chapter 5 CODE 128 and GS1-128
5-2 GS1-128
5-2-1 What Is GS1-128?
GS1-128 is the bar code that provides various data including distribution and business transaction data in addition to
the data provided by the JAN code and the standard distribution code (ITF) currently available.
The necessary data are used to form the bar code label for the various applications.
For example, On-line purchasing/ordering using EDI (the system for exchanging electronic data between companies),
management of open date for the foods, management of drugs validity, simplifying the works for checking incoming
products, assorting the packages for every destination, etc. (The following label is a sample of the foods manufacturer.)
0733
BONELESS DANISH HAM
Net Weight: 14.123 kgs
Validity of quality
(August 27, 1999)
5
(3103)14123 (10)5097 (21)090023
Lot number
43
Chapter 5 CODE 128 and GS1-128
• In order to separate the required data such as weight and open data, the “application identifier (AI)” is added which is
followed by the data. If more than one data are represented, each data shall be linked.
Although application identifiers are parenthesized, the parentheses are not included in the
bar code data. They are used just for presentation.
5 In the sample above, following the application identifier “01”, 14-digits code is assigned to identify the delivery container
(minimum package unit for corrugated cardboard boxes). Following the application identifier “15”, the data representing
the validity of quality (consumption validity or drug validity) is given to show August 27, ’95. Following the last application
identifier “30”, the data representing the delivery quantity is given to show 3 pieces.
There are about 100 application identifiers except the above. The required data are selected and included in the bar
codes by users.
GS1-128 is not intended to represent the fixed data, but the data selectable for users. Therefore, for common use with
GS1-128 among the companies, the standards for the bar code system with the data available shall be prepared by the
respective industry and the groups of companies involved.
44
Chapter 5 CODE 128 and GS1-128
• In order to distinguish GS1-128 from CODE 128, it is required to give [FNC 1](function 1) following the start code
(CODE-A to C).
• Even if the number of digits for the data following the application identifier is a variable-length, [FNC 1] is given to
separate the data.
• With GS1-128 being added to EAN code and the standard distribution code (ITF), it can be used as the code to add
more data.
EAN 128 is designed to represent the application identifiers and the products relative data or the transaction data of the
companies using CODE 128.
In other words, GS1-128 is the standards for the applications to represent the various data. CODE 128 is the standards
just for the bar code itself. Difference between GS1-128 and CODE 128 is whether it represents the application or not.
Since GS1-128 uses the bar code composition of CODE 128, any bar cord reader that can read CODE 128 can be
used to read the GS1-128 data.
45
Chapter 5 CODE 128 and GS1-128
•C
arton numbers are indicated on the corrugated cardboard box
that contain the mixed products.
•C
arton numbers are indicated on all corrugated cardboard boxes
Package style 00 “Standard carton ID”
that are piled up on pallets.
•F
or use of ASN (Advanced Shipment Notice) with indication on
SCM label (See page 50)
Products
roducts dates (manufacturing date, packaged date and warranty
•P
management 11 to 17
period) are indicated.
46
Chapter 5 CODE 128 and GS1-128
“00” is the identifier that gives the package serial number to every corrugated cardboard box and pallet for delivery.
Therefore, the different number is given for every delivery.
The data has 18 digits with the following composition:
Package type 1 digit
Universal company code 7 digits
Package serial number for every delivery 9 digits
Check digit (modulus 10/3 weight) 1 digit
Package type
0 Case or carton
1 Pallet (larger than case and carton)
2 Container (larger than pallet)
3 Any package type other than above
4 According to internal requirements (for internal use)
5 According to mutual requirements among the companies concerned
6 to 9 No use allowed
“Universal company code” is indicated by “country code” + “manufacturer code” for the companies who registered JAN.
For the companies who did not register JAN, it is required to obtain the universal business account code.
“Standard carton ID” is called SSCC-18 (Serial Shipping Container Code) in Europe and America.
FROM SHIP TO
ABC
CORPORATION
ABC
STORE
00 0 49 12345 666666666 8
47
Chapter 5 CODE 128 and GS1-128
The same composition of the standard distribution code (ITF) is generally applied to “01”. It consists of the EAN code of
the packaged product and the package indicator that indicates the product quantity.
Package indicator 1 digit
EAN code 12 digits
Check digit (Modulus 10/3 weight) 1 digit
Package indicator
0 Corrugated cardboard boxes that contain the mixed products
Corrugated cardboard box for one-item that contains the same quantity
1 to 8
Setting within the range of 1 to 8. In many cases, 1 is set.
9 The corrugated cardboard box that contains the different quantity for one-item
Since “delivery container code” has the same data composition as for the EAN code and the standard distribution code,
it can be used only on the condition that EAN and standard distribution codes are not printed on corrugated cardboard
boxes.
“Delivery container code” is called SCC-14 (Shipping Container Code) in Europe and America.
12 0 3 0
ABC Corn
Validity for sale Batch number
98/08/30 456 12
5 0 1 1 9 3 12 4 8 4 12 0 3 0 2 17 9 8 0 3 8 0 10 12
Identifier Delivery container code Identifier Validity for sale Identifier Batch number
(01 is the delivery (17 represents the (August 30, ’98) (10 is the batch number.)
container code.) validity for sale.)
48
Chapter 5 CODE 128 and GS1-128
“10” is the application identifier to indicate the batch number and the lot number of the product. 20 alphanumeric
characters (variable-length) or less are available.
These are the application identifiers to indicate the administration data such as “order number” of customers and
“customer’s account code”.
49
Chapter 5 CODE 128 and GS1-128
Retailers Suppliers
Order placement data
Order placement data Order receipt
Reading JAN
Reading SCM
ASN
Scheduled arrival of goods Preparing ASN data
Delivery
Reading SCM
Receipt data
Receipt confirmation Counting sales
50
Chapter 5 CODE 128 and GS1-128
1 The retailer makes an order to the supplier over EDI (the system for exchanging electronic data between
companies).
2 The supplier who received the order performs products assortment and bar code checking (JAN code).
3 After the products assortment and packaging, SCM label is attached for delivery.
4 Then, the detailed data of the delivered goods (ASN = Advance delivered goods detailed data exchange) and the
contents of SCM label are sent to the retailer over EDI.
5 The retailer performs the bar code checking with SCM label and verify the detailed data of 4 .
6 The retailer sends the data of receipt to the supplier over EDI. The supplier counts the sales accordingly.
7 The retailer makes the products assortment by using SCM label and deliveries to each store.
Foods industry
For foods such as meats, fruits and vegetables, “validity of quality” and “batch number” are indicated with GS1-128
being used, in order to manage the date and freshness and to reduce the distribution cost.
8025
ABC Franks
10X500 Grams Packs
Expiry date of quality validity 27AUG95
51
Chapter 5 CODE 128 and GS1-128
10 0
2 50
(01)04912345678904
(01)14912345678901(15)990101(30)12(10)ABC123
5 (01)24912345678908(15)990101(30)24(10)ABC1233
The sample shows the indication of the product that has the drug validity
of January 1, 1999 and is packed by 24 pieces with the lot number of
ABC 123.
(01)=identifier of delivery container code (15)=identifier of drug validity
2=package indicator 990101=(January 1, ’99)
49=country code of Japan (30)=quantity identifier
12345=manufacturer code 24= (24 pieces in package)
67890=product item code (10)=lot number identifier
8=check digit
52
Appendices
Appendix 1
Bar Code Length List 54
CODE 39 54
Codabar 55
ITF 56
CODE 128 (CODE-A, B) 57
CODE 128 (CODE-C) 58
Appendix 2
Check Digit Calculation 59
Modulus 43 (CODE 39) 59
Modulus 10/weight 3 (EAN, ITF, Codabar) 60
Modulus 16 (Codabar) 61
Modulus 11 (Codabar) 62
Modulus 10/weight 2 (Codabar) 63
7 check DR (Codabar) 64
Weighted Modulus 11 (Codabar) 65
Runes (Modulus 10/weight 2) (Codabar) 67
Modulus 103 (CODE 128) 68
Appendix 1 Bar Code Length List
Appendix 1
Bar Code Length List
CODE 39
Bar code length is calculated in the following conditions:
1 5.3 0.21" 6.4 0.25" 8.1 0.32" 10.6 0.42" 12.8 0.50" 17.0 0.67" 21.3 0.84" 31.9 1.26" 42.5 1.67"
2 7.1 0.28" 8.6 0.34" 10.8 0.43" 14.3 0.56" 17.1 0.67" 22.8 0.90" 28.5 1.12" 42.8 1.69" 57.0 2.24"
3 8.9 0.35" 10.7 0.42" 13.6 0.54" 17.9 0.70" 21.5 0.85" 28.6 1.13" 35.8 1.41" 53.6 2.11" 71.5 2.81"
4 10.8 0.43" 12.9 0.51" 16.3 0.64" 21.5 0.85" 25.8 1.02" 34.4 1.35" 43.0 1.69" 64.5 2.54" 86.0 3.39"
5 12.6 0.50" 15.1 0.59" 19.1 0.75" 25.1 0.99" 30.2 1.19" 40.2 1.58" 50.3 1.98" 75.4 2.97" 100.5 3.96"
6 14.4 0.57" 17.3 0.68" 21.9 0.86" 28.8 1.13" 34.5 1.36" 46.0 1.81" 57.5 2.26" 86.3 3.40" 115.0 4.53"
7 16.2 0.64" 19.4 0.76" 24.6 0.97" 32.4 1.28" 38.9 1.53" 51.8 2.04" 64.8 2.55" 97.1 3.82" 129.5 5.10"
8 18.0 0.71" 21.6 0.85" 27.4 1.08" 36.0 1.42" 43.2 1.70" 57.6 2.27" 72.0 2.83" 108.0 4.25" 144.0 5.67"
9 19.8 0.78" 23.8 0.94" 30.1 1.19" 39.6 1.56" 47.6 1.87" 63.4 2.50" 79.3 3.12" 118.9 4.68" 158.5 6.24"
10 21.6 0.85" 26.0 1.02" 32.9 1.30" 43.3 1.70" 51.9 2.04" 69.2 2.72" 86.5 3.41" 129.8 5.11" 173.0 6.81"
11 23.4 0.92" 28.1 1.11" 35.6 1.40" 46.9 1.85" 56.3 2.22" 75.0 2.95" 93.8 3.69" 140.6 5.54" 187.5 7.38"
12 25.3 1.00" 30.3 1.19" 38.4 1.51" 50.5 1.99" 60.6 2.39" 80.8 3.18" 101.0 3.98" 151.5 5.96" 202.0 7.95"
13 27.1 1.07" 32.5 1.28" 41.1 1.62" 54.1 2.13" 65.0 2.56" 86.6 3.41" 108.3 4.26" 162.4 6.39" 216.5 8.52"
14 28.9 1.14" 34.7 1.37" 43.9 1.73" 57.8 2.28" 69.3 2.73" 92.4 3.64" 115.5 4.55" 173.3 6.82" 231.0 9.09"
15 30.7 1.21" 36.8 1.45" 46.6 1.83" 61.4 2.42" 73.7 2.90" 98.2 3.87" 122.8 4.83" 184.1 7.25" 245.5 9.67"
16 32.5 1.28" 39.0 1.54" 49.4 1.94" 65.0 2.56" 78.0 3.07" 104.0 4.09" 130.0 5.12" 195.0 7.68" 260.0 10.24"
17 34.3 1.35" 41.2 1.62" 52.2 2.06" 68.6 2.70" 82.4 3.24" 109.8 4.32" 137.3 5.41" 205.9 8.11" 274.5 10.81"
18 36.1 1.42" 43.4 1.71" 54.9 2.16" 72.3 2.85" 86.7 3.41" 115.6 4.55" 144.5 5.69" 216.8 8.54" 289.0 11.38"
19 37.9 1.49" 45.5 1.79" 57.7 2.27" 75.9 2.99" 91.1 3.59" 121.4 4.78" 151.8 5.98" 227.6 8.96" 303.5 11.95"
20 39.8 1.57" 47.7 1.88" 60.4 2.38" 79.5 3.13" 95.4 3.76" 127.2 5.01" 159.0 6.26" 238.5 9.39" 318.0 12.52"
21 41.6 1.64" 49.9 1.96" 63.2 2.49" 83.1 3.27" 99.8 3.93" 133.0 5.24" 166.3 6.55" 249.4 9.82" 332.5 13.09"
22 43.4 1.71" 52.1 2.05" 65.9 2.59" 86.8 3.42" 104.1 4.10" 138.8 5.46" 173.5 6.83" 260.3 10.25" 347.0 13.66"
23 45.2 1.78" 54.2 2.13" 68.7 2.70" 90.4 3.56" 108.5 4.27" 144.6 5.69" 180.8 7.12" 271.1 10.67" 361.5 14.23"
24 47.0 1.85" 56.4 2.22" 71.4 2.81" 94.0 3.70" 112.8 4.44" 150.4 5.92" 188.0 7.40" 282.0 11.10" 376.0 14.80"
25 48.8 1.92" 58.6 2.31" 74.2 2.92" 97.6 3.84" 117.2 4.61" 156.2 6.15" 195.3 7.69" 292.9 11.53" 390.5 15.37"
Unit: mm inch
54
Appendix 1 Bar Code Length List
Codabar
Bar code length is calculated in the following conditions:
1 4.4 0.17" 5.3 0.21" 6.7 0.26" 8.8 0.35" 10.5 0.41" 14.0 0.55" 17.5 0.69" 26.3 1.04" 35.0 1.38"
2 5.8 0.23" 6.9 0.27" 8.7 0.34" 11.5 0.45" 13.8 0.54" 18.4 0.72" 23.0 0.91" 34.5 1.36" 46.0 1.81"
3 7.1 0.28" 8.6 0.34" 10.8 0.43" 14.3 0.56" 17.1 0.67" 22.8 0.90" 28.5 1.12" 42.8 1.69" 57.0 2.24"
4 8.5 0.33" 10.2 0.40" 12.9 0.51" 17.0 0.67" 20.4 0.80" 27.2 1.07" 34.0 1.34" 51.0 2.01" 68.0 2.68"
5 9.9 0.39" 11.9 0.47" 15.0 0.59" 19.8 0.78" 23.7 0.93" 31.6 1.24" 39.5 1.56" 59.3 2.33" 79.0 3.11"
6 11.3 0.44" 13.5 0.53" 17.1 0.67" 22.5 0.89" 27.0 1.06" 36.0 1.42" 45.0 1.77" 67.5 2.66" 90.0 3.54"
7 12.6 0.50" 15.2 0.60" 19.2 0.76" 25.3 1.00" 30.3 1.19" 40.4 1.59" 50.5 1.99" 75.8 2.98" 101.0 3.98"
8 14.0 0.55" 16.8 0.66" 21.3 0.84" 28.0 1.10" 33.6 1.32" 44.8 1.76" 56.0 2.20" 84.0 3.31" 112.0 4.41"
9 15.4 0.61" 18.5 0.73" 23.4 0.92" 30.8 1.21" 36.9 1.45" 49.2 1.94" 61.5 2.42" 92.3 3.63" 123.0 4.84"
10 16.8 0.66" 20.1 0.79" 25.5 1.00" 33.5 1.32" 40.2 1.58" 53.6 2.11" 67.0 2.64" 100.5 3.96" 134.0 5.28"
11 18.1 0.71" 21.8 0.86" 27.6 1.09" 36.3 1.43" 43.5 1.71" 58.0 2.28" 72.5 2.85" 108.8 4.28" 145.0 5.71"
12 19.5 0.77" 23.4 0.92" 29.6 1.17" 39.0 1.54" 46.8 1.84" 62.4 2.46" 78.0 3.07" 117.0 4.61" 156.0 6.14"
13 20.9 0.82" 25.1 0.99" 31.7 1.25" 41.8 1.65" 50.1 1.97" 66.8 2.63" 83.5 3.29" 125.3 4.93" 167.0 6.57"
14 22.3 0.88" 26.7 1.05" 33.8 1.33" 44.5 1.75" 53.4 2.10" 71.2 2.80" 89.0 3.50" 133.5 5.26" 178.0 7.01"
15 23.6 0.93" 28.4 1.12" 35.9 1.41" 47.3 1.86" 56.7 2.23" 75.6 2.98" 94.5 3.72" 141.8 5.58" 189.0 7.44"
16 25.0 0.98" 30.0 1.18" 38.0 1.50" 50.0 1.97" 60.0 2.36" 80.0 3.15" 100.0 3.94" 150.0 5.91" 200.0 7.87"
17 26.4 1.04" 31.7 1.25" 40.1 1.58" 52.8 2.08" 63.3 2.49" 84.4 3.32" 105.5 4.15" 158.3 6.23" 211.0 8.31"
18 27.8 1.09" 33.3 1.31" 42.2 1.66" 55.5 2.19" 66.6 2.62" 88.8 3.50" 110.0 4.33" 166.5 6.56" 222.0 8.74"
19 29.1 1.15" 35.0 1.38" 44.3 1.74" 58.3 2.30" 69.9 2.75" 93.2 3.67" 116.5 4.59" 174.8 6.88" 233.0 9.17"
20 30.5 1.20" 36.6 1.44" 46.4 1.83" 61.0 2.40" 73.2 2.88" 97.6 3.84" 122.0 4.80" 183.0 7.20" 244.0 9.61"
21 31.9 1.26" 38.3 1.51" 48.5 1.91" 63.8 2.51" 76.5 3.01" 102.0 4.02" 127.5 5.02" 191.3 7.53" 255.0 10.04"
22 33.3 1.31" 39.9 1.57" 50.5 1.99" 66.5 2.62" 79.8 3.14" 106.4 4.19" 133.0 5.24" 199.5 7.85" 266.0 10.47"
23 34.6 1.36" 41.6 1.64" 52.6 2.07" 69.3 2.73" 83.1 3.27" 110.8 4.36" 138.5 5.45" 207.8 8.18" 277.0 10.91"
24 36.0 1.42" 43.2 1.70" 54.7 2.15" 72.0 2.83" 86.4 3.40" 115.2 4.54" 144.0 5.67" 216.0 8.50" 288.0 11.34"
25 37.4 1.47" 44.9 1.77" 56.8 2.24" 74.8 2.94" 89.7 3.53" 119.6 4.71" 149.5 5.89" 224.3 8.83" 299.0 11.77"
Unit: mm inch
55
Appendix 1 Bar Code Length List
ITF
Bar code length is calculated in the following conditions:
4 5.1 0.20" 6.1 0.24" 7.7 0.30" 10.1 0.40" 12.2 0.48" 16.2 0.64" 20.3 0.80" 30.4 1.20" 40.5 1.59"
6 7.1 0.28" 8.5 0.33" 10.7 0.42" 14.1 0.56" 17.0 0.67" 22.6 0.89" 28.3 1.11" 42.4 1.67" 56.5 2.22"
8 9.1 0.36" 10.9 0.43" 13.8 0.54" 18.1 0.71" 21.8 0.86" 29.0 1.14" 36.3 1.43" 54.4 2.14" 72.5 2.85"
10 11.1 0.44" 13.3 0.52" 16.8 0.66" 22.1 0.87" 26.6 1.05" 35.4 1.39" 44.3 1.74" 66.4 2.61" 88.5 3.48"
12 13.1 0.52" 15.7 0.62" 19.9 0.78" 26.1 1.03" 31.4 1.24" 41.8 1.65" 52.3 2.06" 78.4 3.09" 104.5 4.11"
14 15.1 0.59" 18.1 0.71" 22.9 0.90" 30.1 1.19" 36.2 1.43" 48.2 1.90" 60.3 2.37" 90.4 3.56" 120.5 4.74"
16 17.1 0.67" 20.5 0.81" 25.9 1.02" 34.1 1.34" 41.0 1.61" 54.6 2.15" 68.3 2.69" 102.4 4.03" 136.5 5.37"
18 19.1 0.75" 22.9 0.90" 29.0 1.14" 38.1 1.50" 45.8 1.80" 61.0 2.40" 76.3 3.00" 114.4 4.50" 152.5 6.00"
20 21.1 0.83" 25.3 1.00" 32.0 1.26" 42.1 1.66" 50.6 1.99" 67.4 2.65" 84.3 3.32" 126.4 4.98" 168.5 6.63"
22 23.1 0.91" 27.7 1.09" 35.1 1.38" 46.1 1.81" 55.4 2.18" 73.8 2.91" 92.3 3.63" 138.4 5.45" 184.5 7.26"
24 25.1 0.99" 30.1 1.19" 38.1 1.50" 50.1 1.97" 60.2 2.37" 80.2 3.16" 100.3 3.95" 150.4 5.92" 200.5 7.89"
26 27.1 1.07" 32.5 1.28" 41.1 1.62" 54.1 2.13" 65.0 2.56" 86.6 3.41" 108.3 4.26" 162.4 6.39" 216.5 8.52"
28 29.1 1.15" 34.9 1.37" 44.2 1.74" 58.1 2.29" 69.8 2.75" 93.0 3.66" 116.3 4.58" 174.4 6.87" 232.5 9.15"
30 31.1 1.22" 37.3 1.47" 47.2 1.86" 62.1 2.44" 74.6 2.94" 99.4 3.91" 124.3 4.89" 186.4 7.34" 248.5 9.78"
Unit: mm inch
56
Appendix 1 Bar Code Length List
* The following example is for bar codes whose start character is CODE-A or B.
Narrow
width 0.125 mm 0.15 mm 0.19 mm 0.25 mm 0.3 mm 0.4 mm 0.5 mm 0.75 mm 1.0 mm
Digits 0.005" 0.006" 0.007" 0.010" 0.012" 0.016" 0.020" 0.030" 0.039"
1 5.8 0.23" 6.9 0.27" 8.7 0.34" 11.5 0.45" 13.8 0.54" 18.4 0.72" 23.0 0.91" 34.5 1.36" 46.0 1.81"
2 7.1 0.28" 8.6 0.34" 10.8 0.43" 14.3 0.56" 17.1 0.67" 22.8 0.90" 28.5 1.12" 42.8 1.69" 57.0 2.24"
3 8.5 0.33" 10.2 0.40" 12.9 0.51" 17.0 0.67" 20.4 0.80" 27.2 1.07" 34.0 1.34" 51.0 2.01" 68.0 2.68"
4 9.9 0.39" 11.9 0.47" 15.0 0.59" 19.8 0.78" 23.7 0.93" 31.6 1.24" 39.5 1.56" 59.3 2.33" 79.0 3.11"
5 11.3 0.44" 13.5 0.53" 17.1 0.67" 22.5 0.89" 27.0 1.06" 36.0 1.42" 45.0 1.77" 67.5 2.66" 90.0 3.54"
6 12.6 0.50" 15.2 0.60" 19.2 0.76" 25.3 1.00" 30.3 1.19" 40.4 1.59" 50.5 1.99" 75.8 2.98" 101.0 3.98"
7 14.0 0.55" 16.8 0.66" 21.3 0.84" 28.0 1.10" 33.6 1.32" 44.8 1.76" 56.0 2.20" 84.0 3.31" 112.0 4.41"
8 15.4 0.61" 18.5 0.73" 23.4 0.92" 30.8 1.21" 36.9 1.45" 49.2 1.94" 61.5 2.42" 92.3 3.63" 123.0 4.84"
9 16.8 0.66" 20.1 0.79" 25.5 1.00" 33.5 1.32" 40.2 1.58" 53.6 2.11" 67.0 2.64" 100.5 3.96" 134.0 5.28"
10 18.1 0.71" 21.8 0.86" 27.6 1.09" 36.3 1.43" 43.5 1.71" 58.0 2.28" 72.5 2.85" 108.8 4.28" 145.0 5.71"
11 19.5 0.77" 23.4 0.92" 29.6 1.17" 39.0 1.54" 46.8 1.84" 62.4 2.46" 78.0 3.07" 117.0 4.61" 156.0 6.14"
12 20.9 0.82" 25.1 0.99" 31.7 1.25" 41.8 1.65" 50.1 1.97" 66.8 2.63" 83.5 3.29" 125.3 4.93" 167.0 6.57"
13 22.3 0.88" 26.7 1.05" 33.8 1.33" 44.5 1.75" 53.4 2.10" 71.2 2.80" 89.0 3.50" 133.5 5.26" 178.0 7.01"
14 23.6 0.93" 28.4 1.12" 35.9 1.41" 47.3 1.86" 56.7 2.23" 75.6 2.98" 94.5 3.72" 141.8 5.58" 189.0 7.44"
15 25.0 0.98" 30.0 1.18" 38.0 1.50" 50.0 1.97" 60.0 2.36" 80.0 3.15" 100.0 3.94" 150.0 5.91" 200.0 7.87"
16 26.4 1.04" 31.7 1.25" 40.1 1.58" 52.8 2.08" 63.3 2.49" 84.4 3.32" 105.5 4.15" 158.3 6.23" 211.0 8.31"
17 27.8 1.09" 33.3 1.31" 42.2 1.66" 55.5 2.19" 66.6 2.62" 88.8 3.50" 111.0 4.37" 166.5 6.56" 222.0 8.74"
18 29.1 1.15" 35.0 1.38" 44.3 1.74" 58.3 2.30" 69.9 2.75" 93.2 3.67" 116.5 4.59" 174.8 6.88" 233.0 9.17"
19 30.5 1.20" 36.6 1.44" 46.4 1.83" 61.0 2.40" 73.2 2.88" 97.6 3.84" 122.0 4.80" 183.0 7.20" 244.0 9.61"
20 31.9 1.26" 38.3 1.51" 48.5 1.91" 63.8 2.51" 76.5 3.01" 102.0 4.02" 127.5 5.02" 191.3 7.53" 255.0 10.04"
21 33.3 1.31" 39.9 1.57" 50.5 1.99" 66.5 2.62" 79.8 3.14" 106.4 4.19" 133.0 5.24" 199.5 7.85" 266.0 10.47"
22 34.6 1.36" 41.6 1.64" 52.6 2.07" 69.3 2.73" 83.1 3.27" 110.8 4.36" 138.5 5.45" 207.8 8.18" 277.0 10.91"
23 36.0 1.42" 43.2 1.70" 54.7 2.15" 72.0 2.83" 86.4 3.40" 115.2 4.54" 144.0 5.67" 216.0 8.50" 288.0 11.34"
24 37.4 1.47" 44.9 1.77" 56.8 2.24" 74.8 2.94" 89.7 3.53" 119.6 4.71" 149.5 5.89" 224.3 8.83" 299.0 11.77"
25 38.8 1.53" 46.5 1.83" 58.9 2.32" 77.5 3.05" 93.0 3.66" 124.0 4.88" 155.0 6.10" 232.5 9.15" 310.0 12.20"
Unit: mm inch
57
Appendix 1 Bar Code Length List
* The following example is for bar codes whose start character is CODE-C.
Narrow
width 0.125 mm 0.15 mm 0.19 mm 0.25 mm 0.3 mm 0.4 mm 0.5 mm 0.75 mm 1.0 mm
Digits 0.005" 0.006" 0.007" 0.010" 0.012" 0.016" 0.020" 0.030" 0.039"
2 5.8 0.23" 6.9 0.27" 8.7 0.34" 11.5 0.45" 13.8 0.54" 18.4 0.72" 23.0 0.91" 34.5 1.36" 46.0 1.81"
4 7.1 0.28" 8.6 0.34" 10.8 0.43" 14.3 0.56" 17.1 0.67" 22.8 0.90" 28.5 1.12" 42.8 1.69" 57.0 2.24"
6 8.5 0.33" 10.2 0.40" 12.9 0.51" 17.0 0.67" 20.4 0.80" 27.2 1.07" 34.0 1.34" 51.0 2.01" 68.0 2.68"
8 9.9 0.39" 11.9 0.47" 15.0 0.59" 19.8 0.78" 23.7 0.93" 31.6 1.24" 39.5 1.56" 59.3 2.33" 79.0 3.11"
10 11.3 0.44" 13.5 0.53" 17.1 0.67" 22.5 0.89" 27.0 1.06" 36.0 1.42" 45.0 1.77" 67.5 2.66" 90.0 3.54"
12 12.6 0.50" 15.2 0.60" 19.2 0.76" 25.3 1.00" 30.3 1.19" 40.4 1.59" 50.5 1.99" 75.8 2.98" 101.0 3.98"
14 14.0 0.55" 16.8 0.66" 21.3 0.84" 28.0 1.10" 33.6 1.32" 44.8 1.76" 56.0 2.20" 84.0 3.31" 112.0 4.41"
16 15.4 0.61" 18.5 0.73" 23.4 0.92" 30.8 1.21" 36.9 1.45" 49.2 1.94" 61.5 2.42" 92.3 3.63" 123.0 4.84"
18 16.8 0.66" 20.1 0.79" 25.5 1.00" 33.5 1.32" 40.2 1.58" 53.6 2.11" 67.0 2.64" 100.5 3.96" 134.0 5.28"
20 18.1 0.71" 21.8 0.86" 27.6 1.09" 36.3 1.43" 43.5 1.71" 58.0 2.28" 72.5 2.85" 108.8 4.28" 145.0 5.71"
22 19.5 0.77" 23.4 0.92" 29.6 1.17" 39.0 1.54" 46.8 1.84" 62.4 2.46" 78.0 3.07" 117.0 4.61" 156.0 6.14"
24 20.9 0.82" 25.1 0.99" 31.7 1.25" 41.8 1.65" 50.1 1.97" 66.8 2.63" 83.5 3.29" 125.3 4.93" 167.0 6.57"
26 22.3 0.88" 26.7 1.05" 33.8 1.33" 44.5 1.75" 53.4 2.10" 71.2 2.80" 89.0 3.50" 133.5 5.26" 178.0 7.01"
28 23.6 0.93" 28.4 1.12" 35.9 1.41" 47.3 1.86" 56.7 2.23" 75.6 2.98" 94.5 3.72" 141.8 5.58" 189.0 7.44"
30 25.0 0.98" 30.0 1.18" 38.0 1.50" 50.0 1.97" 60.0 2.36" 80.0 3.15" 100.0 3.94" 150.0 5.91" 200.0 7.87"
32 26.4 1.04" 31.7 1.25" 40.1 1.58" 52.8 2.08" 63.3 2.49" 84.4 3.32" 105.5 4.15" 158.3 6.23" 211.0 8.31"
34 27.8 1.09" 33.3 1.31" 42.2 1.66" 55.5 2.19" 66.6 2.62" 88.8 3.50" 111.0 4.37" 166.5 6.56" 222.0 8.74"
36 29.1 1.15" 35.0 1.38" 44.3 1.74" 58.3 2.30" 69.9 2.75" 93.2 3.67" 116.5 4.59" 174.8 6.88" 233.0 9.17"
38 30.5 1.20" 36.6 1.44" 46.4 1.83" 61.0 2.40" 73.2 2.88" 97.6 3.84" 122.0 4.80" 183.0 7.20" 244.0 9.61"
40 31.9 1.26" 38.3 1.51" 48.5 1.91" 63.8 2.51" 76.5 3.01" 102.0 4.02" 127.5 5.02" 191.3 7.53" 255.0 10.04"
42 33.3 1.31" 39.9 1.57" 50.5 1.99" 66.5 2.62" 79.8 3.14" 106.4 4.19" 133.0 5.24" 199.5 7.85" 266.0 10.47"
44 34.6 1.36" 41.6 1.64" 52.6 2.07" 69.3 2.73" 83.1 3.27" 110.8 4.36" 138.5 5.45" 207.8 8.18" 277.0 10.91"
46 36.0 1.42" 43.2 1.70" 54.7 2.15" 72.0 2.83" 86.4 3.40" 115.2 4.54" 144.0 5.67" 216.0 8.50" 288.0 11.34"
48 37.4 1.47" 44.9 1.77" 56.8 2.24" 74.8 2.94" 89.7 3.53" 119.6 4.71" 149.5 5.89" 224.3 8.83" 299.0 11.77"
50 38.8 1.53" 46.5 1.83" 58.9 2.32" 77.5 3.05" 93.0 3.66" 124.0 4.88" 155.0 6.10" 232.5 9.15" 310.0 12.20"
Unit: mm inch
58
Appendix 2 Check Digit Calculation
Appendix 2
Check Digit Calculation
Modulus 43 (CODE 39)
Modulus 43 is used to calculate the check digit for CODE 39.
This section explains the rules and calculation method for using Modulus 43.
Rules
The check digit is placed next to the last character of the bar code data (immediately before the stop
character).
Calculation method
1. Exchange all bar code data, except for the start and stop characters, with numbers according to
the following exchange table.
4. Exchange the remainder according to the exchange table. This character is the check digit.
Example
To create a bar code for the data “*ABCD1234+ *”
Data A B C D 1 2 3 4 +
59
Appendix 2 Check Digit Calculation
This section explains the rules for using Modulus 10/weight 3 and the calculation method.
Rules
• All of the bar code data should be numbers from 0 to 9, except for the start and stop characters of
Codabar.
• The check digit is placed next to the last character of the bar code data. In the case of Codabar, it
is placed next to the last character, immediately before the stop character.
Calculation method
1. Assign a serial number to each bar code data, except for the start and stop characters and check
digit, beginning from the rightmost digit and moving to the left.
2. Multiply the bar code data on the digit assigned odd number by 3, and do nothing to the bar code
data on the digit assigned even number. Calculate the total of these numbers.
4. When the remainder is 0, the check digit is 0. When the remainder is a number other than 0, the
check digit is the value obtained by subtracting the remainder from 10.
Example:
To create a bar code for the data “490123456789 ”
Number 12 11 10 9 8 7 6 5 4 3 2 1
126 ÷ 10 = 12 Remainder is 6.
10 – 6 = 4 Check digit
60
Appendix 2 Check Digit Calculation
Modulus 16 (Codabar)
Modulus 16 is used to calculate the check digit for Codabar
This section explains the rules and calculation method for using Modulus 16.
Rules
• The check digit is placed next to the last character of the bar code data (immediately before the
stop character).
Calculation method
1. Exchange all bar code data, including the start and stop characters, with numbers according to
the following exchange table.
Example:
To create a bar code for the data “ A19+1243 B”
Data A 1 9 + 1 2 4 3 B
61
Appendix 2 Check Digit Calculation
Modulus 11 (Codabar)
Modulus 11 is used to calculate the check digit for Codabar.
This section explains the rules and calculation method for using Modulus 11.
Rules
• The check digit is placed next to the last character of the bar code data (immediately before the
stop character).
• All of the bar code data should be numbers from 0 to 9, except for the start and stop characters.
• The first 6 digits of the bar code data are used to calculate Modulus 11. Therefore, the bar code
data should have 6 digits or more not including the start and stop characters. If the bar code data
has more than 6 digits, only the first 6 digits are used for the calculation, and the remaining digits
are ignored.
• The check digit is placed next to the last character of the bar code data (immediately before the
stop character).
Calculation method
1. Extract the first 6 digits of the bar code data, not including the start and stop characters.
2. Multiply the extracted 6 numbers by the weight coefficient 7, 6, 5, 4, 3, and 2 in serial order from
the top. Find the total of these numbers.
4. When the remainder is 0, the check digit is 1. When the remainder is 1, the check digit is 0.
When the remainder is a number other than 0 or 1, subtract the remainder from 11.
This number is the check digit.
Example:
To create a bar code for the data “ A2431245 B”
Data 2 4 3 1 2 4
X X X X X X
Weight 7 6 5 4 3 2
14 +24 +15 +4 +6 +8 = 71
71 ÷ 11 = 6 Remainder is 5.
11 – 5 = 6 ··· Check digit
62
Appendix 2 Check Digit Calculation
This section explains the rules and calculation method for using Modulus 10/weight 2.
Rules
• All of the bar code data should be numbers from 0 to 9, except for the start and stop characters.
• The check digit is placed next to the last character of the bar code data (immediately before the
stop character).
Calculation method
1. Assign a number to each bar code data beginning from the rightmost digit and moving to the left,
not including the start and stop characters and check digit.
2. Multiply the bar code data on the digit assigned odd number by 2, and do nothing to the bar code
data on the digit assigned even number. Calculate the total of these numbers.
4. When the remainder is 0, the check digit is 0. When the remainder is a number other than 0, the
check digit is the value obtained by subtracting the remainder from 10.
Example:
To create a bar code for the data “ A938745343 B” ( should be a check digit.)
Number 9 8 7 6 5 4 3 2 1
18 +3 +16 +7 +8 +5 +6 +4 +6 = 73
73 ÷ 10 = 7 Remainder is 3.
10 – 3 = 7 ··· Check digit
63
Appendix 2 Check Digit Calculation
7 check DR (Codabar)
7 check DR is used to calculate the check digit for Codabar.
This section explains the rules and calculation method for using 7 check DR.
Rules
• All of the bar code data should be numbers from 0 to 9, except for the start and stop characters.
• The check digit is placed next to the last character of the bar code data (immediately before the
stop character).
Calculation method
1. Divide the bar code data by 7, not including the start and stop characters.
Example:
To create a bar code for the data “ A8745343 B” ( should be a check digit.)
64
Appendix 2 Check Digit Calculation
This section explains the rules and calculation method for using Weighted Modulus 11.
Rules
• All of the bar code data should be numbers from 0 to 9, except for the start and stop characters.
• Up to 12 digits are used to calculate Weighted Modulus 11, not including the start and stop
characters. Therefore, the bar code data should have 12 digits or less, not including the start and
stop characters. (If the bar code data has more than 12 digits, an error will result.)
• The check digit is placed next to the last character of the bar code data (immediately before the
stop character).
Calculation method
1. To calculate Weighted Modulus 11, the following 2 weight coefficient types are used.
Number 12 11 10 9 8 7 6 5 4 3 2 1
Weight 1 6 3 5 9 10 7 8 4 5 3 6 2
Weight 2 5 8 6 2 10 4 3 7 6 8 5 9
2. Align the bar code data not including the start and stop characters with weight 1, flush to the
right. Then multiply each value by the value of weight 1.
5. When the remainder is a number other than 0 or 1, subtract the remainder from 11.
This value is the check digit.
When the remainder is 0, the check digit is 0.
6. When the remainder is 1, try another calculation using weight 2. Align the bar code data not
including the start and stop characters with weight 2, flush to the right.
Then multiply each value by the value of weight 2.
9. When the remainder is a number other than 0, subtract the remainder from 11. This value is the
check digit.
When the remainder is 0, the check digit is 0.
65
Appendix 2 Check Digit Calculation
Example 1:
To create a bar code for the data “ A5012924346 B” ( should be a check digit.)
Number 12 11 10 9 8 7 6 5 4 3 2 1
Weight 1 6 3 5 9 10 7 8 4 5 3 6 2
X X X X X X X X X X
Data 5 0 1 2 9 2 4 3 4 6 Flush to the right
194 ÷ 11 = 17 Remainder is 7.
11 – 7 = 4 ··· Check digit
Example 2:
To create a bar code for the data “ A0200290068 C” ( should be a check digit.)
Number 12 11 10 9 8 7 6 5 4 3 2 1
Weight 1 6 3 5 9 10 7 8 4 5 3 6 2
X X X X X X X X X X
Data 0 2 0 0 2 9 0 0 6 8 Flush to the right
122 ÷ 11 = 11 Remainder is 1.
Since the calculated remainder using weight 1 is 1, repeat the calculation using weight 2.
Number 12 11 10 9 8 7 6 5 4 3 2 1
Weight 2 5 8 6 2 10 4 3 7 6 8 5 9
X X X X X X X X X X
Data 0 2 0 0 2 9 0 0 6 8 Flush to the right
66
Appendix 2 Check Digit Calculation
This section explains the rules and calculation method for using Runes.
Rules
• All of the bar code data should be numbers from 0 to 9, except for the start and stop characters.
• The check digit is placed next to the last character of the bar code data (immediately before the
stop character).
Calculation method
1. Assign a number to each bar code data, not including the start and stop characters and check
digit, beginning from the rightmost digit and moving to the left.
2. Multiply the bar code data on the digit assigned odd number by 2, and do nothing to the bar code
data on the digit assigned even number.
3. If the calculated value in step 2 has 2 digits, divide the digits and create two 1-digit numbers. Find
the total of these numbers.
5. When the remainder is 0, the check digit is 0. When the remainder is a number other than 0, the
check digit is the value obtained by subtracting the remainder from 10.
Example:
To create a bar code for the data “ A938745343 B” ( should be a check digit.)
Number 9 8 7 6 5 4 3 2 1
18 3 16 7 8 5 6 4 6
1+8+3+1+6+7 +8 +5 +6 +4 +6 = 55
55 ÷ 10 = 5 Remainder is 5.
10 – 5 = 5 ··· Check digit
67
Appendix 2 Check Digit Calculation
Rules
• The check digit is placed next to the last character of the bar code data
(immediately before the stop character).
Calculation method
The CODE 128 character composition table in the following page shows the numeric values
(leftmost column of the table) corresponding to each data character (bar pattern). These values are
used for Modulus 103.
Selection of any one of the start codes provides three variations of character composition, even if
CODE 128 is composed of the same bar pattern. For Modulus 103 calculation, it is necessary to
understand all data characters including start code, function code and shift code.
1. Exchange all characters (including start code, function code and shift code), expert for the stop
code, with numbers according to the exchange table in the following page.
2. Multiply the start code by 1 and then multiply the following characters by the weight coefficient 1,
2, 3, 4 ... in serial order, to find the total of these numbers.
4. The character corresponding to the value of the remainder is the check digit.
Example:
To create a bar code for the data “[START C]•[FNC1]•12•34•56•[CODE B]•A•1• • [STOP]”
=
=
68
Appendix 2 Check Digit Calculation
69
CALL T O C O N TA C T Y O U R L O C A L O F F I C E
TOLL
FREE
1-888-KEYENCE
1 - 8 8 8 - 5 3 9 - 3 6 2 3
www.keyence.com SAFETY INFORMATION
Please read the instruction manual carefully in
order to safely operate any KEYENCE product.
KEYENCE CORPORATION OF AMERICA KEYENCE CANADA INC. KEYENCE MEXICO S.A. DE C.V.
500 Park Boulevard, Suite 200, Itasca, IL 60143, U.S.A. PHONE: +1-201-930-0100 FAX: +1-855-539-0123 E-mail: keyencecanada@keyence.com E-mail: keyencemexico@keyence.com
The information in this publication is based on KEYENCE’s internal research/evaluation at the time of release and is subject to change without notice. Company and product names mentioned in this catalog are either trademarks or registered trademarks KA11-1017
of their respective companies. The specifications are expressed in metric units. The English units have been converted from the original metric units.
Copyright © 2018 KEYENCE CORPORATION. All rights reserved. BLGuide2Type-KA-TG2-US 1098-1 611I42