Convert TPCL to ZPL: moving Toshiba TEC label jobs to Zebra printers
How Toshiba TPCL format/data commands become ZPL fields, converting 0.1 mm coordinates to dots, fonts and barcode types, a worked example and a migration checklist.
이 글은 영어와 스페인어로 제공됩니다.
A retailer that standardizes on Zebra after years of Toshiba B-SA and B-EX printers has hundreds of TPCL jobs generated by its POS or WMS. TPCL is readable — commands in braces with clear separators — so the translation to ZPL is mostly a matter of merging each format/data pair into one field and converting metric positions to dots for the target resolution.
Command equivalents
| Operation | TPCL (Toshiba TEC) | ZPL (Zebra) |
|---|---|---|
| Start / end | {C|} clears; {XS;…|} issues the label | ^XA … ^XZ |
| Label size | {D0762,1016,0762|} pitch, width, length in 0.1 mm | ^PW812 ^LL609 (dots) |
| Text | {PC001;0050,0038,1,1,A,00,B|} + {RC001;Hello|} (format then data) | ^FO40,30 ^A0N,36,36 ^FDHello^FS |
| Code 128 | {XB01;0050,0163,3,1,02,0,0114,+0000000000,1,0,00|} + {RB01;data|} | ^BY2 ^BCN,90,Y,N,N ^FDdata^FS |
| Line / box | {LC;x1,y1,x2,y2,0,2|} | ^GB300,2,2^FS |
| Copies | {XS;I,0005,0002C3000|} | ^PQ5 |
| Units | 0.1 mm regardless of resolution | dots |
What to watch
- Positions: 0.1 mm → dots (×0.8 at 203 dpi, ×1.18 at 300 dpi). TPCL jobs written for a 300 dpi B-EX print identically on a 203 dpi Zebra only if you convert, not copy, the numbers.
- Pairing: an RC or RB data line refers to its PC/XB format by number; if a job reuses a format across labels, the format lines may only appear once at the top of the stream.
- Fonts: TPCL font letters and magnifications → ^A0 with a measured height; outline fonts map most directly.
- Barcode numbers → ^B commands; TPCL specifies narrow bar and ratio, which become ^BY; Data Matrix and QR parameters differ in cell size units.
- Issue command: {XS} cut and sensor settings become ^MM / ^MN in ZPL, and copies become ^PQ.
Before and after (simplified)
{D0500,0600,0500|}
{C|}
{PC001;0030,0025,1,1,A,00,B|}
{RC001;URBAN SNEAKERS|}
{PC002;0030,0060,1,1,A,00,B|}
{RC002;SKU: ZP-001-BLK|}
{XB01;0030,0120,3,1,02,0,0080,+0000000000,1,0,00|}
{RB01;ZP001BLK|}
{XS;I,0001,0002C3000|}
^XA ^PW480 ^LL400 ^FO24,20 ^A0N,26,26 ^FDURBAN SNEAKERS^FS ^FO24,48 ^A0N,20,20 ^FDSKU: ZP-001-BLK^FS ^FO24,96 ^BY2 ^BCN,64,Y,N,N ^FDZP001BLK^FS ^PQ1 ^XZ
How EtikStudio does it
The TPCL interpreter pairs formats with their data, keeps the metric positions as the design's native units and lets you pick any Zebra profile for export; dots are computed for that printer's resolution, so the same design serves 203 and 300 dpi units without two versions.
명령 예시는 이해를 돕기 위해 단순화했습니다. 정확한 문법은 프린터 모델과 펌웨어에 따라 다르므로 항상 대상 프린터에서 테스트하세요.