11
UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1
Chapter 3 Principles of Operation
5. Field-Related
Formatting
Commands,
cont'd.
• Image Field:
- Magnification
- Normal Image/Inverse Image
• Box Field:
- Size (height, width, line thickness)
• Line Field:
- Size (length, line thickness)
Text, bar code and image fields also require some input data:
• Text Field:
Alphanumeric text
• Bar Code Field:
Alphanumeric or numeric value
(depending on type of code)
• Image Field:
Name of the image
The input data to text and bar code fields may either be provided by
the host or read from the printer's software, e.g. counter values or
various data related to the printer's clock/calendar.
In UBI Direct Protocol, you can either specify the fields both with
regard to formatting parameters and input data in the same string,
or you can create a layout to which you can send variable data later.
The layout should contain formatting parameters for all fields and
input data to such fields that will always contain the same informa-
tion. When the variable input data are added, they will be inserted
into their respective fields (like filling in a pre-printed form).
When creating predefined layouts, special commands must be used
for:
• Starting the layout recorder
• Saving the layout
Depending on the type of field and the type of bar code, printable
data to text and bar code fields may consist of:
• Alphanumeric data (i.e. text)
• Numeric data
• Counter values
• Current date
• Current time
• Current date +/- nn days
• Current time +/- nn seconds
• Current week number
• Current weekday
6. Layout
Commands
7.Printable Data
Commands