Plain English

Remaps the printer's front-panel KEY2 to a chosen action (TSPL2 PG §SET KEY2 p137–138). Identical action enum to `SET KEY1`. Persistent across power cycles. Useful for printers with a two-key front panel where each key gets a distinct workflow role (e.g. KEY1 = PAUSE, KEY2 = FEED).

When to use

Together with `SET KEY1` at provisioning to set up the dual-key front-panel UX.

Syntax

SET KEY2 <action>

Parameters

ParameterDescription
action
Action enum (case-insensitive). Same actions as SET KEY1.
  • OFF - KEY2 does nothing
  • MENU - Open the front-panel menu
  • PAUSE - Pause / resume the current print job
  • FEED - Feed one label
  • CALIBRATION - Run sensor calibration
  • BATCH - Reprint the last batch

Example

SET KEY1 PAUSE
SET KEY2 FEED

Set up a two-key panel: KEY1 = pause/resume, KEY2 = manual feed

Try it in the playground View all TSPL commands