zpl.tools
Field Commands

^FD - Field Data

Defines the data to be printed in a field

^FD - Field Data

Overview

The ^FD command specifies the actual text or data content that will be printed in a field.

Syntax

^FDdata^FS

Parameters

  • data = Alphanumeric string to be printed
    • Can include special characters and escape sequences
    • Must be terminated with ^FS

Description

  • Contains the actual content to be printed
  • Always followed by ^FS (Field Separator)
  • Supports variable substitution with ^FN/^FV
  • Can include carriage returns and special characters

Usage Notes

  • Must follow field positioning commands (^FO, ^A)
  • ^FS is required to end the field data
  • Data is printed using the currently selected font
  • Special characters may require hex encoding with ^FH

Example

^XA ^FO50,50 ^ADN ^FDHello World^FS ^FO50,100 ^ADN ^FDLine 2^FS ^XZ

Special Characters and Escaping

  • Use _xx for hex characters (with ^FH enabled)
  • Carriage return: _0D
  • Line feed: _0A
  • Underscore: __

Variable Data Example

^FO50,50 ^ADN ^FN1^FD123^FS
  • ^FS - Field Separator (required)
  • ^FO - Field Origin
  • ^FH - Field Hex
  • ^FN - Field Number
  • ^FV - Field Variable

See Also