zebra
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| zebra [2024/12/30 23:47] – created utedass | zebra [2024/12/31 01:18] (current) – [38 x 13 mm Labels] utedass | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| ===== 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/ | ||
| + | |||
| + | ^FX Print a box, 80 by 80 points (1cm) ^FS | ||
| + | ^FO16, | ||
| + | |||
| + | ^XZ | ||
| + | </ | ||
| + | |||
| + | ==== 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, | ||
| + | ^FO100, | ||
| + | |||
| + | ^XZ | ||
| + | </ | ||
| + | |||
| + | Apparently, the width is set to 330 points by the PC software, can be read by following commands | ||
| + | |||
| + | <code zpl> | ||
| + | ^XA | ||
| + | ^HH | ||
| + | ^XZ | ||
| + | </ | ||
| + | |||
| + | And can be updated with | ||
| + | |||
| + | <code zpl> | ||
| + | ^XA | ||
| + | ^PW304 | ||
| + | ^XZ | ||
| + | </ | ||
| + | |||
| + | 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, | ||
| + | ^FO100, | ||
| + | |||
| + | ^LH0,0 | ||
| + | |||
| + | ^XZ | ||
| + | </ | ||
zebra.1735602459.txt.gz · Last modified: 2024/12/30 23:47 by utedass
