^BC Code 128 Barcode (Subsets A, B, and C)

Barcodes ZPL caret command

Prints a Code 128 barcode, a variable-length alphanumeric code with three character subsets, from the data of the next field.

Format ^BCo,h,f,g,e,m

^BC parameters

Parameters of ^BC
ParameterMeaningAccepted valuesDefault
oorientationp. 94

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.

hbarcode height (in dots)p. 94

Height of the bars in dots.

1 to 32000 dots

The height set by ^BY.

fprint interpretation linep. 94

Whether the human-readable text of the data is printed with the barcode.

The interpretation line can be printed in any font by putting the font command before the barcode command.
  • Yprint the interpretation line
  • Ndo not print it
Y
gprint interpretation line above codep. 94

Whether the interpretation line is printed above the barcode instead of below it.

  • Yabove the code
  • Nnot above the code
N
eUCC check digitp. 94

Turns the additional UCC (Mod 10) check digit on or off.

A Mod 103 check digit is always part of the code; no parameter turns it on or off. Setting e to Y adds the Mod 10 digit as well, so both appear.
  • Yturn the UCC check digit on
  • Nturn it off
N
mmodepp. 95, 101, 102, 104

How the printer treats the field data: as plain data, as a fixed-length UCC case code, with automatic subset selection, or as UCC/EAN data with application identifiers.

In mode U, when the data has fewer than 19 digits the zeros are added on the right, and the guide says this gives an invalid interpretation line. In mode D the parentheses and spaces in the field data are printed in the interpretation line but left out of the encoded data. The guide's walk-through of its mode D example (the figure itself is an image) says the data ends with a placeholder digit where the printer inserts the check digit.

FirmwareMode D: x.11.x and newer firmware.

  • Nno selected mode
  • UUCC Case Mode: the data is forced to 19 digits (the guide says digits beyond 19 in ^FD or ^SN are eliminated, and a shorter string is padded with zeros on the right)
  • AAutomatic Mode: the printer analyzes the data and picks the packing and subset changes, so the full ASCII character set can be used in ^FD; a string of four or more digits causes a shift to Subset C
  • DUCC/EAN Mode: handles UCC/EAN data with or without chained application identifiers; the code starts in the appropriate subset followed by FNC1; the printer strips parentheses and spaces for encoding but prints them in the interpretation line, decides whether a check digit is needed, calculates and prints it, and sizes the interpretation line automatically
N

^BC notes and gotchas

  • Interaction

    Mode N is not limited to 19 characters, and the check digit can be added with parameter e. Mode U allows exactly 19 characters, selects Subset C with FNC1 automatically and inserts the check digit automatically.

    p. 101
  • Interaction

    To format the interpretation line differently (for example with parentheses and spaces) the guide describes writing it as a separate text field with the barcode's own line turned off; the correct check digit then has to be typed in by hand.

    p. 102
  • Interaction

    Field data is limited by ^FD to 3072 bytes and cannot contain the command prefix characters ^ and ~ directly; ^FH can be used to enter characters by hexadecimal value.

    pp. 190, 193
  • Note

    Code 128 is printed with a fixed print ratio, so the ratio in ^BY has no effect on it.

    pp. 94, 148, 1587
  • Note

    The field data is limited to the width of the label (or its length, if the barcode is rotated).

    p. 94
  • Note

    The character subset is chosen in the field data. A start code at the beginning selects the subset; if none is given, Subset B is used. An invocation code inside the data switches subset and stays in force until another one is given. Start codes: >9 for Subset A, >: for Subset B, >; for Subset C. Switch codes: >5 to Subset C, >6 to Subset B, >7 to Subset A, and >8 for FNC1. The guide recommends writing the invocation code even for Subset B.

    pp. 95, 96, 98, 99
  • Note

    The guide says Subset B can be written directly as ASCII text, except for values greater than 94 decimal and a few special characters that must be sent through invocation codes: ^, > and ~.

    p. 99
  • Note

    Subsets A and C are written as pairs of digits from 00 to 99. A non-digit in the first position of a pair is ignored; a non-digit in the second position makes the whole pair ignored; an unpaired extra digit just before a code shift is also ignored.

    p. 99
  • Note

    UCC/EAN-128 data always carries an FNC1 character after the start character. With chained application identifiers, FNC1 (written >8) is inserted just before the identifiers. The guide's mode A and mode U examples chain identifiers this way and carry the data without parentheses; its mode D example writes the identifiers in parentheses and also separates them with >8.

    Firmware: Chaining several application identifiers: firmware x.11.x or later. pp. 100, 101, 104, 105
  • Note

    The application identifier table (Table 4) is described as partial. It lists the identifier prefix, the content and the data structure that follows each one.

    pp. 103, 104
Where the guide contradicts itself (4)
  • Guide issue

    Page 99 says Subsets A and C are programmed as digit pairs 00 to 99 and that in Subset A each pair gives one encoded character, while in Subset C characters are printed as entered. It does not say which character a given pair gives in Subset A, and its Subset A example is a figure only. Table 3 (pages 96 to 98) lists values 0 to 105 against the characters of each subset, but the guide does not state in words how a digit pair relates to that table. This is an unclear passage rather than a proven contradiction.

    pp. 96 to 99
  • Guide issue

    Table 2 (page 96) leaves the characters behind three invocation codes unclear. The row for >< (decimal 62) shows no character in any subset column, the row for >0 (30) shows > in the Subset A and B columns, and the row for >= (94) shows ~ in the Subset B column only. Page 99 names ^, > and ~ as the characters that need invocation codes but does not say in words which code gives which. The table also prints USQ for decimal 95 in the Subset A column where Table 3 (page 97) shows US, and prints Stat CodeC in the start-code row.

    pp. 96, 97, 99
  • Guide issue

    On page 102 the section about formatting the interpretation line with a separate text field says it applies to firmware later than x.10.x, while the figure caption in the same section says Firmware Older Than X.10.X. The earlier paragraph on the same page refers to x.11.x or later.

    p. 102
  • Guide issue

    The mode D example on pages 104 and 105 is headed with an asterisk (D*) that the guide does not explain.

    pp. 104, 105

^BC example

example.zplZPL
^XA
^FO40,40^BCN,90,Y,N,N^FD>:PART4471^FS
^XZ

A Code 128 barcode at 40 dots from the left and 40 dots down, not rotated and 90 dots high, with the interpretation line printed below it and no UCC check digit. The data starts with the >: start code, which selects Subset B explicitly.

Guides that use ^BC

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 68, 70, 94 to 105, 148, 167, 190, 193, 208, 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.