Codabar is a barcode symbology similar to 39 (or 3 of 9). The number of possible characters is much smaller than code 39, but this allows the pattern for each character to be smaller as well. A codabar character consists of 7 bars and spaces, a code 39 character consists of 9. Codabar allows for all digits, the characters - $ : / . + and the letters A B C D. The letters are used as start/stop characters. Like other barcodes, the codabar symbology involves wide and narrow bars separated by wide and narrow spaces.

char bsbsbsb
A    nnwwnwn
B    nwnwnnw
C    nnnwnww
D    nnnwwwn
0    nnnnnww
1    nnnnwwn
2    nnnwnnw
3    wwnnnnn
4    nnwnnwn
5    wnnnnwn
6    nwnnnnw
7    nwnnwnn
8    nwwnnnn
9    wnnwnnn
-    nnnwwnn
$    nnwwnnn
:    wnnnwnw
/    wnwnnnw
.    wnwnwnn
+    nnwnwnw
b=bar
s=space
w=wide
n=narrow

A system used by most credit card companies to assign a check digit to the card number. The first 15 digits of a credit card number are assigned by the issuing bank: the 16th is the check digit.

To obtain the value, 3 different values are required:

  • Twice the sum of the digits in the odd positions.
  • The sum of the digits in the even positions.
  • The number of digits in odd positions with a value greater than 4.

These 3 values are then added to give a fourth value. The check digit is the number that needs to be added to this fourth value to bring it up to the next power of 10.

An example: Consider the number 3141 5926 5358 979. Our three values are (3 + 4 + 5 + 2 + 5 + 5 + 9 + 9) x 2 = 84 ; 1 + 1 + 9 + 6 + 3 + 8 + 7 = 35 and 5. Adding these gives 124. The next power of 10 is 130, so the check digit is 6.

The Codabar method is one of the most efficient check digit generation techniques around: it will pick up all single digit errors and many common errors such as switching two adjacent digits.

Log in or registerto write something here or to contact authors.