Skip to command documentation
Supportedbarcoderasterfield scope
^BS

UPC/EAN Extensions

^BS configures uPC/EAN Extensions. It applies to the current field and can change pixels in the rendered label.

Syntax
^BSo,h,f,g
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-bs-o-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BSN,100,Y,Y
^FD05^FS
^FO28,318^A0N,22,22^FDCaret BS 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-bs-o-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BSR,100,Y,Y
^FD05^FS
^FO28,318^A0N,22,22^FDCaret BS 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-bs-o-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BSB,100,Y,Y
^FD05^FS
^FO28,318^A0N,22,22^FDCaret BS 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-bs-h-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BSN,100,Y,Y
^FD05^FS
^FO28,318^A0N,22,22^FDCaret BS 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-bs-h-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BSN,1,Y,Y
^FD05^FS
^FO28,318^A0N,22,22^FDCaret BS 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-bs-f-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BSN,100,N,Y
^FD05^FS
^FO28,318^A0N,22,22^FDCaret BS 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-bs-f-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BSN,100,Y,Y
^FD05^FS
^FO28,318^A0N,22,22^FDCaret BS 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
Y
Required
No
Documented valuesYN

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-bs-g-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BSN,100,Y,N
^FD05^FS
^FO28,318^A0N,22,22^FDCaret BS 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-bs-g-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BSN,100,Y,Y
^FD05^FS
^FO28,318^A0N,22,22^FDCaret BS 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.