P5-20 Mobile Printer CPCLProgramming Manual
COUNT Command
The COUNT command is used for printing multiple labels
where a numeric text field or numeric data encoded in a
bar code is to be incremented or decremented for each
label.  The TEXT/BARCODE command string must con-
tain this numeric data as the last characters of the string.
The numeric data portion can be up to 20 characters, and
can be preceded by the '-' sign.  Counts of 9 ➝ 0 will
wrap to 9.  Counts of 00 ➝ 99 will wrap to 00.  Leading
zeros will be retained.  Up to 3 COUNT commands can
be used in a label file.
The numeric data incremented/decremented is contained
in the TEXT or BARCODE command that immediately
preceded the COUNT command.
Format:
{command} {numeric value}
where:
{command}:
COUNT
{numeric value}:
Any integer value up to 20 charac-
ters.  The value can be preceded
by a '-' sign if decrementing of the
TEXT/BARCODE value is desired.
Leading zeros will be retained in
the output.