User’s Manual
29
4.2. Working with variables and counters
Defining a counter
Offers the option to define up to 8 counters, which are whole
digit variables, the values of which change automatically after
printing at a previously set rate. Initialization starts with the
command ‘?’ It is used alone or in combination with other
variables and counters when generating a text or a bar code.
Format:
Ca,b,c[d],e,f
a
Logical number of the counter (0 - 7)
b
Maximum Length (1 - 24)
c
Alignment. Possible values:
N
No alignment. The true length is used.
R
The counter string is right aligned while on the left the
maximum length is set joined by the fill-in symbol.
L
The counter’s string is left aligned while on the right
the maximum length is set joined by the force justify
symbol.
C
The string of the counter is centered while on the left
and right ends to the set length the fill-in symbols are
joined.
d
The additional symbol to the previous argument. If not
entered a space will be included.
e
Growth rate. This is whole digit with a sign; the counter
will automatically change after printing. Possible
values: -100 to +100.
f
Text prompt. This is string closed by inverted commas
not longer than 25 symbols. At the initialization of the
counter the printer will send this text via the serial
port.
Example:
C0,6,R0,+1,”Counter1:”
Defines counter number 0 with a maximum length of 6 bytes,
right aligned with zeros and a rate of +1.
Defining a text variable
Offers the option to define up to 32 variables. Initialization
starts with
“?”.
Used singularly or in combination with other
variables and counters for generating texts or bar- codes.