Skip to content

Data Matrix

Terry Burton edited this page Oct 31, 2019 · 55 revisions

Data Matrix

The Data Matrix symbology is 2D matrix-style barcode that can encode full 256 character extended-ASCII.

Also known as: Data Matrix ECC 200, DataMatrix.

Variants:

Standards: ISO/IEC 16022, ANSI/AIM BC11 - ISS Data Matrix.

Data and Options

  • The data field can contain any extended ASCII data. The default interpretation of data by readers is in accordance with ISO/IEC 8859-1.
  • When the parse option is specified, any instances of ^NNN in the data field are replaced with their equivalent ASCII value. This is useful for specifying unprintable characters.
  • When the parsefnc option is specified, non-data function characters can be specified by ^FNC1, ^PROG.
  • Deprecated: For internal use. When the parsefnc option is specified, non-data function characters can be specified by ^MAC5, ^MAC6.
  • Whenever the data field contains suitable input, the encoder will compress ISO/IEC 15434 structured data (internally using the 05 Macro and 06 Macro codewords.)
  • The format option is used to specify the shape of the symbol, either:
  • When the dotty option is specified the modules are rendered as dots rather than squares. The dot radius can be adjusted using the inkspread option.
  • Deprecated: Use Data Matrix Rectangular Extended. The dmre option enables Data Matrix Rectangular Extension symbols based on the ISO/IEC standard, which increases the number of rectangular symbol sizes available.
  • Deprecated: Use Data Matrix Rectangular Extended with the same option. The dindmre option enables Data Matrix Rectangular Extension symbols based on the AIM + DIN standard, which increases the number of rectangular symbol sizes available.
  • The columns and rows options are used to specify the size of the symbol.
  • The version option can also be used to specify the symbol size, as version=RxC. Valid options are:
    • With format=square: 10x10, 12x12, 14x14, 16x16, 18x18, 20x20, 22x22, 24x24, 26x26, 32x32, 36x36, 40x40, 44x44, 48x48, 52x52, 64x64, 72x72, 80x80, 88x88, 96x96, 104x104, 120x120, 132x132, 144x144
    • With format=rectangle (deprecated - use Data Matrix Rectangular): 8x18, 8x32, 12x26, 12x36, 16x36, 16x48
    • With format=rectangle and dmre (deprecated - Data Matrix Rectangular Extended): 8x18, 8x32, 8x48, 8x64, 8x80, 8x96, 8x120, 8x144, 12x26, 12x36, 12x64, 12x88, 16x36, 16x48, 16x64, 20x36, 20x44, 20x64, 22x48, 24x48, 24x64, 26x40, 26x48, 26x64
    • With format=rectangle and dindmre (deprecated - Data Matrix Rectangular Extended with dindmre option): 8x18, 8x32, 8x48, 8x64, 12x26, 12x36, 12x64, 16x36, 16x48, 16x64, 24x32, 24x36, 24x48, 24x64, 26x32, 26x40, 26x48, 26x64
  • If columns, rows and version are unspecified the encoder will default to creating a symbol of the specified format that is the minimum size to represent the given data.
  • The raw option denotes that the data field is providing the input as pre-encoded codewords in ^NNN format, suitable for direct low-level encoding.
  • Deprecated: For internal use. The mailmark option signifies the requirement to use Mailmark-specific encoding.

Examples

Identical symbols, automatically sized, the latter showing use of the parse option:

Data:    This is Data Matrix
Options: 
Encoder: datamatrix
Data:    This is ^068ata Matrix
Options: parse
Encoder: datamatrix

Identical symbols with a fixed size:

Data:    Fixed size
Options: version=48x48
Encoder: datamatrix
Data:    Fixed size
Options: rows=48 columns=48
Encoder: datamatrix

A rectangular symbol with a fixed size:

Data:    Rectangular
Options: format=rectangle version=16x48
Encoder: datamatrix

An advanced use containing "hidden data" in the padding codewords as used by some non-standard, "high-security" applications. The technique works by filling the symbol using raw codewords formed from the standard data immediately followed by the non-standard padding data beginning with ^129:

Data:    ^066^067^068^142^052^129^161^056^206^101^251^147
Options: version=16x16 raw
Encoder: datamatrix

Symbologies Reference

Point of Sale

GS1 DataBar

Supply Chain

Two-dimensional Symbols

One-dimensional Symbols

Postal Symbols

Pharmaceutical Symbols

Less-used Symbols

GS1 Composite Symbols

Raw Symbols

Partial Symbols

Clone this wiki locally