EtikStudio

Konvertierung von Druckersprachen

Convert TSPL to ZPL: command equivalents and migration guide (TSC → Zebra)

How TSPL commands translate to ZPL, the traps in units, fonts and barcode widths, a real before/after label, and how to bring a TSC label library to Zebra printers.

Dieser Artikel ist auf Englisch und Spanisch verfügbar.

The reverse migration happens when a company standardizes on Zebra for its industrial lines, inherits TSC labels from an acquisition, or must deliver ZPL because a customer's WMS sends it straight to the printer. TSPL is a friendlier language to read, so the translation to ZPL is mostly about respecting ZPL's stricter structure: everything inside ^XA…^XZ, every field opened with ^FO and closed with ^FS.

Command equivalents

OperationTSPL (TSC)ZPL (Zebra)
Start / end of labelCLS … PRINT 1^XA … ^XZ
Label sizeSIZE 100 mm,75 mm GAP 3 mm,0^PW800 ^LL600 (dots)
Field positionFirst two parameters of TEXT/BARCODE (x,y in dots)^FO50,40 (x,y in dots)
TextTEXT 50,40,"0",0,12,12,"Hello"^A0N,40,40 ^FDHello^FS
Code 128BARCODE 50,150,"128",80,1,0,2,4,"12345"^BY2 ^BCN,80,Y,N,N ^FD12345^FS
QR codeQRCODE 400,150,M,6,A,0,"data"^BQN,2,6 ^FDQA,data^FS
Data MatrixDMATRIX 400,150,120,120,"data"^BXN,6,200 ^FDdata^FS
Box / lineBOX x,y,xend,yend,2 / BAR x,y,w,h^GB300,2,2^FS
CopiesPRINT 10,1^PQ10
Darkness / speedDENSITY 10 SPEED 4^MD15 ^PR4

What actually changes

Before and after: the same label

SIZE 60 mm,40 mm
GAP 2 mm,0
CLS
TEXT 20,20,"3",0,1,1,"LOC-A01-03"
BARCODE 20,60,"128",80,1,0,2,2,"LOCA0103"
PRINT 1
^XA
^PW480 ^LL320
^FO20,20 ^A0N,30,30 ^FDLOC-A01-03^FS
^FO20,60 ^BY2 ^BCN,80,Y,N,N ^FDLOCA0103^FS
^PQ1
^XZ

Migration checklist

How EtikStudio does it

Import the TSPL job, correct anything visually, select a Zebra profile and export ZPL. Fonts are matched by printed metrics, ^BY is derived from the narrow bar width you had, and the human-readable line is regenerated from the same data field so the two never diverge.

Die Befehlsbeispiele sind zur Verdeutlichung vereinfacht; die genaue Syntax variiert je nach Modell und Firmware. Testen Sie immer auf dem Zieldrucker.

Weitere Paare

Ihr nächstes Etikett kann das letzte sein, das Sie neu machen.

Sprechen Sie mit unserem Team – wir richten Ihre Testphase gemeinsam ein. Unverbindlich.

Kostenlose Testphase starten