What ^FO does
^FO is the most-used positioning command. It sets where the next field (text, barcode, graphic) begins, measured in dots from the label home. x is horizontal, y is vertical, both increasing right and down.
Syntax
^FOx,y,zParameters
| Parameter | Description | Values | Default |
|---|---|---|---|
x | Horizontal position, dots | — | 0 |
y | Vertical position, dots | — | 0 |
z | Justification (0 left, 1 right, 2 auto) | 0,1,2 | 0 |
Example
^XA
^FO100,120^A0N,40,40^FDPositioned^FS
^XZAt 203 dpi, ^FO406,0 is one inch (203 dots × 2) from the left.
Paste this into the free ZPL viewer to see it render, or convert it to PDF.
Notes & tips
- Positions are in dots, not inches or mm.
- Applies to the very next field only.
Related commands
See the full ZPL command reference for all 92 documented commands.
