^DF Download Format

Images, graphics and stored formats ZPL caret command

Stores the ZPL commands that follow it, as text, under a name in printer memory, so that ^XF can recall the format later and merge variable data into it.

Format ^DFd:o.x

^DF parameters

Parameters of ^DF
ParameterMeaningAccepted valuesDefault
ddevice to store the imagep. 174

The drive the format is stored on.

  • R:drive R:
  • E:drive E:
  • B:drive B:
  • A:drive A:
R:
oimage namepp. 58, 174

The name the format is stored under.

The tutorial pages say that a file name on the printer drives may contain only the characters shown in a chart there, and that the command and control prefix characters (normally ^ and ~) cannot be used unless they were changed with ^CC or ~CC.

1 to 16 alphanumeric characters, with a file type of 1 to 3 alphanumeric characters, separated by a period.

UNKNOWN

Used when no name is specified.

xextensionp. 174

The file type of the stored format.

  • .ZPLstored format

The guide gives .ZPL as the format of the extension.

Not stated in the guide.

^DF notes and gotchas

  • Gotcha

    ^DF is entered immediately after ^XA, and the commands to be saved follow it. The stored text is formatted when it is printed, so a stored format cuts transmission time but saves no formatting time.

    p. 174
  • Interaction

    A stored format is recalled with ^XF, from the same drive and under the same name. Fields that vary are marked with ^FN in the stored format, and the recalling format provides their data with ^FN and ^FD.

    pp. 174, 200, 372
  • Note

    ^DF saves ZPL II commands as text strings, to be merged with variable data later through ^XF. The stored format can contain ^FN commands as markers to fill in on recall.

    p. 174
  • Note

    The tutorial compares the pair with ^IS and ^IL, and says ^IS and ^IL process faster in the printer than ^DF and ^XF.

    p. 57
  • Note

    The guide's example stores a format with numbered text fields in one format and, in a second format, recalls it and supplies data for one of the fields. A worked version with a form layout is Exercise 6 on page 57. A separate command, ^HF, returns stored formats to the host (page 220).

    pp. 57, 174, 220
  • Guide issue

    The ^DF entry gives the extension as .ZPL, but the tutorial's Exercise 6 stores and recalls its format under a name ending in .GRF with ^DF and ^XF. The ^DF and ^XF entries both give .ZPL.

    pp. 57, 174, 372
  • Guide issue

    The ^DF entry allows a name of 1 to 16 alphanumeric characters, while the ^XF entry allows 1 to 8 for the name of the stored image it recalls. The guide does not explain the difference or say which limit applies to a name that is stored and then recalled.

    pp. 174, 372

^DF example

example.zplZPL
^XA
^DFR:TAG.ZPL^FS
^FO40,40^A0N,30,30^FN1^FS
^FO40,90^A0N,30,30^FN2^FS
^XZ

^DF directly after ^XA stores the rest of the format under the name TAG.ZPL on drive R:. The two text fields are numbered with ^FN and hold no data yet; a later format can recall TAG.ZPL with ^XF and supply data for fields 1 and 2.

Guides that use ^DF

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 56 to 58, 60, 174, 200, 201, 204, 220, 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.