Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4220
  • Last Modified:

ZPL syntax and Barcoding

I have a Zebra Z4mPlus printer and am trying to create Bar Coded Labels from my VB6 Application

I inherited some code (from a previous contractor) that never made it to production, but works well in my test environment and successfully prints a dummied up label, however I don't understand what it doing as I am a total newby to ZPL & barcoding.

I am trying to make sence of the ZPL sent to the printer, as I need to expand on the functionality and release it to production asap. I should mention that I also have the BAR-ONE barcoding software that came with the printer, however cannot get that to output the ZPL code for the labels I have designed or send them successfully to the printer.

I have spent nearly an entire day trying to gather information on ZPL syntax but have not had any luck.....even the Vendor's site doesn't tell me much.

Can anyone explain the following (shortened) syntax to me?  ie: which parts are font settings and which are grid co-ordinates of where to print text and or lines.....OR how to get the BAR-ONE software to produce the ZPL code for me?

Basically this code prints a label with a box a few millimetres from the margin, split by a line in the middle with "THIS IS A TEST" printed in the lower right hand corner.

Printer.Print "^XA"
Printer.Print "^MCY"
Printer.Print "^XZ"
Printer.Print "^XA"
Printer.Print "^FWN^CFD,24^PW807^LH0,0"
Printer.Print "^CI0^PR2^MNY^MTD^MMT^MD0^PON^PMN^LRN"
Printer.Print "^XZ"
Printer.Print "^XA"
Printer.Print "^MCY"
Printer.Print "^XZ"
Printer.Print "^XA"
Printer.Print "^DFR:TEMP_FMT.ZPL"
Printer.Print "^LRN"
Printer.Print "^FO24,24^GB760,1144,1,B,0^FS"
Printer.Print "^A0R,39,40^FO57,839^FDTHIS IS A TEST^FS"
Printer.Print "^FO361,24^GB1,1142,1,B,0^FS"
Printer.Print "^XZ"
Printer.Print "^XA"
Printer.Print "^XFR:TEMP_FMT.ZPL"
Printer.Print "^PQ1,0,1,Y"
Printer.Print "^XZ"
Printer.Print "^XA"
Printer.Print "^IDR:TEMP_FMT.ZPL"
Printer.Print "^XZ"

Printer.EndDoc

Any help would be very much appreciated.
0
mah8473
Asked:
mah8473
  • 2
1 Solution
 
WelkinMazeCommented:
Hi,
Here is something that will help you:
http://www.servopack.de/Files/HB/ZPLbasics.pdf
There is a list of commands also at the bottom so you can see what they mean in your code.
0
 
mah8473Author Commented:
AWESOME!!!!!!!!!!!!!!!!!!!!

That is EXACTLY what I was looking for.

THANK-YOU, THANK-YOU, THANK-YOU and THANK-YOU SOME MORE :)
0
 
WelkinMazeCommented:
:) I'm glad I've helped you. :)
0
 
bionictikiCommented:
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now