User Tools

Site Tools


zebra

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
zebra [2024/12/30 23:47] – created utedasszebra [2026/04/21 06:08] (current) utedass
Line 6: Line 6:
 ==== Resources ==== ==== Resources ====
   * [[https://labelary.com/viewer.html|Labelary]] -- Online ZPL preview tool, also has good documentation and information regarding the ZPL   * [[https://labelary.com/viewer.html|Labelary]] -- Online ZPL preview tool, also has good documentation and information regarding the ZPL
-  * [[https://support.zebra.com/cpws/docs/zpl/zpl-zbi2-pm-en.pdf|Zebra Programming Guide]] -- Official guide+  * [[https://www.zebra.com/content/dam/support-dam/en/documentation/unrestricted/guide/software/zpl-zbi2-pg-en.pdf|Zebra Programming Guide]] -- Official guide
  
 ===== ZPL ===== ===== ZPL =====
 +
 +It is possible to make newlines for every new command. Some tutorials tend to stack several related, but different, commands on the same line.
 +
 +<code zpl>
 +^XA
 +
 +^FX The FX command starts a comment that ends at the next tilde 
 +or caret, but should be correctly terminated with a field separator command/symbol ^FS
 +
 +^FX Print a box, 80 by 80 points (1cm) ^FS
 +^FO16,8^GB80,80,5^FS
 +
 +^XZ
 +</code>
 +
 +==== 38 x 13 mm Labels ====
 +
 +Seems to be offset even though I specify dimensions. This ZPL places a box in the upper left corner and puts a text on the label
 +
 +<code zpl>
 +^XA
 +
 +^FO16,8^GB80,80,5^FS
 +^FO100,30^A0,40^FDWorks!^FS
 +
 +^XZ
 +</code>
 +
 +Apparently, the width is set to 330 points by the PC software, can be read by following commands
 +
 +<code zpl>
 +^XA
 +^HH
 +^XZ
 +</code>
 +
 +And can be updated with
 +
 +<code zpl>
 +^XA
 +^PW304
 +^XZ
 +</code>
 +
 +But to avoid conflict with the PC software it's probably better to move the Label Home, and then return it.
 +
 +<code zpl>
 +^XA
 +
 +^LH16,8
 +
 +^FO0,0^GB80,80,5^FS
 +^FO100,30^A0,40^FDWorks!^FS
 +
 +^LH0,0
 +
 +^XZ
 +</code>
zebra.1735602459.txt.gz · Last modified: 2024/12/30 23:47 by utedass

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki