^SN โ€” Serialization Data: counting labels

ZPL course ยท ZPL FAQ

Command reference: Labelary ZPL introduction.

Below, commands are bold, parameters are colored, field data stays plain.

^SN โ€” Serialization Data: counting labels

Goal

Count labels with serialization data (^SN).

Description

^SN prints a counter: start value, step and leading-zero control. The next label continues the sequence automatically.

Example

^XA
^FO20,20^A0N,32,32^SN100,1,Y^FS
^FX First label prints 100, then 101, 102 and so on.
^XZ

Rendered ^SN label

Result

The first copy prints 100; the printer counts up from there.

Article author: Arthur Isaev