^BA Code 93 Barcode
Prints a Code 93 barcode, a variable-length continuous symbology that covers 128 ASCII characters through substitute and paired characters.
^BAo,h,f,g,e
^BA parameters
| Parameter | Meaning | Accepted values | Default |
|---|---|---|---|
oorientationp. 87 |
Direction in which the barcode is rotated. |
|
The current |
hbar code height (in dots)p. 87 |
Height of the bars in dots. |
|
The height set by |
fprint interpretation linep. 87 |
Whether the human-readable text of the data is printed with the barcode. |
|
Y
|
gprint interpretation line above codep. 87 |
Whether the interpretation line is printed above the barcode instead of below it. |
|
N
|
eprint check digitp. 88 |
Whether a check digit is printed. |
|
N
|
^BA notes and gotchas
-
Gotcha
ZPL II does not support ASCII control codes or escape sequences for this code. It uses four substitute characters instead: & for Ctrl $, ' for Ctrl %, ( for Ctrl /, and ) for Ctrl +. The interpretation line is printed as though the real control code had been used.
p. 87 -
Interaction
Field data is limited by
p. 190^FDto 3072 bytes and cannot contain the command prefix characters ^ and ~ directly. -
Note
Code 93 is described as being used in many of the same applications as Code 39. Each character is made of six elements, three bars and three spaces.
p. 87 -
Note
The print ratio is fixed. The field data is limited to the width of the label, or its length if the barcode is rotated.
pp. 87, 1587 -
Note
The character set pictured on page 88 is the digits 0 to 9, the letters A to Z, the characters - . $ / + % & ' ( ) and the space. A separate symbol marks an internal start/stop character that has to precede and follow every message.
p. 88 -
Note
Code 93 can produce the full 128-character ASCII set with paired characters. The guide says control codes are used in pairs, and gives two-column tables of ASCII characters and their Code 93 pairs on page 89.
pp. 88, 89 -
Note
Not stated by the guide: which check-digit scheme the e parameter uses.
p. 88 -
Guide issue
The tables on page 89 end at the character ? (ASCII 63), although page 88 introduces them as the tables for the full ASCII set. The first table also lists FS twice, once with each of two different pairs. The guide does not show the pairs for the characters after ? and does not explain the repeated row.
pp. 88, 89
^BA example
^XA ^FO40,40^BAN,90,Y,N,Y^FDLOT7781^FS ^XZ
A Code 93 barcode of upper-case letters and digits (all in the pictured character set), not rotated and 90 dots high, with the interpretation line below it and the check digit printed.
Guides that use ^BA
BarcoderX is a .NET SDK for thermal labels and barcodes. See the barcode types it covers.
Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 87 to 89, 148, 190, 201, 1587, 1589.
Written by BarcoderX in its own words. Checked against the guide on 2026-11-14.
ZPL and ZPL II are trademarks of Zebra Technologies Corporation. This reference is written by BarcoderX in its own words from Zebra's published programming guide. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.