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,zParameters
| Parameter | Description | Values | Default |
|---|---|---|---|
v | Starting value | — | — |
n | Increment/decrement each label | — | — |
z | Leading zeros | Y, N | N |
Example
^XA
^FO50,50^A0N,40,40^SN1000,1,Y^FS
^PQ5
^XZPrints 1000, 1001, 1002, 1003, 1004 across five labels.
Paste this into the free ZPL viewer to see it render, or convert it to PDF.
Related commands
See the full ZPL command reference for all 92 documented commands.
