^HV โ€” Host Verification: read data back

ZPL course ยท ZPL FAQ

Command reference: Labelary ZPL introduction.

Below, commands are bold, parameters are colored, field data stays plain.

^HV โ€” Host Verification: read data back

Goal

Read printed data back with ^HV.

Description

^HV returns a numbered field's content back to the host computer, with an optional ASCII header. The field number must match the one given in ^FN or ^RF.

Example

^XA
^FN3^RFR,H
^HV3
^FX Field 3 is read from the tag and returned to the host.
^FO20,20^A0N,28,28^FDTag data returns to host^FS
^XZ

Rendered ^HV label

Result

Field 3 is read back to the host; the printed line is just the label body.

Article author: Arthur Isaev