Conversion de langages d'imprimante
Convert EPL2 to ZPL: modernize legacy label files for current Zebra printers
How to turn EPL2 jobs from LP/TLP printers into ZPL for ZD/ZT series, with command equivalents, a before/after example and a migration checklist.
Cet article est disponible en anglais et en espagnol.
Companies replacing decade-old LP 2844 units with ZD421 or ZT411 printers discover that their ERP has been sending EPL2 for years and nobody kept the original designs. Modern Zebra printers can emulate EPL2, but emulation ignores the new printer's resolution and features; converting to native ZPL is the clean path.
Command equivalents
| Operation | EPL2 | ZPL |
|---|---|---|
| Start / end | N (clear buffer) … P1 (print) | ^XA … ^XZ |
| Label size | q812 Q609,24 | ^PW812 ^LL609 |
| Text | A40,30,0,4,1,1,N,"Hello" | ^FO40,30 ^A0N,36,36 ^FDHello^FS |
| Code 128 | B40,130,0,1,2,4,90,B,"data" | ^BY2 ^BCN,90,Y,N,N ^FDdata^FS |
| QR / 2D | b40,130,Q,m2,s6,"data" | ^BQN,2,6 ^FDQA,data^FS |
| Line / box | LO40,120,300,2 / X40,120,2,340,300 | ^GB300,2,2^FS |
| Copies | P5 | ^PQ5 |
| Darkness / speed | D10 S3 | ^MD10 ^PR3 |
| Orientation | ZT (top) / ZB (bottom) | ^FWN / ^FWR |
What you gain and what to check
- Scalable fonts: EPL2 font 4 ×1 (roughly 24 dots high) becomes ^A0N,24,24 — and now you can pick any size, so this is the moment to fix cramped labels.
- Resolution: LP/TLP were 203 dpi; if the new printer is 300 dpi, scale all coordinates ×1.48 or the label prints at two-thirds size.
- Barcodes: EPL2's B command carried narrow and wide widths inline; in ZPL declare ^BY once and check the ratio (ZPL defaults to 3.0, EPL2 jobs often used 2:4 = 2.0).
- Counters: EPL2 jobs generated by an ERP usually contain the literal serial; in ZPL you can move serialization into ^SN or, better, keep it in the software with a central counter.
Before and after
N q609 Q406,24 A30,20,0,3,1,1,N,"Paracetamol 500 mg" A30,60,0,2,1,1,N,"Lot A2847C Exp 10/2026" B30,100,0,1,2,4,70,B,"7601234567893" P1
^XA ^PW609 ^LL406 ^FO30,20 ^A0N,26,26 ^FDParacetamol 500 mg^FS ^FO30,60 ^A0N,20,20 ^FDLot A2847C Exp 10/2026^FS ^FO30,100 ^BY2,2.0 ^BCN,70,Y,N,N ^FD7601234567893^FS ^PQ1 ^XZ
How EtikStudio does it
Paste the EPL2 stream your ERP produces; the interpreter shows the label visually, including the fields it identifies as variable. Save it as a design, connect the variables to your data, and print ZPL on the new fleet — or keep sending EPL2 to the remaining old units from the same design.
Les exemples de commandes sont simplifiés pour la clarté ; la syntaxe exacte varie selon le modèle et le firmware. Testez toujours sur l'imprimante cible.