Stx u label format string replacement field – Datamax-O'Neil Class Series Programmer’s Manual User Manual

Page 42

Advertising
background image

System-Level Command Functions







Class Series Programmer’s Manual

28

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:

<STX>Unnss…s<CR>

Where:

nn

- Is the format field number, 2 digits.

ss…s

- Is the new string data, followed by a <CR>

Exact Length Sample: <STX>L

1A1100001000100DATA FIELD 1<CR>
161100001100110data field 2<CR>
161100001200120data field 3<CR>
Q0001
E
<STX>U01123<CR>
<STX>U02New data F2<CR>
<STX>E0002
<STX>G

The sample produces three labels. The first is formatted with the commands between <STX>L and
E

. The next two labels print with the replacement data contained in the <STX>U commands (see

<STX>E

and <STX>G). The bar code is the same length: 3 digits and nine spaces.



Truncated Length Replacement Field Functions – A variant of the <STX>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:

<STX>UTnnss…s<CR>

Where:

nn

- Is the format field number, 2 digits.

T

- Truncate

option

ss…s

- Is the new string data, followed by a <CR>

Advertising