
38
C
Com mand - Counter
The
C
com mand is used in forms that require se -
quential num bering. When initializing coun ters,
they must be de fined in or der (e.g. C0 first, C1
sec ond...).
Field jus ti fi ca tion (
p
3
) af fects the print ing of
counter data. When
L
,
R
or
C
are se lected, the
counter field is the width of
p
2
value. Data will
justify within the coun ter (
p
2
) field per the se -
lected
p
3
. The
N
pa rameter will print the min i-
mum num ber of characters.
To print the con tents of the coun ter, the coun ter
number is ref erenced in the “
DATA
” field of the
A
(ASCII text) or
B
(Bar Code) com mands.
If the start ing value of a coun ter is “
1
“, then no lead-
ing zero padding will be added. If the starting value is
“
01
”, then the counter will be pad ded, up to the
max i mum num ber of dig its (
p
2
), with ze ros.
Example:
C0,10,L,+1,"-En ter Se rial Num ber:"
�
Saving and
Protecting
Consecutive
Numbers in
Nonvolatile Memory
This fea ture is use ful when the coun ter field rep -
resents a se rial num ber (or oth ers types of num -
bers) that should never be repeated. This
feature al lows for au tomatic re trieval and in cre-
ment (or decrement) of the pre vious coun ter
value used ev ery time a form is re trieved (and
printed).
By plac ing one mi nus sign as the first character
of the prompt, the prompt will ap pear only once
after the form is re trieved, thereby pro tecting
the in tegrity of the data.
Single Digit
Summation with
Counters
Add or sub tract a sin gle digit from the re called
counter value in a form. If form re called coun ter
C0
had a value of
3
, then pro cessing
C0+1
would yield a value of
4
and
C0-2
would yield a
value of
1
.
3-38
980352-001 Rev.D
Summary of Contents for LK-B10
Page 2: ......