GS1 serialization DataMatrix — 40×25 mm

Pharma serialization label (FMD/EU 2016/161) with a GS1 DataMatrix: GTIN, lot, expiry and serial number. For the medicine carton.

ZPL preview: GS1 serialization DataMatrix — 40×25 mm

GS1 serialization DataMatrix

40×25 mm @ 300 dpi. GS1 DataMatrix (^BXN) carrying the GS1 string (AI 01 GTIN, 17 expiry, 10 lot, 21 serial) with readable data on the right. Compliant with the FMD scheme.

Placeholders

  • gs1_data — full GS1 string (with FNC1)
  • gtin — readable GTIN
  • lot / expiry / serial — readable lot, expiry, serial

Replace gs1_data with your real GS1 string and verify FNC1 encoding on your system.

When to use it

This label is used on packaging lines and in repackaging units when the unique identifier is not printed directly on the carton but on a label applied in line. Every serial printed is uploaded by the marketing authorisation holder to the European Medicines Verification System (EMVS) and later decommissioned by the pharmacy at dispensing, so the label must match the uploaded data exactly.

The label goes on board cartons and must not be removable and reapplicable without damage: tamper-evident or destructible stocks with security cuts are common, printed thermal transfer.

Standards and requirements

Delegated Regulation (EU) 2016/161 defines the unique identifier (product code, serial, batch, expiry, national number where required) and requires a non-predictable, randomised serial number. An anti-tampering device is required alongside it; ISO 21976 describes tamper verification features for cartons. In Italy the transition from the "bollino" to the FMD system follows its own timetable, so check the current status.

In the GS1 string, put fixed-length AIs (01) and (17) first, then (10) and (21): this way only one FNC1 separator is needed. At 300 dpi ^BXN,4,200 gives modules of about 0.34 mm.

Common mistakes

  • Reusing serials from earlier batches or generating them in a predictable sequence.
  • Mismatching printed data and data uploaded to the EMVS, which triggers alerts in pharmacies.
  • Applying the label over the tamper-evident closure or over mandatory carton text.
  • Using a GTIN-13 without the leading zero in AI (01), which requires 14 digits.

FAQ

What do PC, SN, Lot and EXP next to the code mean?

They are the usual abbreviations for product code, serial number, batch and expiry printed in clear next to the DataMatrix.

Is aggregation mandatory?

The EU regulation does not require aggregation of cartons into cases; customers or other markets may ask for it.

ZPL code

^XA
^PW472
^LL295
^CI28
^FO20,20^BXN,6,200,,,,_^FD_1{{gs1_data}}^FS
^CF0,22^FO190,22^FDGTIN {{gtin}}^FS
^CF0,20^FO190,55^FDLot {{lot}}^FS
^CF0,20^FO190,85^FDExp {{expiry}}^FS
^CF0,20^FO190,115^FDSN {{serial}}^FS
^XZ
  • Industry: Pharma
  • Category: GS1 DataMatrix
  • DPI: 300
  • Size: 40×25 mm
  • Tags: DataMatrix, Expiry date, GTIN, Pharma, Serialization

What this label contains

Barcodes

GS1 DataMatrix
2D code with GS1 Application Identifiers: used for pharmaceutical serialisation (GTIN, batch, expiry, serial number) and for medical device UDI.

Elements

  • 4 text fields
  • 5 variable fields to fill in

Variable fields

FieldDescriptionExample
gs1_dataGS1 data01034012345678901726123110AB1234_121ABC123
gtinGTIN03401234567890
lotLotAB1234
expiryExpiry31/12/2026
serialSerialABC123

Format and printing

40×25 mm (1.57×0.98″) at 300 dpi: 472×295 dots. Landscape.

Compatible Zebra printers

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

  • Zebra ZD411 (desktop)
  • Zebra ZD611 (desktop)

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 40×25 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