^LH Label Home

Field position and orientation ZPL caret command

Sets the label home position, the reference point that field positions are counted from. It affects only the fields that come after it.

Format ^LHx,y

^LH parameters

Parameters of ^LH
ParameterMeaningAccepted valuesDefault
xx-axis position (in dots)p. 293

Horizontal position of the label home.

0 to 32000 dots

The guide gives an initial value at power up of 0, or the last permanently saved value.

yy-axis position (in dots)p. 293

Vertical position of the label home.

0 to 32000 dots

The guide gives an initial value at power up of 0, or the last permanently saved value.

^LH notes and gotchas

  • Gotcha

    ^LH affects only the fields that come after it, so the guide recommends using it as one of the first commands in the format.

    p. 293
  • Interaction

    ^FO and ^FT count their coordinates from the home position that ^LH sets.

    pp. 201, 205, 293
  • Note

    The default home position is the upper-left corner of the label, position 0,0 on the x and y axes. Any area below and to the right of this point is available for printing. The guide gives moving the reference point below a preprinted area as a use of ^LH.

    p. 293
  • Note

    For compatibility with existing printers, ^LH must come before the first ^FS in the format. Once issued, the setting is kept until the printer is turned off or a new ^LH is sent.

    p. 293
  • Note

    To work out x and y from physical sizes, the guide pairs each printhead density with a dots-per-inch figure: 6 dots per mm (152 dots per inch), 8 dots per mm (203), 11.8 dots per mm (300) and 24 dots per mm (608).

    p. 293
  • Guide issue

    The guide describes the home position differently in two places. The ^LH entry says the default home is the upper-left corner of the label. The tutorial says coordinates reference the left-hand trailing edge of the label as it leaves the printer, with unspecified exceptions. Follow the ^LH entry.

    pp. 49, 293
  • Guide issue

    The dots-per-inch figures for the same density vary between pages. For 6 dots per mm the ^LH entry gives 152 and the ^GB and ^JM entries give 153. For 12 dots per mm the ^GB entry gives 300 and the ^JM entry gives 304; the ^LH entry lists 11.8 dots per mm for 300. For 24 dots per mm the ^LH entry gives 608, while the ^GB entry and the tutorial give 600. The tutorial also gives 200 dots per inch for 8 dots per mm, where the ^LH, ^GB and ^JM entries give 203. This record states densities in dots per millimeter, as printed, and does not choose between the dots-per-inch figures.

    pp. 49, 210, 269, 293

^LH example

example.zplZPL
^XA
^LH30,20
^FO10,10^A0N,30,30^FDShifted^FS
^XZ

^LH moves the label home to 30 dots from the left and 20 dots down. The ^FO that follows is counted from that new home, not from the upper-left corner of the label.

Guides that use ^LH

BarcoderX is a .NET SDK for thermal labels and barcodes. See how it prints and exports labels.

Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 49, 60, 190, 201, 204, 205, 210, 269, 293.

Written by BarcoderX in its own words. Checked against the guide on 2026-11-14.

ZPL and ZPL II are trademarks of Zebra Technologies Corporation. This reference is written by BarcoderX in its own words from Zebra's published programming guide. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.