34
Intermec EasyCoder 301 Direct Protocol 2.0 – Programmer's Guide Ed. 3
Chapter 4 Label Design
Input Data to Text Fields
Input data is inserted into a text field using a
PRTXT
command.
You can add various types of data to a text field:
• Plain text, by typing e.g. "Abcdefgh" or "012345"
• Variable input data, using variables e.g.
VAR1$
• Counter values, e.g.
CNT1$
• Current date, using
DATE$
or
DATE$("F")
• Current time, using
TIME$
or
TIME$("F")
• The weekday of the current or specified date, using
WEEKDAY$
• The number of the current or specified date, using
WEEKNUMBER
• An offset date, using
DATEADD$
or
DATEADD$("F")
• An offset time, using
TIMEADD$
or
TIMEADD$("F")
You can combine different types of data in a single
PRTXT
com-
mand. The different parts are separated by semicolons (;). Note that
plain text must be enclosed by double quotation marks.
PRTXT | PT "<input data>"[;"<input data>"...]
Examples:
PT "Price: $1.99"
↵
PT "Price: ";VAR1$;" per dozen"
↵
PT "Box No. ";CNT15$;" Packed: ";DATE$ ("F")
↵
PT WEEKDAY$(DATE$);", ";DATE$("F")
↵
PT "Week Number ";WEEKNUMBER(DATE$)
↵
PT "Expiry date: ";DATEADD$ (30,"F")
↵
Input Data to Bar Code Fields
Input data is inserted into a bar code field using a
PRBAR
com-
mand. You can add the same types of data to a bar code field as to
a text field, so long as the type of data (e.g. numeric/alphanumeric)
and the number of characters, etc. comply with the bar code speci-
fication.
You can combine different types of data in a single
PRBAR
com-
mand. The different parts are separated by semicolons (;). Note that
alphanumeric input must be enclosed by double quotation marks.
PRBAR | PB <input data>[;<input data>...]
Examples:
PB "71543";VAR5$
↵
PB "Intermec"
↵
PB DATE$;TIME$
↵
9. Printable Data
Commands,
cont'd.