Conversão de linguagens de impressora
Convert ZPL to DPL: printing Zebra-designed labels on Datamax-O'Neil / Honeywell printers
ZPL to Datamax DPL equivalents, how named ZPL parameters become fixed-width DPL records, unit conversion, a worked example and what to verify on I-Class, M-Class and Honeywell PC/PM printers in DPL mode.
Este artigo está disponível em inglês e espanhol.
The forward direction appears when a corporate label library lives in ZPL but a plant still runs Datamax I-Class or M-Class units, or Honeywell PC/PM printers configured in DPL mode. Rather than replacing hardware that works, the label is translated. DPL's record format means the translator must compute positions in hundredths of an inch and pack every field into its fixed columns.
Command equivalents
| Operation | ZPL (Zebra) | DPL (Datamax-O'Neil) |
|---|---|---|
| Start / end | ^XA … ^XZ | <STX>L … E (L opens the format, E prints it) |
| Units | dots | <STX>n = inches (1/100 in), <STX>m = metric (1/10 mm) |
| Text | ^FO40,30 ^A0N,36,36 ^FDHello^FS | Record: rotation, font, width×, height×, size, row, column, data → 1911A030050 0020Hello |
| Code 128 | ^BY2 ^BCN,90,Y,N,N ^FDdata^FS | Record: rotation, symbology E, wide, narrow, height, row, column, data → 1E2209000650020data |
| Lines / boxes | ^GB300,2,2^FS | Record type X with l (line) or b (box) and dimensions |
| Copies | ^PQ5 | Q0005 inside the format |
| Darkness / speed | ^MD10 ^PR4 | H15 (heat) / P (speed) records |
What actually changes
- Named parameters become positions in a record: a mistake of one character shifts every following field. Generate records programmatically; never hand-edit.
- Coordinates: dots → hundredths of an inch (÷2.03 at 203 dpi) with row before column.
- Scalable text: ZPL ^A0 at 36 dots ≈ DPL font 9 with a smooth font code and a point size; sizes round to what the printer has loaded.
- Human-readable text under barcodes is selected by the symbology letter case in DPL (uppercase with text, lowercase without), not by a separate flag.
- Printer-side defaults: heat and speed persist between jobs on Datamax units; send H and P explicitly so a job printed after someone else's does not come out faint.
Before and after (simplified)
^XA ^PW812 ^LL609 ^FO40,101 ^A0N,36,36 ^FDSafety Harness^FS ^FO40,132 ^BY2 ^BCN,90,Y,N,N ^FD7501234567893^FS ^PQ1 ^XZ
<STX>n <STX>L H15 D11 1911A030050 0020Safety Harness 1E2209000650020 7501234567893 Q0001 E
How EtikStudio does it
Select a Datamax/Honeywell DPL profile and export: EtikStudio computes the record columns, converts units to the printer's mode, selects the nearest font and packs heat, speed and quantity into the job. The ZPL version of the same design keeps serving the Zebra printers.
Os exemplos de comandos são simplificados para clareza; a sintaxe exata varia por modelo e firmware. Sempre teste na impressora de destino.