33
UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1
Chapter 4 Label Design
9. Printable Data
Commands
Select a Layout
Before any variable data can be transmitted to a preprogrammed
layout, the layout must be selected by means of a
LAYOUT RUN
command.
LAYOUT RUN "<layout name>"
<layout name>
the name given to the layout in the LAYOUT
INPUT command and must be enclosed by
double quotation marks.
Example:
LAYOUT RUN "Shipping Label"
↵
Transmit Variable Data to a Layout
After having selecting a layout using a
LAYOUT RUN
command,
you can transmit the variable data to their respective layout fields:
• The transmission starts with a start-of-text separator.
• Then comes a block of data to the field containing
VAR1$
.
• A field separator separates the blocks of data.
• Next block goes to the field containing
VAR2$
.
• A field separator separates the blocks of data and so on.
• The last block must also end with a field separator.
• The end of transmission is indicated by an End-of text separator.
By default, the following separators should be used:
• Start separator:
STX
(ASCII 02 dec)
• Field separator:
CR
(ASCII 13 dec)
• End separator:
EOT
(ASCII 04 dec)
All separators can be changed by means of
INPUT ON/OFF
and a
FORMAT INPUT
command, see chapter 6.5.
<STX> <Input data to VAR1$> <CR> <Input data to VAR2$> <CR>.....<EOT>
Input data must not be enclosed by double quotation marks.
Example:
LAYOUT RUN "Shipping Label"
↵
<STX> Abcdefg <CR>123456789 <CR> <EOT>
INPUT
ON
is the default, so there
is no need to issue the command
before using
LAYOUT
RUN
.