Specifications

Table Of Contents
C Command - Counter
The C command is used in forms that require se
-
quential numbering. When initializing counters,
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.
To print the contents of the counter, the counter
number is referenced in the DATA field of the
A (ASCII text) or B (Bar Code) commands.
If the starting value of a counter is 1", then no lead-
ing zero padding will be added. If the starting value is
01”, then the counter will be padded, up to the
maximum number of digits (p
2
), with zeros. Count-
ers must be defined after variables.
Example:
C0,10,L,+1,"-Enter Serial Number:"¿
By placing two minus signs as the first two char-
acters of the prompt, the prompt will never be
displayed.
Example:
C0,10,L,+1,"- -Enter Serial Number:"¿
To edit or restart a protected consecutive num
-
ber, the KDU’s form edit function must be used.
From the FORM - retrieve form prompt”, perform the
following steps:
1. Press F1.
2. Press 4 9 1 6
3. Press the FORM key.
4. Key in the form name and press ENTER to retrieve.
5. Enter or modify the consecutive number.
6. When complete, print the form to store the new number in memory.
2-12
980009-001 Rev.F
COMMAND REFERENCE