beautypg.com

Datamax-O'Neil DPL Programmer’s Manual User Manual

Page 34

background image

System-Level Command Functions


26

STX U

Label Format String Replacement Field

This command places new label data into format fields to build a label. Two options are

available: Exact Length and Truncated Length.

To easily keep track of fields, place all of the fields to be updated with the command at
the beginning of the label format. A maximum of 99 format fields can be updated. Fields

are numbered consecutively 01 to 99 in the order received.

Exact Length Replacement Field Functions – The new data string must equal the

original string length and contain valid data. When the dynamic data is shorter than the
length of the originally defined data field, then field will be padded with blanks (or zero

when the Format Record header specifies a numeric bar code).

Syntax:

Unnss…s

Where:

nn

- Is the format field number, 2 digits.

ss…s

- Is the new string data, followed by a

Exact Length
Sample:

L
1A1100001000100data field 1
161100001100110data field 2
161100001200120data field 3
Q0001
E
U01123
U02New data F2
E0002
G

The sample above produces three labels. The first is formatted
with the commands between L and E. The next two labels
print with the replacement data contained in the U
commands (see E and G). The bar code is the same
length: 3 digits and nine spaces.


Truncated Length Replacement Field Functions – A variant of the U command
includes the truncate option “T”, where dynamic data shorter than the originally defined
field length will not be padded and the original maximum field length is maintained for
subsequent replacements.

Syntax:

UTnnss…s

Where:

nn

- Is the format field number, 2 digits.

T

- Truncate option

ss…s

- Is the new string data, followed by a .

This manual is related to the following products: