Plain English

Generic printer-configuration dispatcher (TSPL2 PG §SET p132–148). The first word after SET picks the setting being changed. Engine-recognised sub-actions cover the full PG-documented set except GAP, which requires lexer-mode disambiguation (tracked separately). All SET settings are persistent across power cycles unless the sub-page says otherwise (RIBBON is non-persistent). Engine-recognised but not rendered — labels with SET configure the printer hardware rather than producing label content.

When to use

For advanced printer configuration — cutter control, tear-off settings, peel-off mode, ribbon/head sensor mode, counters, front-panel key remap, network/host config. Best placed once at the top of a label setup script; settings persist until changed.

Syntax

SET <sub-action> <args>

Parameters

ParameterDescription
sub-action
The printer setting to configure (case-insensitive).
  • PEEL - Peel-off mode (ON/OFF)
  • TEAR - Tear-off mode (ON/OFF)
  • CUTTER - Auto-cutter mode (OFF/BATCH/<pieces>)
  • HEAD - Head-open sensor mode (ON/OFF)
  • RIBBON - Ribbon-detect mode (ON/OFF) — non-persistent
  • COUNTER - Initialise/step a counter variable (@n step)
  • PARTIAL_CUTTER - Partial-cut mode (OFF/BATCH/<pieces>)
  • BACK - Back-feed toggle (ON/OFF)
  • KEY1 - Front-panel KEY1 remap (OFF/MENU/PAUSE/FEED/…)
  • KEY2 - Front-panel KEY2 remap (OFF/MENU/PAUSE/FEED/…)
  • REWIND - External rewinder toggle (ON/OFF)
  • PRINTKEY - Print-key behaviour (OFF/ON/AUTO/<n>)
  • STRIPER - Alias of TEAR (PG p143–144)
args
Sub-action-specific arguments — see the individual SET <sub-action> entries

Example

SET CUTTER ON
SET PEEL OFF
SET TEAR ON

Enable the automatic cutter, disable peel-off mode, enable tear-off

Try it in the playground View all TSPL commands