Hi Jose,
I've programmed printed labels on a Zebra printer TLP 2844 using ZPL II
language, and it should be similar.
You'll be able to download the programming guide (reference P1012728-002e)
on Zebra website :
[1]
http://www.zebra.com/id/zebra/na/en/index/resource_library/manuals.results.html
Along with the printer, we got a software called "zebra designer" which
helps drawing the label.
When you're done designing the label, you choose "print" in the file menu,
and check "print in a file".
This generates a .prn file which can be opened with notepad. You'll find
all the necesary code for your data inside,
that you can use to create your PRTF DDS.
The coding at the beginning and end of label is slightly different from
the one you'll have to use in your PRTF.
Example of .prn file generated by zebra designer :
Q815,040
q831
rN
S1
D10
ZT
JB
OD
R8,0
N
A25,38,0,4,1,1,N,"00000 xxxxxxx"
A25,99,0,3,1,1,N,"Exp :"
LO11,64,786,8
A115,98,0,4,1,1,N,"sender name"
A115,129,0,4,1,1,N,"sender adr1"
B129,399,0,3,4,10,80,N,"12345678"
A477,11,0,4,1,1,N,"T'l : 00.00.00.00.00"
A25,11,0,4,1,1,N,"xxxxxxxxxx xxxxx xxxxxx"
P1
And below, an example of the DDS code for the same label. ZLP codes are
handled as constants in the record, separated by "spaceb(1)".
A R LBLFMT
* beginning of label
A 1'q831'
A SKIPB(1)
A 1'rN'
A SPACEB(1)
A 1'S1'
A SPACEB(1)
A 1'D10'
A SPACEB(1)
A 1'ZT'
A SPACEB(1)
A 1'JB'
A SPACEB(1)
A 1'OD'
A SPACEB(1)
A 1'R0,0'
A SPACEB(1)
A 1'.'
A SPACEB(1)
A 1'<enter>'
A SPACEB(1)
A 1'N'
A SPACEB(1)
* header (uses only constants)
A 1'A25,11,0,4,1,1,N,"xxxxxxxxxxx
xxxxx'
A SPACEB(1)
A +0' xxxxxx"'
A 1'A477,11,0,4,1,1,N,"Tel :
02.00.00.'
A SPACEB(1)
A +0'00.00"'
A 1'A25,38,0,4,1,1,N,"00000 xxxxxxx"'
A SPACEB(1)
* draw a line
A 1'LO11,64,786,3'
A SPACEB(1)
* sender address (uses both constants and fields)
A 1'A25,99,0,3,1,1,N,"Exp :"'
A SPACEB(1)
A 1'A115,98,0,4,1,1,N,"'
A SPACEB(1)
A NAME 40 +0
A +0'"'
*
A 1'A115,129,0,4,1,1,N,"'
A SPACEB(1)
A ADR1 40 +0
A +0'"'
* barcode
A 1'B129,399,0,3,4,10,80,N,"'
A SPACEB(1)
A MYBARCODE 8 +0
A +0'"'
A* SPACEB(1)
* end of label : give the printer the order to print the label
A 1'P1'
A SPACEB(1)
A 1'.'
A SPACEB(1)
A 1'<enter>'
A SPACEB(1)
In your RPG program, you just load the fields, and write the PRTF format
as you would for any other PRTF.
You'll find the meaning of the different ZPL codes in the programming
manual.
Hope this helps
Marie-Line
jose luis hernandez wrote:
Hi all,
Has anyone printed labels on a Zebra printer ZM400?
I have read that you have to use the ZPL language, but these codes are not
as implement them.
Currently I have a simple RLU with two fields and a Preformat (with logo),
the fields are numeric and represent a date and a counter.
Any help is welcome.
These are the dds's label:
A R REGSELLO
A SKIPB(001)
A SPACEB(003)
A SPACEA(059)
A PCFECR 8S 0O 60
A EDTWRD(' . . ')
A HIGHLIGHT
A PCRNUM 5S 0O +1
A EDTWRD(' . ')
Cesar de Echagüe
Senior Consultant
--
References
Visible links
1.
http://www.zebra.com/id/zebra/na/en/index/resource_library/manuals.results.html
As an Amazon Associate we earn from qualifying purchases.