Creating and storing a variable label format in printer memory.
All Zebra Barcode Printers and ZebraDesigner Software.
Available memory on printer for format to be stored.
Zebra's line of Desktop, Mobile, and Tabletop printers can have a label template (or label format) stored to printer memory, which can then be recalled and printed repeatedly with variable data. This feature allows an end-user to design a label one time and print it repeatedly with different data to populate the label fields. Here we explain how to store such a format with ZebraDesigner and recall it with ZPL or CPCL printer language commands.
1. Design the Format in ZebraDesigner
Open up ZebraDesigner and create a new label. You will be asked to associate your newly created label with a printer. Assuming that the ZebraDesigner driver is installed, select your printer. For our example, we will proceed with an MZ 320 as our printer.
At this point, ZebraDesigner will ask for you to configure your label to your liking. This will include properties such as label margins, orientation, etc. Once completed, you will have a blank canvas on which to draw. Insert a text field by clicking on the 'Text' option on the far left. Use the text tool to draw a text field to the label, and when prompted, chose 'variable text' as the type:
Select 'Keyboard input' and choose next.
Give the field a name. For our example, we call it "Field1".
At this point, you can optionally include prefix or suffix data. For our sample, we will leave this blank and instead hit finish. In this same manner, we create two more dynamic text fields on our canvas. We also insert a static text field towards the top of our label that says "Test Label".
2. Save the template to the printer
First, we save the ZebraDesigner project to our computer. To do so, hit File > Save, and select a location and file name. To save the template to the printer, simply choose the file menu and select 'Export to printer'. This causes the label that we have designed to be stored to the printer's memory, making it available for recall later. The format will be stored with the same name as the ZebraDesigner file name. In our case, the format will be stored to our MZ 320 as "Label1.fmt' since our ZebraDesigner file is called "Label1',
3. Recall the template with printer language commands
Depending on your printer model, you may have to recall the format with ZPL or CPCL. Here we demonstrate the means of recalling the label format for printing with both ZPL and CPCL. We will use Zebra Setup Utilities, available for free on Zebra.com (see Helpful Information for download), to send the printer language commands.
Open up Zebra Setup Utilities and select your printer. Next, select 'Open Communication With Printer':
We check to make sure that out format has been stored to the printer by sending the following command:
! U1 getvar "file.dir"
This command is case-sensitive and must end up with a carriage return. Click 'Send to printer" to see the files stored to our printer. You should see a format corresponding to the file that you create in ZebraDesigner.
Now we can recall the format for printing by sending the following stream of data. For our example, send the following CPCL commands to the printer. You can reference the CPCL commands in the CPCL manual, which is available here: Read More>>
If you are using a ZPL printer, you can alternatively use the following ZPL to recall the format:
^FN11^FDThis is line 1^FS
^FN12^FDThis is a number: 333333^FS
Sending the CPCL or ZPL commands should result in a valid print-out, with the sent printer language data populating the label:
For further details Read More>>
ZPL Programming Manual Read More>>