Datamax-O'Neil Class Series Programmer’s Manual User Manual

Page 137

Advertising
background image

Label Formatting Command Functions






Class Series Programmer’s Manual

123

+ (>)(()

Make Last Field Entered Increment Numeric (Alphanumeric)
(Hexadecimal)

This command, useful in printing sequenced labels, causes the printer to automatically increment a
field on the labels in a batch. The numeric data in the field will increment by the value assigned after
the plus sign (+) each time a label is produced (or the greater than symbol [>] can be substituted to
make the field increment alphabetically,

or the left parenthesis [(] can be substituted to make the field

increment hexadecimal data*). This command is effective only on the label format record that it
follows, and is intended to be used with the Q, <STX>E, or <STX>G commands.

Syntax:

*pii

Where:

*

-

Is + for numeric increment, > for alphanumeric increment, or
(for hexadecimal increment.

p

-

Is the fill character for the left-hand character of the field.

ii

-

Is the amount by which to increment the field.

Sample:

<STX>L<CR>
13220000000000012345<CR>
+01<CR>
Q0003<CR>
E<CR>

The sample will generate a single field label format that prints the initial label with a value of 12345,
and then increments that number by one for the next two labels.



Embedding

Numeric strings for incrementing may also be embedded between alphabetic characters (e.g., when
systems require alphanumeric bar codes with alphabetic prefixes or suffixes).

Sample:

<STX>L<CR>
161100000100010AB0001CD<CR>
+ 100<CR>
Q0003<CR>
E<CR>

The sample will print three labels, incrementing 0001 by 1 on each label with AB and CD remaining
untouched: AB0001CD, AB0002CD, AB0003CD. Note that the increment value has one leading
blank and two trailing zeros, while the blank is a pad character and the trailing zeroes are
placeholders that leave CD unchanged.



* Valid hexadecimal data is 0-9 or A-F, usually in pairs.

Advertising