Every product package needs a voice — and most often it's a code. Expiry dates keep consumers safe. Batch numbers make recalls surgical. Serial numbers enable traceability, anti-counterfeiting and warranty tracking. Getting them printed correctly is not cosmetic; it's legal, commercial and operational.
This guide covers everything you need to know about printing these codes in production: the content types, the setup requirements, the common mistakes — and why an online inkjet printer is the standard tool for the job.
The Four Core Code Types
1. Expiry and Production Dates
The most common packaging codes. A modern printer offers five date formats and four time formats (e.g. DD/MM/YYYY, MM/DD/YYYY, YYYY-MM-DD), with automatic rollover — the machine changes the date itself at midnight, no operator intervention.
2. Batch / Lot Numbers
Batch codes group products made under identical conditions — essential for recalls and quality audits. They can be fixed (e.g. "BATCH 2405") or dynamic (batch number + date + line ID combined).
3. Serial Numbers
Each unit gets a unique number that advances automatically. Formats are fully flexible: prefix + counter (SN-000001), date + counter (240812-001), or any custom pattern. An intelligent counter with print-count display prevents duplicates and gaps.
4. Shift and Operator Codes
Shift codes (A/B/C, or 1/2/3) and operator identifiers add another traceability layer. Operators can switch the shift code with a keypress at shift change.
How Variable Data Printing Works
Static text is easy — you type it once. The power of industrial coding is variable data printing (VDP): content that changes automatically per product, per batch, or per second.
Counters — increment per unit printed
Date/time fields — update in real time, auto-rollover
Database-driven data — serialized codes pulled from your ERP or a network database, in real time
Dynamic QR / GS1 DataMatrix — encode changing data (batch, expiry, serial) inside each 2D code
The controller handles all of this on the fly. That's why one online inkjet printer replaces pre-printed labels entirely — codes are generated live, matched to the actual product, and can never go stale.
Setting Up Your Online Inkjet Printer: The Essentials
A complete coding station needs just four components:
The printer — compact host + printhead mounted over the conveyor
A mounting bracket — fixed or adjustable to set print distance (ideal 1–2 mm between nozzle and surface)
A transfer table — supports and stabilizes products as they pass
A photoelectric sensor — detects each product and triggers the print at the exact position
Add an encoder when line speed varies — it synchronizes print timing with belt movement so codes don't stretch or compress. Industrial printers provide both optical sensor and encoder interfaces as standard.
The working sequence: product moves down the line → sensor detects it → printer fires the code in milliseconds → product continues. On the FAITH automatic online inkjet printer, this loop is fully automatic and prints from a cold start in about 1 second.
Choosing Content, Position and Size
Position: codes go where they're visible but not damaged — side panels of cartons, between seams on bags, caps or shoulders of bottles
Size: character height from 1 mm (micro-codes) to 12.7 mm (single nozzle) and up to 25.4 mm (dual-nozzle splicing) for logistics marks
Legibility: for date codes, 2–4 mm height is typical; for scannable QR, print at 300–600 DPI with adequate quiet zone
Five Common Mistakes (and How to Avoid Them)
Printing on the wrong ink for the material — porous carton needs water/oil-based ink; non-porous metal and plastic need solvent or specialty ink. Wrong ink = smeared or missing codes.
Ignoring resolution for 2D codes — QR and DataMatrix printed below 300 DPI often fail scanning. Print 2D codes at 600 DPI.
No sensor/encoder synchronization — codes drift or distort at variable line speeds.
Static batch numbers — if the batch must change daily and operators forget, products get mismarked. Use automatic date/batch fields instead.
Zero downtime planning — cartridge changes stop the line. High-volume lines should use large-capacity ink bag supply and monitors for ink levels (e.g. RFID cartridge chips that record remaining ink).
Compliance and Quality Checks
Verify codes daily with a handheld scanner or vision system
Use alarm light control so line staff notice coding failures instantly
Keep a log of print settings per product SKU
For regulated industries (food, pharma), GS1-format codes and food-grade inks are non-negotiable — choose ink accordingly (food-grade, water-based, solvent options are available in 8 colors)
Why an Online TIJ Inkjet Printer Is the Standard Choice
Thermal inkjet printers dominate modern date/batch/serial coding because they combine:
600 × 600 DPI quality for sharp text and scannable 2D codes
Line speeds up to 406 m/min without becoming a bottleneck
Low maintenance — no solvents, no pumps, cartridge-based
40+ languages on a touchscreen operators learn in minutes
Variable data, counters and network database printing built in