Skip to content
barcoder

Standards/code-16k

Code 16K

Type2D Stacked Linear
Completeness63%medium

Overview

Code 16K is a multi-row ("stacked") linear barcode that stacks 2 to 16 rows of five symbol characters each, using the bar-space patterns of UPC and Code 128 (Code 128) 12. A 16-row symbol holds up to 77 ASCII characters or 154 digits 1, in an area Wikipedia gives as about 2.4 cm² 2. Every row carries its own start and stop pattern, which together say which row it is, so a scanner can read the rows in any order and reassemble them 16. The symbology was published by AIM as the Uniform Symbology Specification USS-16K and later as the European standard EN 12323 (1998, revised 2005) 178.

History

Origin. Code 16K is credited to Ted Williams of the American company Laserlight Systems 24. The year differs between sources: Wikipedia, Seagull Scientific's barcode guide, Neodynamic and barcode.ro give 1989 23620, while the Zint manual says Williams invented it "for LaserLight Systems in 1988" and an Intermec 4630 printer manual says it was "Introduced in 1988" 45. No patent for Code 16K was found, and no source found describes Laserlight Systems beyond naming it.

Relation to Code 49. Intermec developed Code 49 (Code 49) in 1987; the Zint manual says Code 49 "influenced the design of Code 16K a year later" 4, and Intermec's own manual describes Code 16K as "similar to Code 49" in using multiple rows 5. The barcode.ro tutorial says Code 16K was meant to be simpler to print and decode than Code 49, whose structure "requires a large amount of memory for encoding and decoding tables and algorithms" 6. The same tutorial says Williams "also developed Code 128" 6; Wikipedia's Code 128 article instead credits Code 128 to the Computer Identics Corporation in 1981 and does not name Williams 19.

Standardisation. AIM (Automatic Identification Manufacturers, Inc., named in the copy as its publisher) published the symbology as USS-16K in its Uniform Symbology Specification series, which the glossary of the AIM copy lists as USS-I 2/5, USS-39, USS-93, USS-Codabar, USS-128, USS-49 and USS-16K 1. The available copy carries no date. Wikipedia and Seagull cite the later edition as AIM-BC7-2000 23, and BWIPP calls it ANSI/AIM BC7 11. In Europe, CEN published EN 12323:1998 "Bar coding — Symbology specifications — Code 16K": the Norwegian edition is dated 6 May 1998 and the British edition 15 June 1998 89. EN 12323:2005, retitled "AIDC technologies — Symbology specifications — Code 16K", replaced it: SIS records approval on 20 May 2005, and BSI published BS EN 12323:2005 on 8 September 2005, the day the 1998 British edition was withdrawn 7810.

Technical specification

Unless another source is cited, the rules below are from the AIM USS-16K specification 1. The 2005 European edition is paywalled and was not read; its scope covers the symbology characteristics, data character encodation, dimensions and tolerances, decoding algorithms, user-defined application parameters, and "a subset of Code 16K assigned to EAN International" 710.

Summary (USS-16K Table 1)

Property Value
Type Multi-row, continuous
Rows 2 to 16
Symbol characters per row 5
Symbol width 81X including quiet zones (10X left quiet zone + 70X of bars and spaces + 1X right quiet zone)
Capacity, 2-row symbol 7 printable ASCII or 14 digits
Capacity, 16-row symbol 77 printable ASCII or 154 digits
Character set All 128 ASCII characters, 4 function characters, 3 code-set changes, 7 shifts, 1 pad
Check characters 2, modulo 107
Self-checking Character and row
Smallest nominal element (X) 0.0075 in (0.191 mm)

Row structure. Each row is a leading quiet zone, a start character, a 1X guard bar, five symbol characters, a stop character and a trailing quiet zone. Rows may be separated by a separator bar one module high, and the top and bottom of the symbol carry separator bars that run out to the ends of the quiet zones. Symbol characters are read from the leftmost character of row 1, left to right, to the rightmost character of the last row. The first is the starting (mode) character, the last two are the check characters, and the rest carry data.

Symbol characters. There are 107 symbol characters, each 11 modules wide, made of three spaces alternating with three bars and starting with a space; each element is 1 to 4 modules wide. All have odd parity (the bar modules sum to an odd number). Intermec's printer manual describes this as "a mirror image of the Code 128 coding patterns" 5.

Start and stop characters. The start character is a 7X bar-space-bar-space pattern with even parity; the stop character is the same eight patterns with bars and spaces swapped (space-bar-space-bar, odd parity). Each row has a unique start/stop pair:

Rows Start value Stop value
1–8 0–7 0–7 (same as start)
9–12 0–3 4–7
13–16 4–7 0–3

Code sets. As in Code 128, three code sets share the symbol character values 13:

  • Code Set A: ASCII 0–95, one character per symbol character (controls, punctuation, digits, upper case).
  • Code Set B: ASCII 32–127 (punctuation, digits, upper and lower case).
  • Code Set C: digit pairs 00–99, two digits per symbol character.

"Code A", "Code B" and "Code C" characters change the set until the end of the symbol or the next change. Single, double and triple shift characters change it for the next one, two or three symbol characters only.

Starting character and modes. The first symbol character packs the starting mode m and the number of rows r as s = 7(r − 2) + m, a value from 0 to 104. Value 105 marks the extended data length option described below.

m Initial code set Implied character
0 A none
1 B none
2 C none
3 B FNC1
4 C FNC1
5 C Shift B
6 C Double Shift B

Implied characters act as if present but take no space. Appendix G of the specification gives rules for choosing the mode, code and shift characters that give the smallest symbol.

Function and pad characters.

  • FNC1 right after the starting character (or implied by mode 3 or 4) is reserved for the Uniform Code Council and the International Article Numbering Association (EAN). It makes the reader send the symbology identifier ]K1.
  • FNC2 in second position means message append: the reader holds the data and prefixes it to the next Code 16K symbol read. In third position it means concatenation, and the second character's value gives the position and total: value ÷ 10 is the position and value modulo 10 the total, so 37 means "third of seven".
  • FNC3 means the symbol is reader initialisation or programming data.
  • FNC4 is "User Defined" in the AIM copy. Seagull, BWIPP and Zint describe FNC4 as giving access to byte values 128–255 (ISO/IEC 8859-1), in the same manner as Code 128 3411.
  • Pad (value 103) fills unused positions before the check characters. Inside the data it acts as a field separator, so that one symbol can carry several variable-length fields. In first data position it makes the reader send ]K4, to mark another industry-specific variant.

Symbology identifiers are ]K0 (no special character in the first two data positions), ]K1 (FNC1 first), ]K2 (FNC1 second) and ]K4 (pad first).

Check characters. C1 and C2 are the last two symbol characters. C1 = (Σ (i + 1) × Char(i)) mod 107 over every preceding symbol character, with the starting character weighted 2. C2 = (Σ i × Char(i)) mod 107 over every character before it, including C1, with the starting character weighted 1. The starting, code, shift and function characters and the check characters are not transmitted.

Dimensions. The minimum standard X is 0.0075 in (0.191 mm); closed systems may use less, with a bar tolerance of ±0.33X. A minimum row height of 8X is recommended for linear scanners. The quiet zone is at least 10X before the start pattern and at least 1X after the stop pattern, with 10X recommended where space permits. Symbol height is H = ((h + g)r + g)X, where h is the bar height, g the separator height and r the number of rows. Seagull gives the same 7.5-mil minimum X, 8X row height and 10X/1X quiet zones 3.

Decoding. The reference decoder stores each correctly decoded row by its start/stop values, rejects all rows of the symbol if a duplicate row decodes with different data, reads the row count from the starting character in row 1, and verifies both check characters once every row has been read.

Extended data length option (Appendix C). Normal Code 16K symbols must be scanned one at a time and cannot be stacked. The extended option allows up to 107 16-row symbols to be stacked and concatenated. Each block starts with value 105, starts in Code Set B and has 16 rows. Its second and third symbol characters give the block number minus 1 and the block count minus 1. Odd and even blocks use different start/stop pairs per row, so that a scanner can ignore rows from the adjacent block. The AIM copy puts the maximum at 8,025 characters or 15,836 digits. Seagull and barcode.ro give 8,025 ASCII or 16,050 numeric characters for the same stack 36.

Use cases

  • Electronics. In the United States and France, Code 16K has been used in the electronics industry to tag chips and printed circuit boards 2.
  • Healthcare. Wikipedia reports use in various US medical settings, and Seagull and Neodynamic describe healthcare as its main field 2320. The barcode.ro tutorial gives a health-care example: at a 7.5-mil X, a flag character, a 10-digit NDC number, a 5-digit expiry date and a 10-character lot code fit in a symbol of about 0.35 × 0.61 in 6.
  • GS1/EAN data. The FNC1 modes are reserved for the UCC and EAN 1, EN 12323 describes a subset of Code 16K assigned to EAN International 7, and Zint accepts GS1 data for Code 16K 4.

No source found names a current deployment, an industry label standard that requires Code 16K, or any deployment outside the US and France.

Implementations

Encoders

Project Language Code 16K support
BWIPP (Barcode Writer in Pure PostScript) 11 PostScript Encoder code16k. Accepts any byte value (FNC4 inserted automatically for 128–255). Options: rows (2–16; fewest rows if omitted), rowheight (8–50 modules, default 8), sepheight (1–5, default 1), parse, parsefnc (^FNC1, ^FNC2, ^FNC3, ^FNC@ for FNC1 in second position), readerinit, sam / sampos / samtotal (structured append of up to 9 symbols), raw.
bwip-js 12 JavaScript Port of BWIPP; lists code16k "Code 16K". It renders Barcoder's playground.
Zint 4 C BARCODE_CODE16K (symbology 23), stated compliant with EN 12323:2005. --rows sets the minimum rows (2–16), Latin-1 by default, GS1 data supported, boundary bars always drawn.
OkapiBarcode 13 Java Lists "Code 16k" among its supported symbologies.
Commercial various Neodynamic Barcode Professional supports modes 0, 1 and 2 20. Intermec's 4630 printer prints Code 16K 5.

Decoders. ZXing does not list Code 16K among its formats 14, and neither does zxing-cpp 15. No open-source Code 16K decoder was found. Among commercial products, Aspose.BarCode for .NET says it can "generate and recognize Code 16K barcodes" 16, and the Wasp WLS8600 scanner's reference manual has a Code 16K entry in its code-selection menu 17. barcode.ro says the symbols can be read by "modified moving-beam laser or CCD scanners" 6.

Comparison

Code 16K Code 49 (Code 49) Codablock F (Codablock-F)
Origin Ted Williams, Laserlight Systems, 1988/1989 24 Intermec, 1987 45 Heinrich Oehlmann, Identcode Systeme; Codablock family 1989 18
Rows 2–16 1 2–8 45 2–44 18
Row width Fixed, 5 symbol characters 1 Fixed 4 4–62 data characters 18
Maximum capacity 77 ASCII or 154 digits 1 49 characters or 81 digits 4 2,725 characters 18
Checks 2 mod-107 symbol checks 1 — 2 mod-86 symbol checks plus a mod-103 check per row 18

Code 16K and Codablock F both build rows from Code 128 patterns. Code 16K uses fixed five-character rows and at most 16 of them, and identifies each row by its start/stop pair. Codablock F allows much wider rows and up to 44 of them, so it can carry far more data per symbol 118. Against Code 49, Code 16K offers twice as many rows and a higher ceiling (77 against 49 characters), and barcode.ro presents it as simpler to encode and decode 46. Larger stacked codes such as PDF417 and MicroPDF417, and matrix codes such as Data Matrix, belong to the same 2D field. No fetched source compares them with Code 16K directly.

Fun facts

  • Because each row names itself through its start/stop pair, rows may be scanned in any order, and the reader sequences the data once the last row is in 16.
  • The AIM specification's worked example encodes "ab0123456789" 1. Zint's manual uses the same string for its compliant Code 16K figure 4.

Status

Code 16K remains a published standard: BSI lists BS EN 12323:2005 as "Current, under review", and SIS lists SS-EN 12323:2005 as valid 710. Maintained open-source encoders (BWIPP, bwip-js, Zint, OkapiBarcode) still generate it 1112134. The major open-source readers do not decode it 1415. No successor standard is named in any source found, and no source quantifies how much it is still used.

Sources

Deployments

No country reports mention this standard by name.

Regions / aggregations not mapped to a single country

  • Universal
source · content/standards/code-16k/index.md