^BF MicroPDF417 Barcode

Barcodes ZPL caret command

Prints a MicroPDF417 barcode, a stacked two-dimensional code like PDF417 but with narrower row address patterns, in one of 34 row-and-column modes.

Format ^BFo,h,m

^BF parameters

Parameters of ^BF
ParameterMeaningAccepted valuesDefault
oorientationp. 111

Direction in which the barcode is rotated.

  • Nnormal
  • Rrotated 90 degrees (clockwise)
  • Iinverted 180 degrees
  • Bread from the bottom up, 270 degrees

The current ^FW value.

hbar code height (in dots)p. 111

Height of the barcode.

1 to 9999 dots

The value set by ^BY, or 10 if no ^BY value exists.

mmodepp. 111 to 113

Selects one of the combinations of data columns and rows listed in Table 5.

Modes 0 to 5 have one data column, 6 to 12 have two, 13 to 22 have three, and 23 to 33 have four.

0 to 33

0 to 33; the modes are listed in Table 5 on pages 112 and 113.

0

^BF notes and gotchas

  • Interaction

    The ^FM entry says ^FM sets several field locations for ^B7 and ^BF when structured append is used, so that text longer than one symbol can be printed as a series such as 1 of 3, 2 of 3 and 3 of 3.

    p. 197
  • Interaction

    Field data is limited by ^FD to 3072 bytes and cannot contain the command prefix characters ^ and ~ directly.

    p. 190
  • Note

    The guide presents the code as a stacked, multi-row two-dimensional symbology that is the same as PDF417 except for its edge patterns: 10-module-wide row address patterns take the place of the 17-module-wide start and stop patterns and of the left and right row indicators. The guide says this narrows the symbol and lets it be scanned linearly at row heights down to 2X.

    p. 111
  • Note

    The guide positions MicroPDF417 for cases where area efficiency matters more than PDF417's top capacity. Only certain row and column combinations can be printed, up to four data columns by 44 rows. The print ratio is fixed.

    pp. 111, 1587
  • Note

    Field data (^FD) and field hexadecimal (^FH) are limited to 250 7-bit characters, 150 8-bit characters or 366 4-bit numeric characters.

    p. 111
  • Note

    To choose a mode the guide gives four steps: decide the type of data, decide the maximum amount of data, decide the percentage of check digits (it says a higher percentage makes the code more resistant to damage but larger), and read the mode from Table 5.

    pp. 111, 112
  • Note

    Table 5, as printed (mode: data columns x data rows, percent of CWS for EC, maximum alpha characters, maximum digits): 0: 1 col x 11 rows, 64% EC, 6 alpha, 8 digits; 1: 1 col x 14 rows, 50% EC, 12 alpha, 17 digits; 2: 1 col x 17 rows, 41% EC, 18 alpha, 26 digits; 3: 1 col x 20 rows, 40% EC, 22 alpha, 32 digits; 4: 1 col x 24 rows, 33% EC, 30 alpha, 44 digits; 5: 1 col x 28 rows, 29% EC, 38 alpha, 55 digits; 6: 2 col x 8 rows, 50% EC, 14 alpha, 20 digits; 7: 2 col x 11 rows, 41% EC, 24 alpha, 35 digits; 8: 2 col x 14 rows, 32% EC, 36 alpha, 52 digits; 9: 2 col x 17 rows, 29% EC, 46 alpha, 67 digits; 10: 2 col x 20 rows, 28% EC, 56 alpha, 82 digits; 11: 2 col x 23 rows, 28% EC, 64 alpha, 93 digits; 12: 2 col x 26 rows, 29% EC, 72 alpha, 105 digits; 13: 3 col x 6 rows, 67% EC, 10 alpha, 14 digits; 14: 3 col x 8 rows, 58% EC, 18 alpha, 26 digits; 15: 3 col x 10 rows, 53% EC, 26 alpha, 38 digits; 16: 3 col x 12 rows, 50% EC, 34 alpha, 49 digits; 17: 3 col x 15 rows, 47% EC, 46 alpha, 67 digits; 18: 3 col x 20 rows, 43% EC, 66 alpha, 96 digits; 19: 3 col x 26 rows, 41% EC, 90 alpha, 132 digits; 20: 3 col x 32 rows, 40% EC, 114 alpha, 167 digits; 21: 3 col x 38 rows, 39% EC, 138 alpha, 202 digits; 22: 3 col x 44 rows, 38% EC, 162 alpha, 237 digits; 23: 4 col x 6 rows, 50% EC, 22 alpha, 32 digits; 24: 4 col x 8 rows, 44% EC, 34 alpha, 49 digits; 25: 4 col x 10 rows, 40% EC, 46 alpha, 67 digits; 26: 4 col x 12 rows, 38% EC, 58 alpha, 85 digits; 27: 4 col x 15 rows, 35% EC, 76 alpha, 111 digits; 28: 4 col x 20 rows, 33% EC, 106 alpha, 155 digits; 29: 4 col x 26 rows, 31% EC, 142 alpha, 208 digits; 30: 4 col x 32 rows, 30% EC, 178 alpha, 261 digits; 31: 4 col x 38 rows, 29% EC, 214 alpha, 313 digits; 32: 4 col x 44 rows, 28% EC, 250 alpha, 366 digits; 33: 4 col x 4 rows, 50% EC, 14 alpha, 20 digits.

    pp. 112, 113
  • Note

    Not stated by the guide: what the table column heading '% of CWS for EC' stands for. The abbreviation is not spelled out; step 3 of the mode selection speaks of a percentage of check digits.

    pp. 111, 112

^BF example

example.zplZPL
^XA
^FO40,40^BFN,12,0^FDABC123^FS
^XZ

A MicroPDF417 barcode in mode 0 (one data column, 11 rows) with 12 dots as the height parameter, not rotated. The six characters of data are within mode 0's limit of 6 alpha characters.

Guides that use ^BF

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 111 to 113, 148, 190, 197, 201, 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.