Skip to command documentation
Supportedbarcoderasterfield scope
^B4

Code 49 Barcode

^B4 configures code 49 Barcode. It applies to the current field and can change pixels in the rendered label.

Syntax
^B4o,h,f,m
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-b4-o-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^B4N,8,N,A
^FDCODE49^FS
^FO28,318^A0N,22,22^FDCaret B4 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-b4-o-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^B4R,8,N,A
^FDCODE49^FS
^FO28,318^A0N,22,22^FDCaret B4 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-b4-o-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^B4B,8,N,A
^FDCODE49^FS
^FO28,318^A0N,22,22^FDCaret B4 parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
h

Height multiplier of individual rows

Sets height multiplier of individual rows. It can be omitted when the documented default is suitable.

Default
value set by ^BY This number multiplied by the module equals the height of the individual rows in do
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 height multiplier of individual rows while the other command values stay at representative defaults.

ZPLcaret-b4-h-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^B4N,0,N,A
^FDCODE49^FS
^FO28,318^A0N,22,22^FDCaret B4 parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

h = 1

Uses 1 for height multiplier of individual rows while the other command values stay at representative defaults.

ZPLcaret-b4-h-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^B4N,1,N,A
^FDCODE49^FS
^FO28,318^A0N,22,22^FDCaret B4 parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
f

Print interpretation line

Sets print interpretation line. It can be omitted when the documented default is suitable.

Default
N When the field data exceeds two rows, expect the interpretation line to extend beyond the right ed
Required
No
Documented valuesNAB

f variations

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

Side-by-side comparison3 variations

f = N

Uses N for print interpretation line while the other command values stay at representative defaults.

ZPLcaret-b4-f-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^B4N,8,N,A
^FDCODE49^FS
^FO28,318^A0N,22,22^FDCaret B4 parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

f = A

Uses A for print interpretation line while the other command values stay at representative defaults.

ZPLcaret-b4-f-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^B4N,8,A,A
^FDCODE49^FS
^FO28,318^A0N,22,22^FDCaret B4 parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

f = B

Uses B for print interpretation line while the other command values stay at representative defaults.

ZPLcaret-b4-f-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^B4N,8,B,A
^FDCODE49^FS
^FO28,318^A0N,22,22^FDCaret B4 parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
m

Starting mode

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

Default
A
Required
No
Documented valuesA012345

m variations

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

Side-by-side comparison3 variations

m = 0

Uses 0 for starting mode while the other command values stay at representative defaults.

ZPLcaret-b4-m-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^B4N,8,N,0
^FDCODE49^FS
^FO28,318^A0N,22,22^FDCaret B4 parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

m = 1

Uses 1 for starting mode while the other command values stay at representative defaults.

ZPLcaret-b4-m-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^B4N,8,N,1
^FDCODE49^FS
^FO28,318^A0N,22,22^FDCaret B4 parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

m = A

Uses A for starting mode while the other command values stay at representative defaults.

ZPLcaret-b4-m-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^B4N,8,N,A
^FDCODE49^FS
^FO28,318^A0N,22,22^FDCaret B4 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

ZPLr Command Reference

Independent documentation for the pinned ZPL II 2025 renderer profile. Examples run locally in your browser.

ZPL, ZPL II, Zebra, and Zebra Programming Language are trademarks or registered trademarks of Zebra Technologies Corp. ZPLr is independent and is not affiliated with or endorsed by Zebra Technologies Corp.