Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7  53
Chapter 2 Program Instructions
COUNT&  
Field of Application
 Statement for creating a counter (Intermec Direct Protocol only).
Syntax COUNT& <sexp
1
>,<nexp
1
>,<sexp
2
>
<sexp
1
> is the type of counter parameter to be set:
 START  (start value)
 WIDTH  (minimum number of digits)
 COPY  (number of copies before update)
 INC    (increment/decrement at update)
 STOP   (stop value)
 RESTART  (restart counting at this value)
<nexp
1
>  is the counter reference number (integers only)
<sexp
2
> is the parameter value
Remarks
 This instruction can only be used in the Intermec Direct Protocol.
 The counters can be used in text and bar code fi elds and are global, which 
means that they are not connected to any special label or layout, but 
will be updated at every execution of PRINTFEED statements where 
the counter in question is used.
 Counters are designated using positive integers, for example 1, 2, or 3. When 
used for printing, they are referred to by “CNT<ncon>$” variables, where 
<ncon> is the number of the counter as specifi ed by COUNT&, for example 
CNT5$. A counter variable without a matching counter will be regarded 
as a common string variable.
 The value of the start, stop, and restart parameters decide the  type of 
counter (alpha or numeric). If different types of counter are specifi ed 
in these parameters, the last entered parameter decides the type. Alpha 
counters count A-Z whereas numeric counters use numbers without 
any practical limit.
 Counters are not saved in the printer’s memory, but will have to be recreated 
after each power up. Therefore, it may be wise to save the COUNT& 
statements as a fi le in the host.
 START:
 Decides the fi rst value to be printed. If a single letter is entered (A-Z), the 
counter will become an alpha counter, and if one or several digits are entered 
the counter will be numeric. Numeric values can be positive or negative. 
Negative values are indicated by a leading minus sign. 
 Default: 1 (numeric) or A (alpha)
 WIDTH:
 This parameter can only be used  in numeric counters and decides the 
minimum number of digits to be printed. If the counter value contains a 
lesser number of digits, leading zero (0) characters will be added until 
the specifi ed number of digits is obtained. If the number of digits in the 
counter value is equal to or larger than specifi ed in the width parameter, the 
value will be printed in its entity.
 Default: 1 (no leading zeros)










