Using Option 21 (Define Extended Field Names); Using Option 30 (Pad Data); Sample Use For Padding - Avery Dennison ADTP1 Reference Manual

Monarch tabletop printer 1
Hide thumbs Also See for ADTP1:
Table of Contents

Advertisement

U s i n g O p t i o n 2 1 ( D e f i n e E x t e n d e d F i e l d N a m e s )
This option defines names for each field in a format, which can be longer than eight characters.
This option is only available on the XML-enabled printer.
Syntax
R,21,"field_name" |
R1. R
R2. 21
R3. "field_name"
Example
T,2,10,v,250,50,0,1,1,1,B,C,0,0,0 |
R,21,"SALEPRICE_FIELD" |
Defines the name for text field 2 as "SALEPRICE_FIELD."
U s i n g O p t i o n 3 0 ( P a d D a t a )
Add characters to one side of a field to "pad" the field. Padding fills in the remaining spaces when
entered data does not fill an entire field. If a variable length field is not completely filled with
batch data, this option fills the remaining positions in the field with the character designated by
Option 30.
Note:
Option 30 can be applied to an RFID Data Field.
Syntax
R,30,L/R,"character" |
R1. R
R2. 30
R3. L/R
R4. "character"
Example
R,30,L,"X" |
Pads data with an "X" on the left side of the field.
Example
X,2,24,0 |
R,30,R,"0" |
Pads the data in the RFID Data Field with a "0" on the right side of the data. This example uses
a 96-bit RFID inlay.

Sample Use for Padding

Use pad characters to make a variable length bar code occupy a fixed amount of space on the
supply. If the maximum number of characters in the bar code is 15, but the batch packet only has
10 characters, the padding option fills the remainder of the field with pad characters.
4-8 Packet Reference Manual
Option Header.
Option 21.
Specifies the field name. Must be enclosed within quotations.
The name can be
1 to 256 characters, excluding non-printable control characters
and the quotation mark ("). "" is the default. This name must
match the one specified in the variable name attribute.
Option Header.
Option 30.
Indicates type of padding. R is the default.
L
Pad field on left side
R
Pad field on right side
Pad character must be within the 0 to 255 decimal range and
enclosed inside quotation marks. "0" is the default. The pad
character must be in ASCII Hex format. Do not use on fixed
length fields.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents