Small asset tag 4x2

ZPL course · ZPL FAQ

Command reference: Labelary ZPL introduction.

Below, commands are bold, parameters are colored, field data stays plain.

Asset tag — everything on 4 by 2 inches

Goal

Squeeze an asset number, a barcode and a mark emblem onto a 812 by 406 dot tag.

Description

Inventory tags are the shipping sticker from lesson 53 on a diet: same three blocks — text, machine code, emblem — in one third of the height. Sizes follow lesson 51: 4 inches wide stay 812 dots, 2 inches tall are 406. With so little vertical room every ^FO y-coordinate is load-bearing, so lay the tag out in three fixed bands and never let blocks drift.

Example

^XA
^PW812
^LL406
^FO20,20^GB140,140,4^FS
^FO45,55^A0N,70,70^FDIT^FS
^FO190,30^A0N,40,40^FDASSET-0042 Finance laptop^FS
^FO190,90^BY2^BCN,80,Y,N,N^FDASSET-0042^FS
^FO190,200^A0N,28,28^FDif found call ext. 4210^FS
^FO20,300^GB772,3,3^FS
^FO20,320^A0N,25,25^FDproperty of example corp - do not remove^FS
^XZ

Rendered asset tag

Result

A scannable inventory tag: emblem left, asset record right, footer rule pinned to the bottom band. Same recipe scales to any small format — only the three y-bands move.

Article author: Arthur Isaev