15 of 28 commands supported in the playground 54%

Control

CLSSupported
Clear Image Buffer

Clears the image buffer before drawing a new label. Think of it as pressing "New Document" — it erases any previous content so you start fresh. Every label should begin with CLS after SIZE and GAP.

PRINTSupported
Print Label

Triggers printing of the label. The first parameter sets the number of label sets; the optional second sets the number of copies per set. This is always the last command in a TSPL label — like pressing "Print".

FEEDSupported
Feed Label

Feeds the label stock forward by the specified number of dots. Useful for advancing past a label without printing, or for calibration.

BACKFEEDUnsupported
Backfeed Label

Feeds the label stock backward by the specified number of dots. Used to retract the label after printing so the tear-off or cutter position is correct.

FORMFEEDUnsupported
Form Feed

Advances the media to the next label position. The printer uses the gap/bline sensor to detect the next label boundary and stops there.

HOMEUnsupported
Home Position

Feeds the label until the internal sensor detects the gap or black mark, establishing a known starting position. This is a calibration command.

SELFTESTUnsupported
Self Test

Prints a self-test page showing the printer configuration, firmware version, and diagnostic information.

INITIALPRINTERUnsupported
Initialize Printer

Resets the printer to factory default settings. All custom settings, downloaded fonts, and stored images are cleared.

EOPUnsupported
End of Program

Marks the end of a stored program. When downloading label templates to the printer's memory, EOP signals where the program ends.

Label Setup

Text

Graphics

Barcodes & 2D Codes

Configuration

Try these commands live

The TSPL Playground lets you write TSPL and see labels render in real time — with syntax highlighting, autocomplete, and the full command reference built in.