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.
LVL 5
mah8473Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mah8473Author Commented:
AWESOME!!!!!!!!!!!!!!!!!!!!

That is EXACTLY what I was looking for.

THANK-YOU, THANK-YOU, THANK-YOU and THANK-YOU SOME MORE :)
WelkinMazeCommented:
:) I'm glad I've helped you. :)
bionictikiCommented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.