In the following section we will describe the requirements to encode in each of the supported symbologies. Some symbologies have strict standard for the data to be encoded. Trying to encode illegal (or not supported data) will result in a "Data validation" error as shown in Figure 24.5. Image error - Failed barcode data validation.
Please note that the information given here is in no way a replacement for the official AIM and ISO standards these encoding are based on. It is assumed that the reader have access to the official standards describing each of these encodings before applying a particular symbology.
UPC A = Universal Product Code Version A.
UPC A encodes 12 numeric digits. The first digit identifies the number system
used. The next group of 5 digits identifies the manufacturer. This number is
assigned by the Uniform Code Council (UCC
). The next 5 digits
identify the particular product and are assigned by the manufacturer. The final
digit is a check digit.
Used for consumer goods. Is being slowly replaced by EAN13. UPCA is a special case of EAN 13 where the first digit is always 0.
UPC E = Universal Product Code Version E.
Same general use as UPC A. Can be considered a subset and a more compact version of UPC A. Used where UPC A bar codes are to wide.
The 6 resulting digits is take from the UPC A according to the following 4 rules:
If a manufacturer's number ends in 000 or 100 or 200, he has available to him 1,000 item numbers between 00000 and 00999. The six characters are obtained from the first two characters of the manufacturer's number followed by the last three characters of the item number, followed by the third character of the manufacturer's number.
If a manufacturer's number ends in 300, 400, 500, 600, 700, 800 or 900, he has available to him 100 item numbers between 00000 and 00099. The six characters are obtained from the first three characters of the manufacturer's number followed by the last two characters of the item number, followed by "3".
If a manufacturer's number ends in 10, 20, 30, 40, 50, 60, 70, 80 or 90, he has available to him 10 item numbers between 00000 and 00009. The six characters are obtained from the first four characters of the manufacturer's number followed by the last character of the item number, followed by "4".
If a manufacturer's number does not end in zero, then five item numbers between 00005 and 00009 are available. The six characters are obtained from all five of the manufacturer's identification number followed by the last character of the item number.
Eleven digits. First digit is always 0. Data input must follow UPC rule for construction of UPC E data.
General purpose short barcodes
The names comes from that this symbology encodes 13 characters. It is widely used in the manufacturing industry.
The first two or three digits are a country code which identify the country in which the manufacturer is registered. The country code is followed by 9 or 10 data digits (depending on the length of the country code) and a finally a single digit checksum.
The GS1 (www.gs1.com
) organization
has renamed several barcode standards built on Code 128 such as EAN-128
to GS1-128.
EAN 128 is a CODE 128 where the data structure is strictly regulated. Please refer to the official EAN-128 specifications for details.
An alphanumeric data string following EAN 128 rules. This means for one thing that the string must start with a FUNC1 character which is encoded using ASCII 128 in JpGraph Barcode available as constant EA_FUNC1. The validation routines checks these rules and will fail any data string not following the EAN 128 rules.
The names comes from that each character is encoded in 5 bars and 2 of those are 3 modules wide and the rest 1 module wide
Old low density standard. For newer applications it should not be used. Use interleaved 2 of 5 instead since this is a higher density code.
The name comes from the that each data character is composed of 5 elements, either 5 bars or 5 spaces. Two elements are 3 modules wide and three elements have a width of 1 module. Adjacent characters are interleaved, mixing the spaces from one character with the bars of the other.
This symbology is sometimes referred to as "Code 25" but since this could also refer to "Industry 2 of 5" symbology this name is ambiguous without further discriminating information.
Even length numeric string when not using checksum. Odd length string when using checksum.
THIS IS AN EXPERIMENTAL ENCODER
Due to the lack of CCD scanners supporting this code in Europe we have not been able to verify this Code against any scanning equipment.
Numeric only code. Used primarily on telecommunication equipment. Not recommended for general usage. Note: This code is not widely supported by handhold CCD scanners.
This is also known as "Code 3 of 9" or "USD 3" . This names comes from that each character consists of 9 elements. 5 bars and 4 spaces. Three of those elements are 2 modules wide and the rest one module wide. Code 39 is defined in American National Standards Institute (ANSI) standard MH10.8M-1983.
The full 128 ASCII character set can be encoded in Code 39.
Code 39 is a very widely used barcode and basically every scanner/reader on the market is able to decode Code 39 barcodes which makes it for a very good selection as a generic linear barcode.
Alphanumeric (CAPITALS only) including the special characters "$", "/", "+", "%" and "*"
Code 39 Extended was developed to provide a means of encoding additional characters that are not normally part of the Code 39 character set (lower case characters and symbols).
Same as Code 39 with the change that it supports lower case characters ("a,b,c,d,...") but do not support the special characters "+/%$+*".
Named so since it can encode the entire 128 ASCII character set (from ASCII 0 to ASCII 128.)
Codabar is primarily used in libraries in the USA. It is also sometimes used in health care and transportation systems.
This is a specially formatted EAN13 Code. This is primarily used to encode the International Standard Book Number (ISBN) on magazines and books.
A valid ISBN number without last digit (check digit) and "-" signs. An ISBN is a 10-digit number which is made up of
Group identifier (1 digit, typically 0 or 1 for English-speaking countries)
Publisher identifier
Title identifier
Check digit
The input data must be a valid ISBN (International Standard Book Number)
Encoded string = "0-486-63926-6"
The ISBN check digit "6" is automatically removed and replaced by the EAN 13 check digit.
A bookland code will always have the digits "978" as the first three digits (the standard also allows "979" but that is currently not in use)
ISBN numbers are organized in Europe by:
International Standard Book Number Agency, Staatsbibliothek Preussischer Kulturbesitz Posdamer Strasse 33 D-1000 Berlin 30 Germany