Encoding The Encoding of EAN-5 characters is very similar to that of the other European Article Numbers. The only difference is that the digits are separated by 01. The EAN-5 always begins with '01011.' Also, the R-Code is not used. Encoding of the digits Digit L-code G-code 0 0001101 0100111 1 0011001 0110011 2 0010011 0011011 3 0111101 0100001 4 0100011 0011101 5 0110001 0111001 6 0101111 0000101 7 0111011 0010001 8 0110111 0001001 9 0001011 0010111 The structure of the barcode is based on the checksum. In order to compute the checksum, multiply each of the digits by either 3 or 9, alternating each time. Then add them and then do a mod 10. So the checksum for 05415 MN is 1 based on the following calculations: 0*3=0 5*9=45 4*3=12 1*9=9 5*3=15 ---------- 81 % 10 = 1 Once you have the checksum digit, you can look up the structure in the following table. Note that the checksum digit is not in the final 5 digits, and is not intended to validate the 5 digit data, but rather to validate the reading of the EAN-5 overall. Structure of EAN-5 Checksum Structure 0 GGLLL 1 GLGLL 2 GLLGL 3 GLLLG 4 LGGLL 5 LLGGL 6 LLLGG 7 LGLGL 8 LGLLG 9 LLGLG Example - encoding 52495 Start 5 (G) Separator 2 (L) Separator 4 (G) Separator 9 (L) Separator 5 (L) 01011 0111001 01 0010011 01 0011101 01 0001011 01 0110001

References NACS Codes Barcode Reference - Section 6.1.46.2 Barcode Writer - The basis for the barcode structure Retrieved from "https://en.wikipedia.org/w/index.php?title=EAN-5&oldid=808856433" Categories: BarcodesHidden categories: Articles with too few wikilinks from August 2015All articles with too few wikilinksArticles covered by WikiProject Wikify from August 2015All articles covered by WikiProject Wikify