^BX Data Matrix
Data Matrix 2D barcode.
Barcodes · Updated 2026-10-20
Syntax
^BXo,h,s,c,r,f,g,a
Parameters
| Parameter | What it does | Values |
|---|---|---|
o | Rotation. | N, R, I, B |
h | Module size, in dots. | 1 to the label width |
s | Quality level. | 0, 50, 80, 100, 140, 200; use 200 (ECC 200) |
c | Columns. | 9 to 49; default auto |
r | Rows. | 9 to 49; default auto |
f | Format ID. | 1 to 6; default 6 |
g | Escape character. | default ~ |
a | Aspect ratio. | 1 = square, 2 = rectangular |
Common mistakes
- Always use quality 200 (ECC 200): the older levels aren't read by most scanners.
Example
Edit the code and the label redraws. This is the same engine as the API.
Questions
What does ^BX do in ZPL?
Data Matrix 2D barcode.
What is the syntax of ^BX?
^BXo,h,s,c,r,f,g,a
What should I watch out for with ^BX?
Always use quality 200 (ECC 200): the older levels aren't read by most scanners.