User’s Manual1 DATECS LP-1000
30 31
5.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 gen-
erating a text or a barcode.
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 n
ot 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 barcodes.
Setting hour format
The command sets the mode in which the current hour will be gener-
ated by the string.
Format: TTAxByC
Schematically the fields of the hour have been marked
with capital letters. A, B and C can have the following
values which may be employed not more than once.
H: The current hour.
M: The current minute.
S: The current second.
The small letters are used to designate the spaces between the fields.
They are entered immediately after the symbol, which we wish to use.
Example: TTh:m:s
This will generate a string of the type: 15:30:20.