User's Manual
C Command - Counter
TheCcommandisusedinformsthatrequirese
-
quentialnumbering.Wheninitializingcounters,
they must be defined in order (e.g. C0 first, C1
second...).
Field justification (p
3
) affects the printing of
counter data. When L, R or C are selected, the
counter field is the width of p
2
value. Data will
justify within the counter (p
2
) field per the se
-
lected p
3
. The N parameter will print the mini
-
mum number of characters. See programming
example 13 in Appendix H.
Toprintthecontentsofthecounter,thecounter
numberisreferencedinthe“DATA”fieldofthe
A (ASCII text) or B (Bar Code) commands.
If the starting value of a counter is “1", then no lead-
ingzeropaddingwillbeadded.Ifthestartingvalueis
“01”, then the counter will be padded, up to the
maximum number of digits (p
2
), with zeros.
Example:
C0,10,L,+1,"-Enter Serial Number:"¿
Saving and
Protecting
Consecutive
Numbers in
Nonvolatile Memory
Thisfeatureisusefulwhenthecounterfieldrep-
resentsaserialnumber (or otherstypesofnum-
bers) that should never be repeated. This
feature allows for automatic retrieval and incre
-
menting (or decrementing) of the previous
counter value used every time a form is re
-
trieved (and printed).
By placing one minus sign as the first character
oftheprompt,thepromptwillappearonlyonce
after the form is retrieved, thereby protecting
the integrity of the data.
Single Digit
Summation with
Counters
Add or subtract a single digit from the recalled
countervalueinaform.Ifformrecalledcounter
C0 had a value of 3, then processing C0+1
wouldyieldavalueof4andC0-2wouldyielda
value of 1.
3-28
980352-001 Rev.A