Fields & Data

^SFSerialization Field

Auto-increments a field by a mask and step on each label.

Category
Fields & Data
Syntax
^SFa,b

What ^SF does

^SF serialises the ^FD data that precedes it, advancing letters or digits by a defined increment on every label in the batch. The mask string controls which characters change and how.

Syntax

^SFa,b

Parameters

ParameterDescriptionValuesDefault
aMask string (e.g. 'nnnnnnn' for 7 digits)
bIncrement/decrement value per label

Example

^XA
^FO50,50^A0N,40,40^FD0001^SFnnnn,1^FS
^PQ5
^XZ

Prints 0001, 0002, … 0005 across the batch.

Paste this into the free ZPL viewer to see it render, or convert it to PDF.

Notes & tips

  • Combine with ^PQ to print a numbered range.
  • The mask defines which positions serialise.

See the full ZPL command reference for all 92 documented commands.

Work with your labels, not just read about them

Zentralabel converts, previews, validates, and enriches ZPL labels right in your browser — free tools for one-offs, batch processing for scale.