^LH Label Home
Sets the label home position, the reference point that field positions are counted from. It affects only the fields that come after it.
^LHx,y
^LH parameters
| Parameter | Meaning | Accepted values | Default |
|---|---|---|---|
xx-axis position (in dots)p. 293 |
Horizontal position of the label home. |
|
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. |
|
The guide gives an initial value at power up of 0, or the last permanently saved value. |
^LH notes and gotchas
-
Gotcha
p. 293^LHaffects only the fields that come after it, so the guide recommends using it as one of the first commands in the format. -
Interaction
pp. 201, 205, 293^FOand^FTcount their coordinates from the home position that^LHsets. -
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
p. 293^LH. -
Note
For compatibility with existing printers,
p. 293^LHmust come before the first^FSin the format. Once issued, the setting is kept until the printer is turned off or a new^LHis sent. -
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
pp. 49, 293^LHentry 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^LHentry. -
Guide issue
The dots-per-inch figures for the same density vary between pages. For 6 dots per mm the
pp. 49, 210, 269, 293^LHentry gives 152 and the^GBand^JMentries give 153. For 12 dots per mm the^GBentry gives 300 and the^JMentry gives 304; the^LHentry lists 11.8 dots per mm for 300. For 24 dots per mm the^LHentry gives 608, while the^GBentry and the tutorial give 600. The tutorial also gives 200 dots per inch for 8 dots per mm, where the^LH,^GBand^JMentries give 203. This record states densities in dots per millimeter, as printed, and does not choose between the dots-per-inch figures.
^LH example
^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.