Page 280 - ZPL II Programming Guide
P. 280
260 ZPL Commands
^SN
Comments Incrementing and decrementing takes place for each serial-numbered field when
all replicates for each serial number have been printed, as specified in parameter r of the ^PQ
(print quality) command.
If, during the course of printing serialized labels, the printer runs out of either paper or ribbon,
the first label printed (after the media or ribbon has been replaced and calibration completed)
has the same serial number as the partial label printed before the out condition occurred. This
is done in case the last label before the out condition did not fully print. This is controlled by
the ^JZ command.
Using Leading Zeros
In the ^SN command, the z parameter determines if leading zeros are printed or suppressed.
Depending on which value is used (Y = print leading zeros; N = do not print leading zeros),
the printer either prints or suppresses the leading zeros.
The default value for this parameter is N (do not print leading zeros).
Print Leading Zeros
The starting value consists of the right-most consecutive sequence of digits. The width
(number of digits in the sequence) is determined by scanning from right to left until the first
non-digit (space or alpha character) is encountered. To create a specific width, manually place
leading zeros as necessary.
Suppressing Leading Zeros
The starting value consists of the right-most consecutive sequence of digits, including any
leading spaces. The width (number of digits in the sequence) is determined by scanning from
right to left until the first alpha character (except a space) is encountered. To create a specific
width, manually place leading spaces or zeros as necessary. Suppressed zeros are replaced by
spaces. During the serialization process, when the entire number contains all zeros, the last
zero is not suppressed.
The ^SN command replaces the Field Data (^FD) command within a label formatting
program.
45541L-004 Rev. A ZPL II Programming Guide 9/15/06