Skip to command documentation
Supportedbarcoderasterfield scope
^BX

Data Matrix Barcode

^BX configures data Matrix Barcode. It applies to the current field and can change pixels in the rendered label.

Syntax
^BXo,h,s,c,r,f,g,a
o

Orientation

Sets orientation. It can be omitted when the documented default is suitable.

Default
current ^FW value
Required
No
Documented valuesNRIB

o variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison3 variations

o = N

Uses N for orientation while the other command values stay at representative defaults.

ZPLcaret-bx-o-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,0,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

o = R

Uses R for orientation while the other command values stay at representative defaults.

ZPLcaret-bx-o-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXR,5,200,0,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

o = B

Uses B for orientation while the other command values stay at representative defaults.

ZPLcaret-bx-o-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXB,5,200,0,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
h

Dimensional height of individual symbol elements

Sets dimensional height of individual symbol elements. It can be omitted when the documented default is suitable.

Required
No
Documented values0

h variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

h = 0

Uses 0 for dimensional height of individual symbol elements while the other command values stay at representative defaults.

ZPLcaret-bx-h-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,0,200,0,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

h = 1

Uses 1 for dimensional height of individual symbol elements while the other command values stay at representative defaults.

ZPLcaret-bx-h-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,1,200,0,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
s

Quality level

Sets quality level. It can be omitted when the documented default is suitable.

Default
0 Quality refers to the amount of data that is added to the symbol for error correction
Required
No
Documented values05080100140200

s variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison3 variations

s = 0

Uses 0 for quality level while the other command values stay at representative defaults.

ZPLcaret-bx-s-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,0,0,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

s = 50

Uses 50 for quality level while the other command values stay at representative defaults.

ZPLcaret-bx-s-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,50,0,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

s = 200

Uses 200 for quality level while the other command values stay at representative defaults.

ZPLcaret-bx-s-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,0,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
c

Columns to encode

Sets columns to encode. It can be omitted when the documented default is suitable.

Range
9–49
Required
No
Documented values0949

c variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison3 variations

c = 0

Uses 0 for columns to encode while the other command values stay at representative defaults.

ZPLcaret-bx-c-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,0,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

c = 9

Uses 9 for columns to encode while the other command values stay at representative defaults.

ZPLcaret-bx-c-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,9,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

c = 49

Uses 49 for columns to encode while the other command values stay at representative defaults.

ZPLcaret-bx-c-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,49,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
r

Rows to encode

Sets rows to encode. It can be omitted when the documented default is suitable.

Range
9–49
Required
No
Documented values0949

r variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison3 variations

r = 0

Uses 0 for rows to encode while the other command values stay at representative defaults.

ZPLcaret-bx-r-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,0,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

r = 9

Uses 9 for rows to encode while the other command values stay at representative defaults.

ZPLcaret-bx-r-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,0,9,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

r = 49

Uses 49 for rows to encode while the other command values stay at representative defaults.

ZPLcaret-bx-r-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,0,49,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
f

Format ID (0 to 6) — not used with quality set at 200

Sets format ID (0 to 6) — not used with quality set at 200. It can be omitted when the documented default is suitable.

Default
6
Required
No
Documented values612345

f variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison3 variations

f = 1

Uses 1 for format ID (0 to 6) — not used with quality set at 200 while the other command values stay at representative defaults.

ZPLcaret-bx-f-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,0,0,1,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

f = 2

Uses 2 for format ID (0 to 6) — not used with quality set at 200 while the other command values stay at representative defaults.

ZPLcaret-bx-f-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,0,0,2,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

f = 6

Uses 6 for format ID (0 to 6) — not used with quality set at 200 while the other command values stay at representative defaults.

ZPLcaret-bx-f-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,0,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
g

Escape sequence control character

Sets escape sequence control character. It can be omitted when the documented default is suitable.

Default
~ (tilde) This parameter is used only if quality 200 is specified
Required
No
Documented values_

g variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

g = _

Uses _ for escape sequence control character while the other command values stay at representative defaults.

ZPLcaret-bx-g-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,0,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

g = #

Uses # for escape sequence control character while the other command values stay at representative defaults.

ZPLcaret-bx-g-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,0,0,6,#,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
a

Aspect ratio

Sets aspect ratio. It can be omitted when the documented default is suitable.

Default
1
Required
No
Documented values12

a variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

a = 1

Uses 1 for aspect ratio while the other command values stay at representative defaults.

ZPLcaret-bx-a-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,0,0,6,_,1
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

a = 2

Uses 2 for aspect ratio while the other command values stay at representative defaults.

ZPLcaret-bx-a-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BXN,5,200,0,0,6,_,2
^FDZPLR-DATAMATRIX^FS
^FO28,318^A0N,22,22^FDCaret BX parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

Primary source

Official Zebra reference

Use the manufacturer reference for printer- and firmware-specific behavior beyond ZPLr’s pinned rendering profile.

Open Zebra documentation