Code 39

From Free net encyclopedia

Revision as of 11:19, 23 March 2006; view current revision
←Older revision | Newer revision→

Code 39 can encode uppercase letters (A through Z), digits (0 through 9) and a handful of special characters like the $ sign. The barcode itself does not contain a check digit (in contrast to—for instance—Code 128), but it can be considered self-checking by some, on the grounds that a single erroneously interpreted bar cannot generate another valid character. Possibly the most serious drawback of Code 39 is its low data density: It requires more space to encode data in Code 39 than, for example, in Code 128. This means that very small goods cannot be labeled with a Code 39 based barcode. However, Code 39 is still widely used and can be decoded with virtually any barcode reader.

Code 39 gets its name because there are 9 light and dark bars in each code, and 3 of these bars are wide. 3 "wide" of 9 "bars".

The * character presented below is not a true encodable character, but is the start and stop 'symbol' for Code 39. The asymmetry of the symbol allows the reader to determine the direction of the barcode being scanned. This code is traditionally mapped to the * character in barcode fonts and will often appear with the human-readable representation alongside the barcode.

These tables outline the 3 of 9 specification:

Legend
Format1Format2Desc
WBWide - Black
NbNarrow - Black
wWWide - White
nwNarrow - White


Code Details
CharFormat1Format2
*NwNnWnWnN bWbwBwBwb
-NwNnNnWnW bWbwbwBwB
$NwNwNwNnN bWbWbWbwb
%NnNwNwNwN bwbWbWbWb
(space)NwWnNnWnN bWBwbwBwb
.WwNnNnWnN BWbwbwBwb
/NwNwNnNwN bWbWbwbWb
+NwNnNwNwN bWbwbWbWb
0NnNwWnWnN bwbWBwBwb
1WnNwNnNnW BwbWbwbwB
2NnWwNnNnW bwBWbwbwB
3WnWwNnNnN BwBWbwbwb
4NnNwWnNnW bwbWBwbwB
5WnNwWnNnN BwbWBwbwb
6NnWwWnNnN bwBWBwbwb
7NnNwNnWnW bwbWbwBwB
8WnNwNnWnN BwbWbwBwb
9NnWwNnWnN bwBWbwBwb
AWnNnNwNnW BwbwbWbwB
BNnWnNwNnW bwBwbWbwB
CWnWnNwNnN BwBwbWbwb
DNnNnWwNnW bwbwBWbwB
EWnNnWwNnN BwbwBWbwb
FNnWnWwNnN bwBwBWbwb
GNnNnNwWnW bwbwbWBwB
HWnNnNwWnN BwbwbWBwb
INnWnNwWnN bwBwbWBwb
JNnNnWwWnN bwbwBWBwb
KWnNnNnNwW BwbwbwbWB
LNnWnNnNwW bwBwbwbWB
MWnWnNnNwN BwBwbwbWb
NNnNnWnNwW bwbwBwbWB
OWnNnWnNwN BwbwBwbWb
PNnWnWnNwN bwBwBwbWb
QNnNnNnWwW bwbwbwBWB
RWnNnNnWwN BwbwbwBWb
SNnWnNnWwN bwBwbwBWb
TNnNnWnWwN bwbwBwBWb
UWwNnNnNnW BWbwbwbwB
VNwWnNnNnW bWBwbwbwB
WWwWnNnNnN BWBwbwbwb
XNwNnWnNnW bWbwBwbwB
YWwNnWnNnN BWbwBwbwb
ZNwWnWnNnN bWBwBwbwb

External links