Skip to command documentation
Device onlyprinterdevicesession scope
~HQ

Host Query

~HQ configures host Query. It applies to the printer session and subsequent formats and controls printer hardware or connectivity rather than label pixels.

ZPLr compatibility note

  • Recognized by the renderer but has no label-raster effect.

These are code examples only. This printer or session command does not produce a standalone label image.

Syntax
~HQquery-type
query-type

Query type

Sets query type. It can be omitted when the documented default is suitable.

Default
must be an accepted value or the command is ignored
Required
No
Documented valuesESHAJTMAMIODPHPPSNUI

query-type variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison3 variations

query-type = ES

Uses ES for query type while the other command values stay at representative defaults.

ZPLtilde-hq-query-type-1.zpl
~HQES

query-type = HA

Uses HA for query type while the other command values stay at representative defaults.

ZPLtilde-hq-query-type-2.zpl
~HQHA

query-type = UI

Uses UI for query type while the other command values stay at representative defaults.

ZPLtilde-hq-query-type-3.zpl
~HQUI

Primary source

Official Zebra reference

Use the manufacturer reference for printer- and firmware-specific behavior beyond ZPLr’s pinned rendering profile.

Open Zebra documentation