Programmer’s reference manual print example, Index – Datamax-O'Neil Labelpoint Programmer’s Manual User Manual
Page 93

PROGRAMMER’S REFERENCE MANUAL
Print Example
Page 89
Example 1b - The shoe example with variables
!C
!Y24 40
!Y35 1
!Y42 1
!Y102 3
!F T S 450 1000 L 2 1 2 "TESTLABEL"
!F T S 350 1000 L 1 1 2 "PRICE: %1V"
!F T S 300 1000 L 1 1 2 "SIZE: %2V"
!F C S 100 1000 L 150 2 41 "%1V"
!F B S 430 1010 L 80 240 0
Now after we have downloaded the field layout to the printer, we can send the variable
information to the printer.
!R
62.50
42
!P
To print another label with another price
we send another data set for the variables.
!R
78.10
48
!P
Index
clear variable information.
Add text fields to the layout.
Using variable 1 and 2.
variable 1 is assigned to 62.50 (the price of the shoe)
Add a box field to the layout. Note! This
field entierly covers the “testlabel” field, the
result will be a black box with the white
text inside, since the printer uses the XOR
bit manipulation for overlapping fields.
variable 2 is assigned 42 (the size of the shoe)
print the label
Add a barcode field to the layout, also
using variable 1.
Clear layout. Note! If this field is omitted, the new layout fields
will be added the previos layout.
The Y commands are used to change the printers settings,
like label length, current character set.