|
|
|
Code 39 is an alphanumeric bar code. The symbol can be as long as necessary to store the encoded data. It is designed to encode 26 uppercase letters, 10 digits and 7 special characters. It can be extended to code all 128 ASCII characters by using a two character coding scheme. Each data character encoded in a Code 39 symbol is made up of 5 bars and 4 spaces for a total of 9 elements. Each bar or space is either "wide" or "narrow" and 3 out of the 9 elements are always wide. That's what gave the code its other name - Code 3 of 9. The symbol includes a quiet zone (10 x-dimensions or 0.10 inches which every is greater), the start character "*", the encoded data, the stop character "*", and a trailing quiet zone (10 x-dimensions or 0.10 inches which ever is greater). The asterisk is only used as a start and stop code. The X-dimension is the width of the smallest element in a bar code symbol. The minimum X-dimension for an "open system" (a bar code label that will be read by scanners from outside your company) is 7.5 mils (a mil is 1/1000 inch) or 0.19 mm. The "wide" element is a multiple of the "narrow" element and this multiple must remain the same throughout the symbol. This multiple can range between 2.0 and 3.0 if the narrow element is greater than 20 mils. If the narrow element is less than 20 mils, the multiple can only range between 2.0 and 2.2. The height of the bars must be at least .15 times the symbol's length or .25 inches, whichever is larger. The overall length of the symbol is given by the equation: where Note that the maximum value (based on the Code 39 specification) for I is 5.3X for X less than 10 mils. If X is 10 mils or greater, the value of I is 3X or 53 mils, whichever is greater. However, for good quality printers, I often equals X. I, strictly speaking, equals X-t where t is the print tolerence in mils. If you do not know the actual value for t, you can calculate the length using the maximum value for I and calculate the minimum value setting I=X. This calculator will show you the length of a Code 39 bar code given the X dimension, wide-to-narrow ratio and total number of data characters. This calculator assumes that the intercharacter gap equals the X-dimension, which is correct for many printers such as laser printers. Code 39 does not normally include a check character, however there is an established check character for applications that need it. The value of each data character is summed up and divided by 43. The remainder is the value of the character to use as the check character. The table of characters does not include the values for each character, but you can find the value by counting from the first character (a value of 0) and counting up to the last character (a value of 42). |