Variable weight traceability — 70×40 mm

GS1-128 label for variable-weight items (deli, fish counter): GTIN, net weight, lot in a single barcode.

ZPL preview: Variable weight traceability — 70×40 mm

Variable weight traceability

70×40 mm @ 300 dpi. Standard for deli counter, fish counter, loose produce.

Placeholders

  • product_name
  • net_weight — weight in kg (3 decimals) for human readability
  • weight_padded — weight as 6 digits with 3 implicit decimals for the barcode (e.g. 001245 = 1.245 kg). AI 310x where x = decimal count (here 3).
  • lot
  • expiry
  • gtin14 — 14-digit GTIN-14

When to use it

Cured meat producers, dairies, seafood companies and meat processing plants use it to ship random-weight pieces (hams, cheese wheels, fillets, steaks) to wholesalers, distribution centres and retail chains. It goes on the piece or the pack at in-line weighing and is scanned at goods-in to capture weight, lot and expiry without keying.

The product is often in cold, damp conditions: use thermal transfer on coated paper or PP with an adhesive for cold surfaces, so the code stays readable through the whole chain.

Standards and requirements

The structure follows the GS1 General Specifications: (01) GTIN-14 of a variable measure item, starting with indicator digit 9; (3103) net weight in kg with three decimals as six digits; (17) expiry YYMMDD; (10) lot. Fixed-length AIs go first and the variable-length lot last, so no FNC1 separator is needed. A GS1-128 symbol holds at most 48 data characters.

In ZPL the barcode starts with >;>8 (subset C plus FNC1); to switch to an alphanumeric lot insert >6 for subset B. The minimum X-dimension depends on the scanning environment in the GS1 tables: confirm it with your customer and check quality to ISO/IEC 15416.

Common mistakes

  • Encoding the weight with a decimal separator instead of six digits with implied decimals.
  • Using a 310x AI whose decimal count does not match the value.
  • Using a GTIN that does not start with 9 for a random-weight item.
  • Expecting GS1-128 to scan at the checkout: it is meant for logistics, not point of sale.

FAQ

What does AI 3103 mean?

It is the net weight in kilograms; the last digit gives the number of decimals, so 3103 means three decimals and 001245 equals 1.245 kg.

Can I put several lots or dates in the same barcode?

No, each AI appears only once per symbol; mixed contents need separate labels or packaging levels.

ZPL code

^XA
^PW827
^LL472
^CI28
^CF0,30^FO20,15^FD{{product_name}}^FS
^CF0,24
^FO20,60^FDPeso: {{net_weight}} kg^FS
^FO20,100^FDLotto: {{lot}}^FS
^FO20,140^FDScad: {{expiry}}^FS
^BY3,2,90
^FO20,185^BCN,90,Y,N,N^FD>;>801{{gtin14}}3103{{weight_padded}}^FS
^XZ

What this label contains

Barcodes

GS1-128
Code 128 with FNC1 and GS1 Application Identifiers: the logistics barcode, used for SSCC, batch, expiry and weight on pallets and cartons.

Elements

  • 4 text fields
  • 6 variable fields to fill in

Variable fields

FieldDescriptionExample
product_nameProductProsciutto crudo
net_weightNet weight (kg)1.245
weight_paddedWeight (6 digits)001245
lotLotL2026A123
expiryExpiry15/06/2026
gtin14GTIN-1498001234567890

Format and printing

70×40 mm (2.76×1.57″) at 300 dpi: 827×472 dots. Landscape.

Compatible Zebra printers

You need a printer with a 4″ printhead at 300 dpi, for example:

  • Zebra ZD421 (desktop)
  • Zebra ZD621 (desktop)
  • Zebra ZT231 (industrial)
  • Zebra ZT411 (industrial)
  • Zebra ZT610 (industrial)

Any Zebra printer with a wider printhead and the same resolution works too.

The code is written for 300 dpi: on a printer with a different resolution the label prints larger or smaller and needs rescaling.

How to use it

  1. Open “Customize placeholders” and enter your data in the variable fields listed above.
  2. Check the preview: it is rendered from the same ZPL code you will send to the printer.
  3. Download the .zpl file or copy the code and send it to the printer: with “Print” through Zebra Browser Print, or as a raw file to port 9100 if the printer is on the network.
  4. Load 70×40 mm labels and make sure the printer is set to 300 dpi. For a different size use “Duplicate & edit” and adapt the layout in the builder.

Edit it in the editor

To change the layout, use “Duplicate & edit”: the template opens in the online ZPL editor, where you modify it and save it to your account for free.

Discover the online ZPL editor

Related templates