Skip to command documentation
Supportedbarcoderasterfield scope
^BK

ANSI Codabar Bar Code

^BK configures aNSI Codabar Bar Code. It applies to the current field and can change pixels in the rendered label.

Syntax
^BKo,e,h,f,g,k,l
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-bk-o-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,N,60,N,N,A,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK 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-bk-o-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKR,N,60,N,N,A,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK 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-bk-o-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKB,N,60,N,N,A,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
e

Check digit

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

Required
No
Documented values0

e variations

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

Side-by-side comparison2 variations

e = 0

Uses 0 for check digit while the other command values stay at representative defaults.

ZPLcaret-bk-e-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,0,60,N,N,A,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

e = 1

Uses 1 for check digit while the other command values stay at representative defaults.

ZPLcaret-bk-e-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,1,60,N,N,A,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
h

Barcode height (in dots)

Sets barcode height (in dots). It can be omitted when the documented default is suitable.

Default
value set by ^BY
Range
1–32000
Required
No
Documented values100132000

h variations

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

Side-by-side comparison2 variations

h = 100

Uses 100 for barcode height (in dots) while the other command values stay at representative defaults.

ZPLcaret-bk-h-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,N,100,N,N,A,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

h = 1

Uses 1 for barcode height (in dots) while the other command values stay at representative defaults.

ZPLcaret-bk-h-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,N,1,N,N,A,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK 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
Y
Required
No
Documented valuesYN

f variations

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

Side-by-side comparison2 variations

f = N

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

ZPLcaret-bk-f-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,N,60,N,N,A,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

f = Y

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

ZPLcaret-bk-f-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,N,60,Y,N,A,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
g

Print interpretation line above code

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

Default
N
Required
No
Documented valuesNY

g variations

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

Side-by-side comparison2 variations

g = N

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

ZPLcaret-bk-g-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,N,60,N,N,A,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

g = Y

Uses Y for print interpretation line above code while the other command values stay at representative defaults.

ZPLcaret-bk-g-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,N,60,N,Y,A,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
k

Designates a start character

Sets designates a start character. It can be omitted when the documented default is suitable.

Default
A
Required
No
Documented valuesABCD

k variations

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

Side-by-side comparison3 variations

k = A

Uses A for designates a start character while the other command values stay at representative defaults.

ZPLcaret-bk-k-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,N,60,N,N,A,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

k = B

Uses B for designates a start character while the other command values stay at representative defaults.

ZPLcaret-bk-k-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,N,60,N,N,B,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

k = D

Uses D for designates a start character while the other command values stay at representative defaults.

ZPLcaret-bk-k-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,N,60,N,N,D,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
l

Designates stop character

Sets designates stop character. It can be omitted when the documented default is suitable.

Default
A
Required
No
Documented valuesABCD

l variations

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

Side-by-side comparison3 variations

l = A

Uses A for designates stop character while the other command values stay at representative defaults.

ZPLcaret-bk-l-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,N,60,N,N,A,A
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

l = B

Uses B for designates stop character while the other command values stay at representative defaults.

ZPLcaret-bk-l-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,N,60,N,N,A,B
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

l = D

Uses D for designates stop character while the other command values stay at representative defaults.

ZPLcaret-bk-l-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BKN,N,60,N,N,A,D
^FD123456^FS
^FO28,318^A0N,22,22^FDCaret BK 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