For variable QR-code and GS1 2D barcode printing, check five things before choosing a piezoelectric inkjet (PIJ) setup: the required code format, the source data, which record belongs to each product, the available printing area and the quality of the finished code.
“Variable” means that some encoded information changes between prints. A batch code may change once per production batch, while a serial number may change for every item. Decide which you need before preparing the printing template.
A practical trial follows sample records from the original data through the template to the printed products, using your actual material and target production speed.
1. Choose the Code Format and Required Content
Start with what the reader must obtain from the code: a website address, an internal identifier or standardised product data.
| Printing requirement | What to prepare |
|---|
| QR code linking to a web page | The exact website address and whether it is fixed or changes for each item |
| Variable QR code for internal identification | The required fields, their order and the system that will read them |
| GS1 DataMatrix | Required GS1 Application Identifiers and data values, encoded using GS1 element string syntax |
| QR Code with GS1 Digital Link | A correctly structured GS1 Digital Link URI containing the required identifiers and attributes |
A QR code is a barcode format; GS1 defines identification and data rules. A QR code containing an ordinary website address and a QR Code containing a GS1 Digital Link URI can have the same general appearance while carrying differently structured information.
GS1 DataMatrix uses GS1 element string syntax. QR Code with GS1 Digital Link uses a structured web address. The receiving application determines which format is suitable. See GS1’s explanation of the 2D barcode options.
For a GS1 job, prepare the customer’s specification, required identifiers and an approved example. Confirm that the selected software generates the required GS1 data structure as well as the requested barcode format.
2. Map Each Data Field to the Printing Template
Prepare a small sample of your source data and identify which fields appear as readable text, which are encoded in the barcode and which appear in both.
The following fictional example shows three products from the same batch, each with a different serial number. It illustrates field mapping rather than a complete GS1 encoding.
| Record | Product reference | Batch | Serial number |
|---|
| 1 | SAMPLE-A | LOT-01 | 000001 |
| 2 | SAMPLE-A | LOT-01 | 000002 |
| 3 | SAMPLE-A | LOT-01 | 000003 |
The template could print the batch and serial number as readable text and encode the same values in a variable QR code. Product 1 should then carry record 1’s values, product 2 record 2’s values, and product 3 record 3’s values.
Keep identifiers as text where leading zeros matter. Define date formats, field order and permitted characters before importing or connecting the data.
A prepared file and a live database connection require different setup. Confirm the supported file format or database interface, how records are selected and how new data reaches the printing software. A simple job may use a fixed address or generated serial sequence; an existing list of assigned codes requires the corresponding records to be used.
Our PIJ PC software provides fixed content, data fields, serial-number and date/time options for barcode and QR-code objects. These options provide a practical starting point for building a variable-code template. The required data interface and GS1 output are checked against the selected configuration and sample records.
3. Confirm That Each Product Receives the Correct Record
Print a sequence of test items, then compare each item’s readable text and decoded barcode with its source record.
For a job requiring a unique serial number per item, confirm who creates the numbers and how duplicate use is controlled. If codes have already been assigned in another system, the printing workflow needs to preserve those assignments.
Include relevant production interruptions in the trial:
Remove a product before the printing position and check which record reaches the next item.
Test a repeated trigger and check whether it causes an extra print or consumes another record.
Stop and restart the job, then check the next printed serial number.
Reprint a damaged item using the agreed procedure.
Introduce a missing or invalid value and record how it is handled.
These checks establish the actual behaviour of the proposed setup. Agree how operators identify the last accepted item and resume the job after an interruption.
4. Match Code Size and Print Settings to the Actual Product

Provide the available printing width and height, including space around the code. For a 2D barcode, the module is one small square in the pattern; the quiet zone is the clear area around the symbol.
The amount of encoded data affects the space needed for the code. Test representative records, including longer values where lengths vary, so the proposed layout accommodates the expected data.
GS1 specifies module size, quiet zones and minimum print quality according to the application. Use the requirements for the intended scanning environment. See GS1’s 2D barcode implementation guidance.
For the PIJ printing trial, define:
| Test input | What to establish |
|---|
| Final code size and position | The symbol and required quiet zone fit the available area |
| Actual material and surface | The printed edges, contrast and ink adhesion suit the application |
| Target speed and product spacing | Code proportions, placement and record updates remain correct |
| Print resolution and head arrangement | The selected settings produce the required detail within the printing area |
| Drying or curing arrangement | The code remains intact during subsequent handling |
Use the intended reader under realistic conditions. A clear-looking print at low test speed gives useful preliminary information; production approval should use the required operating settings.
5. Check Reading, Data Accuracy and Print Quality Separately
A successful scan shows that the code can be decoded under the tested conditions. Also check that it contains the correct information and meets any specified quality requirement.
| Check | Question it answers | Evidence to retain |
|---|
| Reading | Can the intended reader decode the print? | Reader, conditions and scan result |
| Data comparison | Does the decoded content match the assigned record and required format? | Source record and decoded content |
| Print-quality verification | Does the symbol meet the specified measured quality level? | Verification report linked to the sample |
For GS1 jobs, check the required data structure as well as the field values. When a quality grade is specified, agree the verification method and acceptance level before the trial. GS1 distinguishes decoding, data validation and symbol-quality verification in its barcode workflow guidance.
Retain the sample prints, decoded results and relevant printer settings so the trial can be reviewed against the original requirements.
Prepare Your Variable-Code Printing Test
To review a PIJ printing setup, prepare:
A small example data file or the required fixed content and serial-number rule.
The required code format, an example and any customer or GS1 specification.
The final code size, printing position and readable text.
Product samples and details of the printing surface.
Target line speed, product spacing and printing quantity.
The intended reader and any required verification grade.
Relevant rules for stopping, restarting and reprinting.
If you are sourcing equipment for an end customer, collect these details from the actual production site and agree who supplies the data, prepares the template and approves the printed samples.
Send Dafeng your sample data and printing requirements. We can review the proposed PIJ configuration, template and data interface, then agree the record-matching and printed-code checks for your trial.