^BD UPS MaxiCode Bar Code
Prints a UPS MaxiCode symbol, a two-dimensional code developed by UPS and read optically, with no interpretation line; modes 2 and 3 expect a structured message.
^BDm,n,t
^BD parameters
| Parameter | Meaning | Accepted values | Default |
|---|---|---|---|
mmodepp. 106, 108 |
Which MaxiCode mode the symbol uses. The printer does not pick the mode for you from the form of the postal code, according to the guide. |
|
2
|
nsymbol numberp. 106 |
Position of this symbol in a structured sequence of symbols. |
1 to 8; the guide says values can be added in a structured document. |
1
|
ttotal number of symbolsp. 106 |
How many symbols the structured sequence has in total. |
1 to 8, the total number of symbols in the sequence. |
1
|
^BD notes and gotchas
-
Gotcha
Mode 2 is the default. The guide says non-U.S. postal codes sent in mode 2 will probably produce an error message (invalid character or message too short); use mode 3 for them.
p. 108 -
Interaction
p. 106^BYhas no effect on this barcode. The^CVcode-validation command can be activated for it. -
Interaction
For special characters such as GS, RS or EOT, the guide says to use
pp. 108, 193^FHso that ZPL II reads the hexadecimal value that follows the underscore. -
Note
The Format line has no orientation parameter. The code does not generate an interpretation line. The print ratio is listed as fixed.
pp. 106, 1587 -
Note
In modes 2 and 3 the field data has two parts: a high-priority message followed directly by a low-priority message. The guide warns that the high-priority message has to follow the layouts it gives exactly, otherwise an error message results.
pp. 106, 107 -
Note
High-priority message, mode 2 (U.S. style postal code): a 3-digit class of service, a 3-digit country zip code (the guide's label), a 5-digit zip code and a 4-digit zip code extension (four zeros if there is none), all digits.
p. 107 -
Note
High-priority message, mode 3 (non-U.S. style postal code): a 3-digit class of service, a 3-digit country zip code (the guide's label) and a six-digit zip code that the guide says may use the letters A to Z or the digits 0 to 9.
p. 107 -
Note
Low-priority message (modes 2 and 3 only): the guide uses the GS character (0x1D) to separate fields, RS (0x1E) to separate format types and EOT to end the transmission. For UPS use it lists a layout that starts with a message header and a transportation-data format header, then a tracking number and a SCAC (both mandatory), then shipper number, pickup day, shipment ID, package number, weight, address validation, street address, city and state, and ends with RS RS and EOT.
p. 107 -
Note
The high-priority and low-priority formatting applies only in modes 2 and 3. Mode 4, for example, takes whatever data is in the field and places it in the symbol.
p. 107 -
Note
For UPS use, the guide says the data must follow UPS's own rules: use upper-case characters, and follow the sizes and types set out in the UPS guide it names when filling the low-priority fields.
p. 107 -
Guide issue
The introduction says there are no additional parameters for this code, which sits oddly with a Format line that lists three (m, n and t). In mode 3 the layout is written with six c characters, but the description is labeled with five and calls it a six-digit zip code while allowing the letters A to Z; the heading of that table says the values are 0 to 9 except where noted. The word secretary appears in the descriptions of modes 4 and 6 without explanation.
pp. 106, 107
^BD example
^XA ^FO60,40^BD4,1,1^FDPART 4471^FS ^XZ
A MaxiCode symbol in mode 4, which takes the field data as it is. The symbol is symbol 1 of a sequence of 1. Modes 2 and 3 are not used because they need the structured message format.
Guides that use ^BD
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 106 to 108, 167, 193, 1587.
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.