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,bParameters
| Parameter | Description | Values | Default |
|---|---|---|---|
a | Mask string (e.g. 'nnnnnnn' for 7 digits) | — | — |
b | Increment/decrement value per label | — | — |
Example
^XA
^FO50,50^A0N,40,40^FD0001^SFnnnn,1^FS
^PQ5
^XZPrints 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.
Related commands
See the full ZPL command reference for all 92 documented commands.
