Datamax E4203 All in One Printer User Manual


 
System-Level Commands
E-Class DPL Programmer’s Manual 21
STX U Label Format String Replacement Field
This command places new label data into format fields to build a label. The new data string must
equal the original string length and contain valid data. 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.
A variant of the <STX>U command includes the truncate option ‘T’, where dynamic data that is
shorter that the originally defined field length will not be padded, and the original maximum field
length is maintained for subsequent replacements. If this option is not used when dynamic data is
shorter than the length of the originally defined data field, the field will be padded with blanks (or
zero when the Format Record header specifies a numeric barcode).
Syntax:
<STX>U[T]nnss…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>
Sample:
<STX>L
161100001000100data field 1<CR>
161100001100110data field 2<CR>
161100001200120data field 3<CR>
Q0001
E
<STX>U01New data F1<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).