Code 39

*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 defined in ISO/IEC 16388:2007.

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 barcode scheme 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.

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.[2] 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.[3] MIL-STD-1189 has been cancelled and replaced by ANSI/AIM BC1/1995, Uniform Symbology Specification — Code 39.[4]

Encoding

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.

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.

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.

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.

Code 39 characters (and checksum values)
Bars Spaces
|| ||| +0 ||| || +10 |||||| | +20 | ||||| +30
▮|||▮ 1 ▮|| ||▮ 1 1 ▮|| |▮ A 10 ▮||| ▮ K 20 ▮ |||▮ U 30
|▮||▮ 2 |▮ ||▮ 2 2 |▮| |▮ B 11 |▮|| ▮ L 21 | ▮||▮ V 31
▮▮||| 3 ▮▮ ||| 3 3 ▮▮| || C 12 ▮▮|| | M 22 ▮ ▮||| W 32
||▮|▮ 4 || ▮|▮ 4 4 ||▮ |▮ D 13 ||▮| ▮ N 23 | |▮|▮ X 33
▮|▮|| 5 ▮| ▮|| 5 5 ▮|▮ || E 14 ▮|▮| | O 24 ▮ |▮|| Y 34
|▮▮|| 6 |▮ ▮|| 6 6 |▮▮ || F 15 |▮▮| | P 25 | ▮▮|| Z 35
|||▮▮ 7 || |▮▮ 7 7 ||| ▮▮ G 16 |||▮ ▮ Q 26 | ||▮▮ - 36
▮||▮| 8 ▮| |▮| 8 8 ▮|| ▮| H 17 ▮||▮ | R 27 ▮ ||▮| . 37
|▮|▮| 9 |▮ |▮| 9 9 |▮| ▮| I 18 |▮|▮ | S 28 | ▮|▮| 38
||▮▮| 10 || ▮▮| 0 0 ||▮ ▮| J 19 ||▮▮ | T 29 | |▮▮| *
||||| | | | || $ 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 check digit

Code 39 is sometimes used with an optional modulo 10 or 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 10 or Code 39 mod 43 respectively.

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 10 (for Mod 10 check digit) or by 43 (for Mod 43 check digit).
  • The remainder is the value of the checksum character to be appended.

Full ASCII Code 39

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
Nr Character Encoding     Nr Character Encoding     Nr Character Encoding     Nr Character Encoding
0 NUL %U     32 [space] [space]     64 @ %V     96 ` %W
1 SOH $A     33 ! /A     65 A A     97 a +A
2 STX $B     34 " /B     66 B B     98 b +B
3 ETX $C     35 # /C     67 C C     99 c +C
4 EOT $D     36 $ /D     68 D D     100 d +D
5 ENQ $E     37 % /E     69 E E     101 e +E
6 ACK $F     38 & /F     70 F F     102 f +F
7 BEL $G     39 ' /G     71 G G     103 g +G
8 BS $H     40 ( /H     72 H H     104 h +H
9 HT $I     41 ) /I     73 I I     105 i +I
10 LF $J     42 * /J     74 J J     106 j +J
11 VT $K     43 + /K     75 K K     107 k +K
12 FF $L     44 , /L     76 L L     108 l +L
13 CR $M     45 - -     77 M M     109 m +M
14 SO $N     46 . .     78 N N     110 n +N
15 SI $O     47 / /O     79 O O     111 o +O
16 DLE $P     48 0 0     80 P P     112 p +P
17 DC1 $Q     49 1 1     81 Q Q     113 q +Q
18 DC2 $R     50 2 2     82 R R     114 r +R
19 DC3 $S     51 3 3     83 S S     115 s +S
20 DC4 $T     52 4 4     84 T T     116 t +T
21 NAK $U     53 5 5     85 U U     117 u +U
22 SYN $V     54 6 6     86 V V     118 v +V
23 ETB $W     55 7 7     87 W W     119 w +W
24 CAN $X     56 8 8     88 X X     120 x +X
25 EM $Y     57 9 9     89 Y Y     121 y +Y
26 SUB $Z     58 : /Z     90 Z Z     122 z +Z
27 ESC %A     59 ; %F     91 [ %K     123 { %P
28 FS %B     60 < %G     92 \ %L     124 | %Q
29 GS %C     61 = %H     93 ] %M     125 } %R
30 RS %D     62 > %I     94 ^ %N     126 ~ %S
31 US %E     63 ? %J     95 _ %O     127 DEL %T, %X, %Y, %Z

Software

The following free and open source software can produce Code 39 barcodes:

References

  1. ^ As one example of an international standard, see "Identification of postal items – 13-character identifier" (PDF). Universal Postal Union. 17 October 2017.
  2. ^ Allais, D. C. (2006). "AIDC Memoirs" (PDF). Archived from the original (PDF) on 2013-01-26. Retrieved 2010-06-02. {{cite journal}}: Cite journal requires |journal= (help)
  3. ^ "MIL-STD-1189 Standard Department of Defense Barcode Symbology" (PDF). 1989-08-10. Archived (PDF) from the original on 2024-07-01. Retrieved 2024-06-30.
  4. ^ "Adoption Notice: AIM/BC1 Uniform Symbology Specification". 1997-06-19. Archived from the original on 2011-09-27. Retrieved 2011-04-06.
  5. ^ "GNU Barcode". GNU Project. 19 February 2020.

Read other articles:

Ilonse Village d'Ilonse. Blason Administration Pays France Région Provence-Alpes-Côte d’Azur Département Alpes-Maritimes Arrondissement Nice Intercommunalité Métropole Nice Côte d'Azur Maire Mandat Richard Lions 2020-2026 Code postal 06420 Code commune 06072 Démographie Gentilé Ilonsois Populationmunicipale 142 hab. (2021 ) Densité 3,5 hab./km2 Géographie Coordonnées 44° 01′ 59″ nord, 7° 06′ 01″ est Altitude Min. 351 mMax. 1…

Former amusement park in Coney Island, Brooklyn, New York AstrolandAstroland entrance on the Riegelmann Boardwalk (2007)LocationConey Island, Brooklyn, New York, U.S.Coordinates40°34′27″N 73°58′45″W / 40.5743°N 73.9792°W / 40.5743; -73.9792StatusDefunctOpened1962ClosedSeptember 7, 2008Operating seasonMarch–NovemberArea3.1 acres (1.3 ha)AttractionsTotalapproximately 36Roller coasters2Water rides1 Astroland was a 3.1-acre (1.3 ha) amusement park in C…

1926 film by Grigori Kozintsev and Leonid Trauberg The Devil's WheelDirected byGrigori KozintsevLeonid TraubergWritten byAdrian PiotrovskyVeniamin Kaverin (story)StarringPyotr SobolevskySergei GerasimovYanina ZhejmoSergey MartinsonCinematographyAndrei MoskvinProductioncompanyLeningradkinoRelease date 16 March 1926 (1926-03-16) Running time2,650 meters (112 minutes)CountrySoviet UnionLanguagesSilent filmRussian intertitles The Devil's Wheel (Russian: Чёртово колесо, ro…

1985 New York City mayoral election ← 1981 November 5, 1985 1989 →   Candidate Ed Koch Carol Bellamy Diane McGrath Party Democratic Liberal Republican Alliance Conservative Popular vote 868,260 113,471 101,668 Percentage 78.0% 10.2% 9.1% Borough resultsKoch:      70–80%      80–90% Mayor before election Ed Koch Democratic Elected Mayor Ed Koch Democratic Elections in New York State Federal government Presidenti…

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Oktober 2022. Pelabuhan Olimpiade Portsmouth (bahasa Inggris: Portsmouth Olympic Harbour) adalah pelabuhan yang terletak di Kingston,[1][2] Ontario. Untuk Olimpiade Musim Panas 1976 di Montreal, tempat ini menjadi tuan rumah acara berlayar.[3 …

تحتاج هذه المقالة كاملةً أو أجزاءً منها لإعادة الكتابة حسبَ أسلوب ويكيبيديا. فضلًا، ساهم بإعادة كتابتها لتتوافق معه. طبقة عاملةصورة لعاملا بناء أثناء قيامهما بعملهما.معلومات عامةصنف فرعي من طبقة اجتماعيةhigh risk group (en) جانب من جوانب class theory (en) ممثلة بـ low income (en) لديه جزء أو أجزا…

تخطيط اسم مالك جزء من سلسلة مقالات حولالإسلام العقيدة الإيمان توحيد الله  الإيمان بالملائكة الإيمان بالكتب السماوية الإيمان بالرسل والأنبياء الإيمان باليوم الآخر الإيمان بالقضاء والقدر أركان الإسلام شهادة أن لا إله إلا الله وأن محمد رسول الله إقامة الصلاة  إيتاء الز…

Emtmannsberg Lambang kebesaranLetak Emtmannsberg di Bayreuth NegaraJermanNegara bagianBayernWilayahOberfrankenKreisBayreuthMunicipal assoc.Weidenberg Subdivisions20 OrtsteilePemerintahan • MayorThomas Kreil (CSU)Luas • Total22,31 km2 (861 sq mi)Ketinggian469 m (1,539 ft)Populasi (2013-12-31)[1] • Total1.051 • Kepadatan0,47/km2 (1,2/sq mi)Zona waktuWET/WMPET (UTC+1/+2)Kode pos95517Kode area telepon09209Pela…

Jeanette Morelan, Miss America's Outstanding Teen 2010Miss America's Outstanding Teen è un concorso di bellezza statunitense, organizzato dalla stessa produzione di Miss America, che si occupa di fornire annualmente delle borse di studio allo scopo di promuovere il successo scolastico, la realizzazione personale, uno stile di vita sano ed il coinvolgimento della comunità per le adolescenti statunitensi. La prima edizione del concorso si è tenuta nell'agosto 2005presso il Linda Chapin Theater …

Football match2021–22 Angola Super CupSupertaça de Angola 2021–22 Sagrada Esperança Petro de Luanda Girabola Taça Angola 0 (4) 0 (3) DateSeptember 26, 2021 (2021-09-26)VenueEstádio Nacional de Ombaka, BenguelaRefereeBernardo NangoloAttendance5,000← 2016 2022–23 → The 2021–22 Supertaça de Angola (31st edition) was contested by Sagrada Esperança, the 2020–21 Girabola champion and Petro de Luanda, the 2020–21 Angola Cup winner. Sagrada Esperança won the…

Barton Warren EvermannBiographieNaissance 1853 ou 24 octobre 1853AlbiaDécès 1932 ou 27 septembre 1932BerkeleyNationalité américaineFormation Université de l'IndianaUniversité d'État d'IndianaActivités Zoologiste, professeur d'université, biologiste, ichtyologiste, écrivainAutres informationsA travaillé pour Université CornellAbréviation en zoologie Evermannmodifier - modifier le code - modifier Wikidata Barton Warren Evermann est un ichtyologiste et un écologiste américain, né le…

Catherine Dickens Catherine Thomson Kate Dickens (née Hogarth; 19 Mei 1815 – 22 November 1879) adalah penulis, pemeran dan juru masak asal Inggris. Ia merupakan anak perempuan dari penyunting majalah yang mempekerjakan Charles Dickens, yang kemudian dinikahi olehnya. Selama 15 tahun, Catherine hamil sampai sepuluh kali dan mengalami paling tidak dua kali keguguran. Mereka berubah dari pasangan serasi yang saling mencintai, senang berpesta dan berlibur bersama, menjadi pasangan y…

Rule of thumb in chemistry Francis W. Aston received the 1922 Nobel Prize in Chemistry for his enunciation of the whole-number rule. In chemistry, the whole number rule states that the masses of the isotopes are whole number multiples of the mass of the hydrogen atom.[1] The rule is a modified version of Prout's hypothesis proposed in 1815, to the effect that atomic weights are multiples of the weight of the hydrogen atom.[2] It is also known as the Aston whole number rule[3&…

  لمعانٍ أخرى، طالع أشلي (توضيح). أشلي     الإحداثيات 40°24′31″N 82°57′10″W / 40.4086°N 82.9528°W / 40.4086; -82.9528   [1] تقسيم إداري  البلد الولايات المتحدة[2]  التقسيم الأعلى مقاطعة ديلاوير  خصائص جغرافية  المساحة 1.706268 كيلومتر مربع1.706266 كيلومتر مربع (1 أب…

王春宁2023年的王春宁 中国人民武装警察部队第九任司令员任期2020年12月起 个人资料性别男出生1963年3月江苏南京国籍 中华人民共和国政党 中国共产党军种 中国人民武装警察部队军衔上將亲属父:王永明 学历 中国人民解放军国防大学在职研究生 俄罗斯总参谋部军事学院 军衔记录 2011年晋升少将军衔 2017年7月晋升中将军衔 2020年4月改为武警中将警衔 2020年12月晋升武警…

Preparatory coating put on materials before painting This article is about a generic preparation coating used for painting. For preparation of the surface for pictures, see Ground (art), Gesso, and Sizing. This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Primer paint – news · newspapers · books · scholar · …

16 BC Roman book by Ovid The Roman poet Ovid, born in the city. Amores is Ovid's first completed book of poetry, written in elegiac couplets. It was first published in 16 BC in five books, but Ovid, by his own account, later edited it down into the three-book edition that survives today. The book follows the popular model of the erotic elegy, as made famous by figures such as Tibullus or Propertius, but is often subversive and humorous with these tropes, exaggerating common motifs and devices to…

Jett8 AirlinesBerkas:Jett8 Airlines Cargo logo.png IATA ICAO Kode panggil JX JEC TAIPAN Didirikan2005(sebagai Jett8 Airlines Cargo)PenghubungSingapore Changi AirportArmada0Tujuan4Kantor pusatSingapuraTokoh utamaTan H K Louis (Direktur dan CEO)Situs webjett8airlines.com Jett8 Airlines Pte Ltd (Disederhanakan: 捷达货运航空, Tradisional: 捷達貨運航空, Pinyin: Jiédá Hángkōng Huòyùn) adalah maskapai penerbangan kargo yang berbasis di Singapura.[1] yang didirikan pada tanggal…

This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. Please help improve this article by introducing more precise citations. (March 2020) (Learn how and when to remove this message) Major League Baseball team season 1890 New York GiantsLeagueNational LeagueBallparkPolo GroundsCityNew York CityOwnerJohn B. DayManagerJim Mutrie ← 1889 Seasons 1891 → The 1890 New York Giants seaso…

Grafiek van de briggse logaritme De briggse logaritme, vaak ook gewoon als logaritme aangeduid, is de logaritme met grondtal 10. Hij wordt op verschillende manieren genoteerd: log 10 ⁡ x = 10 log ⁡ x = log ⁡ x {\displaystyle \log _{10}x={}^{10}\log x=\log x} , al dan niet met haken rond x {\displaystyle x} . De laatste notatie kan verwarrend zijn: in sommige contexten gebruikt men de notatie log ook voor de natuurlijke logaritme (die doorgaans als ln genoteerd wordt). De bri…