Example 1B - The Shoe Example With Variables; Bar Code Field - Datamax MP-Compact4 Programmer's Reference Manual

Datamax mp-compact4: reference manual
Hide thumbs Also See for MP-Compact4:
Table of Contents

Advertisement

PROGRAMMER'S REFERENCE MANUAL
Print Example

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 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.
Add text fields to the layout.
Using variable 1 and 2.
Add a barcode field to the layout, also
using variable 1.
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.
clear variable information.
variable 1 is assigned to 62.50 (the price of the shoe)
variable 2 is assigned 42 (the size of the shoe)
print the label
Page 89

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MP-Compact4 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF