^SN Serialization Data
Prints a number that increments on each label.
Fields and position · Updated 2026-10-20
Syntax
^SNv,n,z
Parameters
| Parameter | What it does | Values |
|---|---|---|
v | Starting value. | Up to 12 digits |
n | Increment or decrement. | default 1 |
z | Add leading zeros. | Y or N; default N |
Example
Edit the code and the label redraws. This is the same engine as the API.
Questions
What does ^SN do in ZPL?
Prints a number that increments on each label.
What is the syntax of ^SN?
^SNv,n,z