^LS · Label Shift
Horizontal shift of the label.
Syntax and practical example
^LSaIn dots. Example: ^LS-5
^XA
^PW600
^LL400
^LS0
^FO40,40^GB240,120,2^FS
^FO40,80^A0N,30,30^FDSHIFT 0^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 ^LS
The example starts at ^LS0 as a horizontal baseline. Print a copy, change to ^LS10 and measure the frame’s movement relative to the edge. Frame and text should keep their relative positions; check your model’s reference for adjustment direction.
What should I check if ^LS does not give the expected result?
Do not change ^LS, global origin and all ^FO values simultaneously: you will lose the offset baseline. If a barcode is clipped, also check ^PW and printable width; shifting does not resize it.
Test on a real printer
The viewer helps check the layout, but does not simulate the mechanism, media or persistent printer settings. Record the original settings and restore them after testing.
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