35
UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1
Chapter 4 Label Design
9. Printable Data
Commands,
cont'd.
Input Data to Image Fields
An image can be selected either by name in plain text (e.g.
"ROM:UBI.1"), or in the form of a variable (e.g.
VAR1$
), (see also
chapter 4.5). Note that plain text input must be enclosed by double
quotation marks.
PRIMAGE | PM <image name>
Examples:
PM VAR5$
↵
PM "LOGO.2"
↵
Input Data from Counters
By means of a
COUNT&
command, various counters can be created
(see chapter 6.6). You can read the present value of a counter and
use it as input data by including a reference to the counter in the
PRTXT
or
PRBAR
commands in the form of a variable.
CNT <Counter No.>$
<Counter No.>
the number assigned to the counter in the
COUNT& command.
Example:
PT "Label number: ";CNT1$
↵
PB CNT2$
↵
Input Data from the Printer's Clock/Calendar
The printer's clock/calendar can be used to provide input data for
text and bar code fields by including any of the following in the
PRTXT
or
PRBAR
commands:
•
DATE$
•
DATE$("F")
•
TIME$
•
TIME$("F")
•
WEEKDAY$
•
WEEKNUMBER
•
DATEADD$
•
TIMEADD$
A real-time clock circuit is an
optional extra on the EasyCoder
301.
If the optional RTC is not fitted,
the date and time will be lost
when the printer is switched off.
Use the
DATE$
and
TIME$
commands to reset the clock and
calendar.