48
UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1
Chapter 6 Setting Up the Printer
You can create counters for use in text and bar code fields (see
chapters 4.3 and 4.4). The counters are global, i.e. the same counter
can be used in many different labels and layouts, but will be
incremented/decremented on any
PRINTFEED
operation, regard-
less of label. Thus, if you want to use a counter for a specific layout
only, you must not use it in any other layout.
Each counter is designated by means of a number. Alpha counters
are restricted to A–Z; numeric counters have no practical limit. The
type of counter is decided by the type of start, stop or reset value.
There are various commands for creating a counter and specifying
its characteristics:
• Start Value
• Number of Digits
• Number of Copies Before Update
• Incrementation/Decrementation
• Stop Value
• Restart Value
Note that input data must be enclosed by double quotation marks.
Start Value
COUNT& "START", <counter number>,"<start value>"
<start value>
is the first value to be printed (positive or
negative). Negative values are indicated by a
leading minus sign (-).
Default:
1 or A
Number of Digits
COUNT& "WIDTH", <counter number>,"<number of digits>"
<number of digits> adds leading zero characters up to the speci-
fied number of digits. Must only be used in
numeric counters.
Default:
1
Number of Copies Before Update
COUNT& "COPY", <counter number>,"<number of copies>"
<number of copies> sets the quantity of copies to be printed be-
fore the counter is incremented or
decremented.
Default:
1
6. Counters