Specifications

Table Of Contents
^SN
Serialization Data
Description: The ^SN command allows the printer to index data fields by a selected
increment or decrement value (i.e., make the data fields increase or decrease by a
specified value) each time a label is printed. This can be performed on up to 100 to
150 fields in a given format and can be performed on both alphanumeric and bar
code fields. A maximum of 12 of the rightmost integers are subject to indexing. The
first integer found when scanning from right to left starts the indexing portion of the
data field.
If the alphanumeric field to be indexed ends with an alpha character, the data will be
scanned, character-by-character, from right to left until a numeric character is
encountered. Serialization will take place using the value of the first number found.
Format: ^SNv,n,z
Parameters:
v = starting value
Accepted Values: up to 12 digits for the portion to be indexed.
Default Value: 1
n = increment/decrement value
Accepted Values: 12-digit maximum
Default Value: 1
To indicate a decrement value, precede the value with a minus sign (-).
z = add leading zeros (if needed)
Accepted Values: Y (yes) or N (no)
Default Value: N
ZPL II Programming Guide Volume One: Command Reference for X.10
226