Fields & Data

^SNSerialization Data

Auto-increments a field across a batch of labels.

Category
Fields & Data
Syntax
^SNv,n,z

What ^SN does

^SN prints a starting value that increases (or decreases) by a set amount on each label in the batch. It's used for sequential serial numbers, carton counts, and tracking IDs without sending each value individually.

Syntax

^SNv,n,z

Parameters

ParameterDescriptionValuesDefault
vStarting value
nIncrement/decrement each label
zLeading zerosY, NN

Example

^XA
^FO50,50^A0N,40,40^SN1000,1,Y^FS
^PQ5
^XZ

Prints 1000, 1001, 1002, 1003, 1004 across five labels.

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

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.