Use case
Catch-weight labels: a different weight on every label
Meat, cheese and fish are often packed as whole pieces and sold by weight, so each case weighs something different. The weight has to be on every label, taken at print time from the scale or the production system. BarcoderX binds the number your application gives it. The scale and its protocol are outside the product.
The label at a glance
GS is the GS1 General Specifications, Release 26.0. Gray references point to its sections; see Sources. The element string in the drawing is one that GS1 prints in its own worked example.
The documents cited below are the authority on what these labels carry; this page summarizes, in our own words, the parts we read. BarcoderX prints the label from the data it is given. It does not issue identifiers, check that a label matches a person or a product, scan or verify barcodes, report to any regulator, or certify, approve or validate a label under any rule.
- GTIN-14 starting with 9A variable measure trade item scanned in general distribution is identified with a GTIN-14 that begins with 9. The 9 is part of the number. GS 2.1.10
- Net weightApplication Identifier (AI) 3102 is net weight in kilograms with two decimal places, so 000415 reads 4.15 kg. The data title is NET WEIGHT (kg). GS 3.6.2; 3.2, Table 3-1; 7.8.7
- BarcodeGS1 says variable measure trade items that do not cross a retail checkout should be marked with ITF-14, GS1-128 or GS1 DataBar. GS 2.1.10
Why the weight is on every label
A fixed measure trade item is always produced in the same version. A variable measure trade item has at least one characteristic that varies, and its complete identification is a number plus the variable data. GS 2.1.1.3 GS1 gives carcasses of meat and whole cheeses as examples of items whose weight production cannot keep consistent. GS 2.1.10 Its list of types also names fish, fillets and cold cuts. GS 2.1.10, Table 2-21
So the weight cannot sit in the template. It is bound at print time: your application reads it from the scale or takes it from the production system, and passes it with the label data. BarcoderX binds the value it is given. Weighing, tare and talking to a scale, whatever its protocol, are outside the product.
The element string, worked through
The GTIN-14 begins with 9, and it must be processed in its entirety. GS 2.1.10 The identification is not complete without an element string for the measure: GS1 calls it mandatory. GS 2.1.10, Attributes Net weight in kilograms is AI (310n). GS 3.6.2, Table 3-2
The fourth digit of that AI, shown as n, says how many decimal places the value has: 0 means none, and 1 puts the decimal point between the fifth and sixth digit. GS 3.6.2 So (3102) has two decimal places. GS 3.2, Table 3-1, note 3; 7.8.7
| Part | Value | Meaning |
|---|---|---|
| (01) | 97612345000117 | The GTIN-14, indicator 9. GS 2.1.10 |
| (3102) | 000415 | Net weight in kilograms with two decimals: 4.15 kg. GS 3.6.2; Table 2-23 |
This is GS1's own example: cases of 20 steaks; three were delivered, with weights printed as (3102)000415, (3102)000407 and (3102)000398. GS 2.1.10, Table 2-23 Both fields have a predefined length, 16 and 10 characters with their AI, so they join in one barcode with no separator. GS 7.8.6.1
The same table shows a pallet label that adds the total weight of its contents with AI (3102) beside an SSCC. GS 2.1.10, Table 2-23 See pallet labels.
Items that cross a retail checkout follow other rules: the GTIN-14 beginning with 9 is not used on them, and fresh food at the checkout is covered by section 2.1.12, which also leaves price-embedded numbers to each GS1 member organization. GS 2.1.10, 2.1.12, 2.1.12.2 This page covers general distribution only.
Which barcodes, and why
| Barcode | Role | Edition |
|---|---|---|
| GS1-128 | The GTIN and the weight in one concatenated symbol. One of the three carriers GS1 names. GS 2.1.10; 7.8.6.1 | Basic |
| GS1 DataBar Expanded, or Expanded Stacked | A variable-length linear symbol for up to 74 numeric or 41 alphabetic characters of AI data, with the capabilities of GS1-128, designed for variable weight and perishable products. The stacked form is for when the width is not enough. GS 5.5.2.3, 5.5.2.3.2 | Basic |
| ITF-14 | Also named. It can hold only a GTIN, so the weight needs a second symbol. GS 2.1.10; 1.4.1 | Basic |
| GS1 Data Matrix or GS1 QR Code | May be used in addition to the linear symbols where the scanning system handles them. GS 2.1.10 | Ultimate |
BarcoderX has the Application Identifier dictionary, per-identifier validation, check digits, and SSCC and GTIN helpers built in; you enter data in brackets or with FNC1 and the check digit is computed for you. Net weight under AI (3102) is checked against that identifier's format, like any other, and not treated as free text. GS1 built in Check digit calculator
The data it needs
| Field | Sample value | Where it goes |
|---|---|---|
| GTIN-14 | 97612345000117 | AI (01), first in the barcode. GS 2.1.10 |
| Net weight | 4.15 kg, as 000415 | AI (3102) in the barcode, and as text. GS 3.6.2 |
| Product name | Example steaks | Printed text. |
The weight must already be in the unit and the number of decimals of the AI you choose. The values come from objects, a DataTable, CSV, JSON or XML. Templates and data
How it reaches the printer
The printer commands are the same on both routes, and both run on infrastructure you operate.
- Direct, from your application. The SDK packages send the printer commands from your own .NET process over TCP port 9100, serial, the Windows spooler, CUPS or USB. No API server and no agent is in the path.
- Through your API server. Your application queues a print job through the REST API on your API server. A print agent on the printer's network collects it and writes it to the printer beside it. The agent only dials out, so the printer network needs no inbound port.
A catch-weight label is printed after each weighing, so your own application starts the print with the weight it has just read. Delivery to the agent is at-least-once and the agent de-duplicates by job id, so a reconnect does not print a label twice, and a retried request with an idempotency key does not queue a second label.
Which edition covers it
EditionsBasic covers the linear (1D) and postal symbologies, including every GS1 DataBar variant; Ultimate adds the PDF417 family, other multi-row symbologies, every matrix (2D) symbology and GS1 composites, as set out on the pricing page.
GS1-128, ITF-14 and every GS1 DataBar variant, GS1 DataBar Expanded included, are in Basic, since the pricing page lists them under linear barcodes and GS1 DataBar. A GS1 Data Matrix or GS1 QR Code needs Ultimate.
The ZPL behind it
The printer commands come from the template. These are the ZPL commands behind labels like this one.
What BarcoderX does not do here
- No scale connection. BarcoderX does not talk to scales and does not weigh anything. Your code reads the scale or the production system.
- No weight checks. It does not check that a weight is right or legal for trade; it prints the number it is given.
- No identifiers issued. A GS1 member organization issues the company prefix of your GTINs.
- No retail pricing. Price-embedded labels for retail checkouts follow GS1 and national rules that this page does not cover.
- No certification, no scanning. BarcoderX does not certify, approve or validate a label under any rule, and it does not read barcodes.
Keep reading
Food labels Pallet labels GS1-128 and SSCC-18: what goes on a pallet label GS1 check digit calculator Server-side label printing for .NET Barcodes: the symbology registry Pricing: what each edition covers All use casesNew to the printer language? Read the ZPL guides and command reference.
Sources
- GS1 General Specifications Standard (GS)
- Release 26.0, ratified January 2026. Sections 1.4.1, 2.1.1.3, 2.1.10 (including Tables 2-21 and 2-23), 2.1.12, 2.1.12.2, 3.2 (Table 3-1), 3.6.2 (Table 3-2), 5.5.2.3, 5.5.2.3.2, 7.8.6.1 and 7.8.7. https://
ref.gs1.org/ standards/ genspecs/
Written by BarcoderX in its own words; not a publication of the bodies named above, whose documents are the authority. Read on November 14, 2026. Check the current edition before you rely on a detail.
ZPL and ZPL II are trademarks of Zebra Technologies Corporation. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.