ZPL commands

^BX · Data Matrix Bar Code

Generates a Data Matrix code 2D matrix, very robust, space-saving . Use quality level 200 ECC 200 for new applications.

Generates a Data Matrix code (2D matrix, very robust, space-saving). Use quality level 200 (ECC 200) for new applications.

Parameters

  • ^BXo,h,s,c,r,f,g,a - o: Orientation (N/R/I/B)
  • ^BXo,h,s,c,r,f,g,a - h: Size of one symbol element (module) in dots (1 to half the label length)
  • ^BXo,h,s,c,r,f,g,a - s: Quality level (error correction): 0, 50, 80, 100, 140 or 200
  • ^BXo,h,s,c,r,f,g,a - c: Number of columns (9–49; automatic if omitted)
  • ^BXo,h,s,c,r,f,g,a - r: Number of rows (9–49; automatic if omitted)
  • ^BXo,h,s,c,r,f,g,a - f: Format ID for character encoding with levels 0–140 (1–6, default 6)
  • ^BXo,h,s,c,r,f,g,a - g: Escape character for control sequences (default ~)
  • ^BXo,h,s,c,r,f,g,a - a: Aspect ratio for ECC 200: 1 = square (default), 2 = rectangular

Example

^XA
^FO50,50^BXN,5,200^FDZPLCLOUD-2026^FS
^XZ
ZPL preview: ^BX · Data Matrix Bar Code

Tip

Data Matrix need not be square: a = 2 (or suitable values for c and r) creates rectangular symbols. Without c and r the printer sizes the symbol to fit the data.