Plain English

Toggles the head-open sensor (TSPL2 PG §SET p147). When ON (the safe default), the printer halts printing if the print head is opened mid-job; when OFF, the sensor is ignored. Persistent across power cycles. **Do not disable in production** — head-open during printing can damage the print head or smear ink/ribbon.

When to use

Leave ON for production deployments. Only consider OFF during bench testing of head-sensor wiring, and re-enable before shipping.

Syntax

SET HEAD ON | SET HEAD OFF

Parameters

ParameterDescription
state
Head-open sensor (case-insensitive).
  • ON - Enable head-open sensor (safe default)
  • OFF - Disable head-open sensor (bench testing only)

Example

SET HEAD ON

Enable the head-open sensor (safe default)

Try it in the playground View all TSPL commands