^FN Field Number

Field data ZPL caret command

Gives a field a number so that a stored format (^DF) can mark where data goes and a recalling format (^XF) can fill it in.

Format ^FN#"a"

^FN parameters

Parameters of ^FN
ParameterMeaningAccepted valuesDefault
#number to be assigned to the fieldp. 200

The number that identifies the field.

The same number can be stored with several different fields.

0 to 9999

0
"a"optional parameterp. 200

A text prompt, written in double quotes, that is shown on a KDU Plus unit, and in the field prompt of the Print on Label link on the Directory page of ZebraLink-enabled printers.

Optional

FirmwareOnly available on printers with firmware V50.13.2, V53.15.5Z, V60.13.0.1 or later.

Up to 255 alphanumeric characters. The guide lists a-z, A-Z, 1-9 and the space; it does not list 0. The characters must be surrounded by double quotes for the parameter to work as a prompt.

The guide only says the parameter is optional.

^FN notes and gotchas

  • Gotcha

    The guide advises 400 or fewer ^FN fields in one format and says the maximum depends on how much data the fields hold. The amount stored also depends on the printer's available memory.

    p. 200
  • Interaction

    If a format holds a field with both ^FN and ^FD, that data is printed in any other field that carries the same ^FN number.

    p. 200
  • Interaction

    The calling format must contain ^FN commands for the data to merge properly into a recalled format.

    p. 372
  • Interaction

    The guide recommends against using ^FT without x and y together with ^FN. For ^TB it names ^FN, along with ^FO and ^FT, as a command that can supply the block's justification, although the ^FN entry lists no justification parameter.

    pp. 200, 206, 356
  • Note

    In a stored format ^FN stands where ^FD would normally stand. In the format that recalls it, ^FN is used together with ^FD to supply the data for that numbered field.

    pp. 174, 200, 372
  • Note

    Other commands refer to ^FN numbers. ^FE uses them to concatenate fields and extract parts of them, and ^HV returns the data of fields numbered with ^FN to the host. Their entries are on pages 191 and 239.

    pp. 191, 239
  • Note

    The guide's worked example of ^DF and ^XF together is Exercise 6 on page 57, where numbered fields in a stored format are filled by a later format.

    pp. 57, 200

^FN example

example.zplZPL
^XA
^DFR:ITEM.ZPL^FS
^FO40,40^A0N,30,30^FN1^FS
^FO40,90^A0N,30,30^FN2^FS
^FO40,140^A0N,30,30^FN3^FS
^XZ
^XA
^XFR:ITEM.ZPL^FS
^FN1^FDBolt M8^FS
^FN2^FD250 pcs^FS
^FN3^FDShelf C4^FS
^XZ

The first format stores three numbered text fields under the name ITEM.ZPL on drive R:, with no data. The second format recalls it and supplies data for fields 1, 2 and 3 with ^FN and ^FD, each ended by ^FS.

Guides that use ^FN

BarcoderX is a .NET SDK for thermal labels and barcodes. See how it prints and exports labels.

Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 57, 60, 174, 191, 200, 201, 204, 206, 207, 239, 356, 372.

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.