QR Decode
Decode a QR

Generating a Barcode a Cognex Reader Can Actually Grade

Be the first to rate this page.

Set module size, quiet zone, and contrast so a generated barcode passes Cognex-documented reading-distance and ISO/IEC 15416 grading checks, not just a phone-camera preview.

Processed locally

Your input stays in this browser.

Ready to verify

Review the result before saving or printing.

No expiry

Static codes keep working without a subscription.

A barcode intended for a Cognex industrial reader has to satisfy the reader's documented field-of-view and reading-distance range for the chosen module size, and can be objectively graded against ISO/IEC 15416, which evaluates a printed symbol across ten scan lines and nine quality parameters. A generator's own decode check does not replace that reading-distance pairing or that graded verification.

Why a generated barcode still needs a reader-specific check

An industrial reader such as a Cognex DataMan is set up for a defined working distance, lens, and lighting configuration, and a barcode generated without reference to that configuration can be perfectly valid as a symbol while still being unreadable in the position it will actually occupy on a line. This is a different failure from an invalid checksum or a malformed symbol: the data is correct and the geometry is correct in isolation, but the physical size of the printed module does not match what the installed reader's optics were configured to resolve at that distance. Treat the reader's own documentation, not a generic barcode size chart, as the source of truth once a symbol has to work with a specific fixed-mount or handheld model rather than an arbitrary phone camera.

Field of view and reading distance are a pair, not two separate settings

Cognex's field-of-view and reading-distance documentation for its DataMan readers pairs a code's physical size with a supported range of distances for a given lens, and explicitly notes that depth of field is limited by the minimum narrow-bar width for 1D codes and the minimum cell size for 2D codes — a smaller module narrows the usable distance range, and a larger module widens it but needs more physical label space. A liquid-lens reader with adjustable focus behaves differently from a fixed S-mount lens, where the depth of field itself becomes the limiting factor rather than a focus adjustment. Selecting a module size before checking this pairing against the specific reader model and lens installed is the single most common reason a barcode that decoded perfectly on a test bench fails once mounted at the real production distance.

ISO/IEC 15416 grading at a glance
ElementWhat it coversWhy it matters here
Scan lines10 lines across the symbolcatches uneven print or damage
Parameters per line9 measured attributesedge contrast, decodability, and more
Passing thresholdcommonly C or higher on an A-to-F scalethe practical cut-off for reliable scanning

How ISO/IEC 15416 actually grades a symbol

ISO/IEC 15416 defines a graded methodology for printed 1D symbols: a verifier scans the symbol along ten separate scan lines, evaluates nine parameters on each line — including edge contrast, decodability, and minimum reflectance — and averages the results into an overall letter or numeric grade, typically reported on an A-to-F or 4-to-0 scale, with a grade of C or higher generally treated as reliably scannable. Only a dedicated verifier can assign this standardized grade and produce the accompanying quality report; a barcode generator's local decode check confirms that one specific file can be read back once, under ideal conditions, which is a much weaker claim. For a label where a failed read on the production floor is expensive, a graded verification against ISO/IEC 15416 is the appropriate acceptance test, not a generator's self-check.

Worked example: a 12 mm label rejected at 40 cm

Consider a 12 mm-wide Code 128 label generated for a handheld scanner used close to the part, then installed instead on a fixed-mount reader positioned 40 cm above a conveyor for a higher-throughput line. At that distance, the same physical module subtends a smaller angle in the reader's field of view than it did at the original close working distance, effectively asking the lens to resolve a narrower element than the installed configuration supports. The fix is not to reprint the label larger by guesswork; it is to consult the specific reader and lens combination's documented field-of-view chart for 40 cm and either select a module size the chart confirms is readable at that distance, or change the lens or mounting distance to match the label that already exists.

Quiet zone and contrast: what a generator draws versus what a reader sees printed

A generator draws quiet zone and contrast exactly as specified in its settings, but what a Cognex reader actually sees is whatever ink, thermal transfer ribbon, or label-printer output the design becomes after export. A quiet zone that is technically present in the SVG can be encroached upon by a border, logo, or adjacent label element added later in a layout application, and low print resolution can merge the narrowest bars in a way that never shows up in an on-screen proof. ISO/IEC 15416 grading measures exactly this gap between the intended design and the physical result, which is why a symbol that looks identical to an approved sample on screen can still grade differently once printed on a different substrate or by a different printer.

Mistakes that pass a phone camera and fail a fixed-mount reader

A barcode that a phone camera app decodes without complaint is not evidence that a fixed-mount industrial reader will manage the same feat, because phone cameras generally have more forgiving autofocus, exposure, and image-processing pipelines than a reader configured for a fixed working distance and lighting setup. A second common mistake is testing only at the reader's nominal centre distance and never at the near or far edge of its documented depth of field, where a marginal print quality issue is most likely to surface first. A third is changing the print substrate — moving from a laser-printed proof to a thermal-transfer production run — without re-testing, since ink spread and contrast behave differently across those processes even when the underlying digital file has not changed at all.

What grading cannot fix for you

Grading a symbol against ISO/IEC 15416 tells you whether the printed pattern meets an objective, repeatable quality bar; it does not tell you whether the encoded value is the correct one for the item being labelled, whether the reader is configured for the right symbology, or whether the mounting position will remain stable as the line vibrates or the label ages. A high grade on day one is also not a permanent guarantee — thermal labels can fade, and adhesive labels can shift — so a periodic re-check with the same verification method used at acceptance is part of keeping a passing grade meaningful rather than treating it as a one-time certificate.

Choosing between a liquid-lens and fixed-focus reader before printing

Cognex's own documentation distinguishes readers with a liquid lens, which can adjust focus across a documented distance range, from those using a fixed S-mount lens, where focus is set once and depth of field itself becomes the limiting factor rather than an adjustable setting. A label designed for a liquid-lens reader's wider working range can be printed with more tolerance for exact mounting distance, while a fixed-focus installation needs the module size and mounting distance agreed and locked before the first production label is printed, because there is no focus adjustment available later to compensate for a size decided too casually. Confirming which lens type is actually installed, rather than assuming a reader model's most common configuration, is part of the same reading-distance pairing that determines whether a given module size will work at all. This decision is easiest to get right before the label artwork is finalized, because module size and lens choice trade against each other: a wider module gives a liquid-lens reader more margin across its adjustable range, while a fixed-focus install has effectively zero margin outside its designed depth of field, so a fixed installation deserves a more conservative module size even when a chart shows it as technically readable at the nominal distance. Where a facility mixes both lens types across different lines, keep the module-size decision tied to the specific line's installed reader rather than to a single company-wide label standard, since a size that comfortably passes on a liquid-lens line can sit right at the edge of what a fixed-focus line elsewhere can resolve. Cognex: An Explanation of the ISO 15416 1D Barcode Grading Process is the named source for the current external rule or product behaviour.

Enter your values, review the result, then use it with confidence.

Rate this page

Be the first to rate this page.