LABELIXA
ZPL PreviewBarcode GeneratorImage → ZPLSolutionsBarcode TypesTemplate GalleryGuidesZPL Command MatrixDocumentationAPI
ENTRDE

TSPL Command Reference

Every command the Labelixa TSPL preview understands, with syntax, an example and its honest support status. Commands outside this list are reported by the validator as unknown.

This tool renders NATIVE TSPL. Many TSC printers also offer manufacturer-documented ZPL emulation — that is a separate mode; for ZPL code use the ZPL viewer.
Coverage: 7 commands supported, 3 partially supported, 7 recognized as printer-behaviour (not drawn). The preview renders at 203 dpi and is an interpretation of the TSPL/TSPL2 programming manual — it has not been verified against a physical printer.
CommandSyntaxStatusDescription
SIZESIZE <w> mm, <h> mm
SIZE 100 mm, 150 mm
SupportedLabel size; with mm suffix in millimetres, without a unit in inches.
GAPGAP <g> mm, <o> mm
GAP 3 mm, 0 mm
SupportedGap between labels — affects the physical feed, recorded but not drawn.
REFERENCEREFERENCE x, y
REFERENCE 0, 0
SupportedShifts the origin; applied to all following coordinates in the preview.
CLSCLS
CLS
SupportedClears the image buffer; typical start of every TSPL job.
TEXTTEXT x, y, "font", rot, xm, ym, "content"
TEXT 100, 100, "3", 0, 1, 1, "HELLO"
PartialText field. Built-in fonts 0-8; other font names (TSS24.BF2…) are approximated by the number in their name.
BARCODEBARCODE x, y, "type", h, readable, rot, n, w, "data"
BARCODE 100, 200, "128", 100, 1, 0, 3, 3, "123456"
PartialBarcode field. MVP types: 128, 39, EAN13, UPCA. Other types are skipped with a warning.
QRCODEQRCODE x, y, ecc, cell, mode, rot, "data"
QRCODE 100, 400, M, 6, A, 0, "https://..."
PartialQR code with ECC level L/M/Q/H and cell width.
BOXBOX x1, y1, x2, y2, t
BOX 40, 40, 760, 400, 4
SupportedBox outline between two corners with a border thickness.
BARBAR x, y, w, h
BAR 50, 500, 700, 4
SupportedFilled black bar.
PRINTPRINT n[, copies]
PRINT 1
SupportedPrint — sets set count (and copies).
DIRECTIONDIRECTION n[, m]
DIRECTION 1
Printer-onlyPrint direction — not applied to the MVP preview.
DENSITYDENSITY n
DENSITY 8
Printer-onlyDarkness — printer behaviour, no image effect.
SPEEDSPEED n
SPEED 4
Printer-onlyPrint speed — printer behaviour, no image effect.
OFFSETOFFSET <o> mm
OFFSET 0 mm
Printer-onlyFeed offset — printer behaviour.
SETSET <opt> <val>
SET TEAR ON
Printer-onlyPrinter option switches (TEAR, PEEL…) — printer behaviour.
CODEPAGECODEPAGE n
CODEPAGE 1252
Printer-onlyCharacter set selection — the preview assumes UTF-8.
BLINEBLINE <b> mm, <o> mm
BLINE 3 mm, 0 mm
Printer-onlyBlack-mark spacing — feed calibration, not drawn.

Render your code: TSPL viewer

EnglishTürkçeDeutsch
Feedback

Something wrong? Tell us.

Your label content is NOT sent; only your message, the page you are on and the build version.