Barcode 1.10

A Code 39 Barcode Label
*WIKIPEDIA* encoded in Code 39

Code 39 (also known as Alpha39, Code 3 of 9, Code 3/9, Type 39, USS Code 39, or USD-3) is a variable length, discrete barcode symbology.

Oct 10, 2018  Created by Vignesh Shetty. With Parina Chopra, Simran Kaur Mundi, Akshay Oberoi, Karan Wahi. Set in the world of Bombay's upscale nightclubs, Bar Code is a drama series about two friends Sahil Chopra (Akshay Oberoi) and Vicky Arora (Karan Wahi) who own a nightclub business together but let their differences and resulting egos drive a wedge between them and end up becoming rival nightclub. Oct 03, 2019 Barcodes are images that contain distributions of shapes, like lines, dots, or rectangles, which can be read by scanner to interpret the data contained in the code. This makes it easy to access product information, track product movement, and keep up with inventory, which might help you in your business endeavors.

The Code 39 specification defines 43 characters, consisting of uppercase letters (A through Z), numeric digits (0 through 9) and a number of special characters (-, ., $, /, +, %, and space). An additional character (denoted '*') is used for both start and stop delimiters. Each character is composed of nine elements: five bars and four spaces. Three of the nine elements in each character are wide (binary value 1), and six elements are narrow (binary value 0). The width ratio between narrow and wide is not critical, and may be chosen between 1:2 and 1:3.

The barcode itself does not contain a check digit (in contrast to—for instance—Code 128), but it can be considered self-checking 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 used by some postal services (although the Universal Postal Union recommends using Code 128 in all cases[1]), and can be decoded with virtually any barcode reader. One advantage of Code 39 is that since there is no need to generate a check digit, it can easily be integrated into an existing printing system by adding a barcode font to the system or printer and then printing the raw data in that font.[2]

Code 39 was developed by Dr. David Allais and Ray Stevens of Intermec in 1974. Their original design included two wide bars and one wide space in each character, resulting in 40 possible characters. Setting aside one of these characters as a start and stop pattern left 39 characters, which was the origin of the name Code 39.[3] Four punctuation characters were later added, using no wide bars and three wide spaces, expanding the character set to 43 characters. Code 39 was later standardised as ANSI MH 10.8 M-1983 and MIL-STD-1189.[4] MIL-STD-1189 has been cancelled and replaced by ANSI/AIM BC1/1995, Uniform Symbology Specification — Code 39.[5]

Encoding[edit]

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.

Barcode 1.10
Code 39 Characters

As a generality, the location of the two wide bars can be considered to encode a number between 1 and 10, and the location of the wide space (which has four possible positions) can be considered to classify the character into one of four groups (from left to right): Letters(+30) (U–Z), Digits(+0) (1–9,0), Letters(+10) (A–J), and Letters(+20) (K–T). For example, the letter P (being the 16th letter of the alphabet) has its bars aligned to represent the number 6, and the space in the far right position to select the group Letters(+20).

When represented as a digit, the number '10' is used to encode the number zero. Because there are only six letters in the Letters(+30) group (letters 30–35, or U–Z), the other four positions in this group (36–39) are used to represent three symbols (dash, period, space) as well as the start/stop character.

Barcode 1101 Dc

The two wide bars, out of five possible positions, encode a number between 1 and 10 using a two-out-of-five code with the following numeric equivalence: 1, 2, 4, 7, 0. The numbers are summed together. For example, the number 6 is encoded NWWNN, with wide bars occupying the positions for 2 and 4 (2+4=6). In the case of NNWWN which is 4+7 = 11 it is assigned to 0 for digits (+0), and 10 for the letter columns (+10 – +30). When encoding the (+10 to +30) letters the equation needs a '−1' added so 'A' is WNNNW → 1 + 10 − 1 → 10 as shown in the table.

17th

The last four characters consist of all narrow bars and three wide spaces. There are four possible positions for the single narrow space.

This table outlines the Code 39 specification. The numeric value assigned to each character (except start/stop) is used in the checksum algorithm described below.

Barcode 1.10 Generator

Code 39 characters (and checksum values)
BarsSpaces
|| |||+0||| ||+10|||| |+20| ||||+30
▮|||▮1▮| ||▮11▮|| |▮A10▮||| ▮K20▮ |||▮U30
|▮||▮2|▮ ||▮22|▮| |▮B11|▮|| ▮L21| ▮||▮V31
▮▮|||3▮▮ |||33▮▮| ||C12▮▮|| |M22▮ ▮|||W32
||▮|▮4|| ▮|▮44||▮ |▮D13||▮| ▮N23| |▮|▮X33
▮|▮||5▮| ▮||55▮|▮ ||E14▮|▮| |O24▮ |▮||Y34
|▮▮||6|▮ ▮||66|▮▮ ||F15|▮▮| |P25| ▮▮||Z35
|||▮▮7|| |▮▮77||| ▮▮G16|||▮ ▮Q26| ||▮▮-36
▮||▮|8▮| |▮|88▮|| ▮|H17▮||▮ |R27▮ ||▮|.37
|▮|▮|9|▮ |▮|99|▮| ▮|I18|▮|▮ |S28| ▮|▮|38
||▮▮|10|| ▮▮|00||▮ ▮|J19||▮▮ |T29| |▮▮|*
|||||| | | ||$39| | || |/40| || | |+41|| | | |%42

Characters are separated by an additional narrow space. For example, the full encoding for the single letter 'A', which actually includes the start and stop characters as '*A*', is '| |▮▮|▮|| |▮| |▮▮|'. The code will not be read properly without these inter-character spaces. Barcode fonts invariably include this space within the glyph for the character.

Code 39 mod 43[edit]

Barcode

Code 39 is sometimes used with an optional modulo 43 check digit. Using it requires this feature to be enabled in the barcode reader. The code with check digit is referred to as Code 39 mod 43.

To compute this, each character is assigned a value. The assignments are listed in the table above, and almost, but not quite, systematic.

Here is how to do the checksum calculation:

  • Take the value (0 through 42) of each character in the barcode excluding start and stop codes.
  • Sum the values.
  • Divide the result by 43.
  • The remainder is the value of the checksum character to be appended.

Full ASCII Code 39[edit]

Code 39 is restricted to 43 characters. In Full ASCII Code 39 Symbols 0-9, A-Z, '.', '-' and space are the same as their representations in Code 39. Lower case letters, additional punctuation characters and control characters are represented by sequences of two characters of Code 39.

Code Details
NrCharacterEncodingNrCharacterEncodingNrCharacterEncodingNrCharacterEncoding
0NUL%U32[space][space]64@%V96`%W
1SOH$A33!/A65AA97a+A
2STX$B34'/B66BB98b+B
3ETX$C35#/C67CC99c+C
4EOT$D36$/D68DD100d+D
5ENQ$E37%/E69EE101e+E
6ACK$F38&/F70FF102f+F
7BEL$G39'/G71GG103g+G
8BS$H40(/H72HH104h+H
9HT$I41)/I73II105i+I
10LF$J42*/J74JJ106j+J
11VT$K43+/K75KK107k+K
12FF$L44,/L76LL108l+L
13CR$M45--77MM109m+M
14SO$N46..78NN110n+N
15SI$O47//O79OO111o+O
16DLE$P480080PP112p+P
17DC1$Q491181QQ113q+Q
18DC2$R502282RR114r+R
19DC3$S513383SS115s+S
20DC4$T524484TT116t+T
21NAK$U535585UU117u+U
22SYN$V546686VV118v+V
23ETB$W557787WW119w+W
24CAN$X568888XX120x+X
25EM$Y579989YY121y+Y
26SUB$Z58:/Z90ZZ122z+Z
27ESC%A59;%F91[%K123{%P
28FS%B60<%G92%L124|%Q
29GS%C61=%H93]%M125}%R
30RS%D62>%I94^%N126~%S
31US%E63?%J95_%O127DEL%T, %X, %Y, %Z

Software[edit]

Gnu Barcode [6] can produce Code 39 barcodes.

References[edit]

  1. ^As one example of an international standard, see 'Identification of postal items – 13-character identifier'(PDF). Universal Postal Union. 28 October 2010.[permanent dead link]
  2. ^'Google Fonts'. Google Fonts. Retrieved 2019-05-20.
  3. ^Allais, D. C. (2006). 'AIDC Memoirs'(PDF). Archived from the original(PDF) on 2013-01-26. Retrieved 2010-06-02.Cite journal requires |journal= (help)
  4. ^'MIL-STD-1189 Standard Department of Defense Barcode Symbology'. 1989-08-10. Archived from the original on 2011-07-22. Retrieved 2010-07-22.
  5. ^'Adoption Notice: AIM/BC1 Uniform Symbology Specification'. 1997-06-19. Archived from the original on 2011-09-27. Retrieved 2011-04-06.
  6. ^'GNU Barcode'. GNU Project. 19 February 2020.
Retrieved from 'https://en.wikipedia.org/w/index.php?title=Code_39&oldid=941611979'