^FO · Field Origin
Positions the next element (text, barcode, box) relative to the origin.
Syntax and practical example
^FOx,yX,Y in dots. Example: ^FO50,120 (X to the right, Y down).
^XA
^PW600
^LL400
^FO40,40^A0N,30,30^FDA: 40,40^FS
^FO160,120^A0N,30,30^FDB: 160,120^FS
^XZEducational example; not a certified label or a physical print test. Sample text and codes stay the same in every language for comparison.
Expected result with ^FO
The first text starts at 40,40 dots and the second at 160,120. Change only the second X to 240: it should move horizontally without changing the first. This lets you align columns independently.
What should I check if ^FO does not give the expected result?
^FO moves one field, not the whole label. If every field is displaced, check the global origin and ^LT/^LS settings. Do not enter millimetres directly: 40 dots is about 5 mm at 203 DPI.
Related commands
About the author
Eduard Diaz
Eduard Diaz is an IT technician (development) at S-IE, an official Zebra partner with more than 20 years providing identification and labelling services. He builds and maintains EditorZPL to make working with ZPL and Zebra label printers easier.
s-ie.cat