How to Prevent Barcode Misreads and No-Reads on a Production Line

A no-read announces itself. The line stops, somebody walks over, the problem gets fixed. Irritating, visible, bounded.

A misread does none of that. The reader decodes something, passes it to the PLC, and the process keeps moving with the wrong value in it. Nothing halts. Nobody investigates. You find out weeks later when a customer calls, or you never find out.

Read rate does not protect against the second case, because read rate only measures whether something decoded. It says nothing about whether the right thing decoded.

So the question worth asking when you specify a code reader is this: what can it do to check what it read, not just that it read?

On the SR-2000, SR-5000 and SR-X Series there are four answers, and they catch genuinely different failures.

Preset data comparison

The straightforward one. Register the expected code as preset data, and the reader compares each read against it, outputting OK on a match and NG on a mismatch. No trigger sensor or extra hardware needed to detect a wrong part.

One set of preset data, up to 494 digits. You can set a starting digit and a number of digits, so the comparison runs only against the portion of the string that matters. Codes longer than 494 digits still work that way. Wild cards are supported: ! and ? within the preset data.

Two limits to design around. The comparison runs from one starting position for a set number of digits, which means you cannot verify two separate sections of the same code. And it is unavailable while reading multiple codes.

Sequence comparison

This is the one people overlook, and it is the one worth asking about first if you run serialized product.

Rather than matching a fixed value, sequence comparison checks that the number inside the code advances the way it should. Read in the right order, the stored comparison value increments. Read out of order, it does not advance until the correct value appears. The first numeric value registered after power-on becomes the basis for counting.

Think about what that catches. A part skipped. A part scanned twice. A part arriving out of order. None of those produce a bad decode, so none of them trip a conventional match test, and all of them matter enormously in traceability work.

On the SR-5000 the increment is configurable anywhere from −9999 to +9999, so counting by something other than one is handled.

Code quality verification

This grades the marking itself against published standards rather than checking the data.

Supported standards are ISO/IEC 15415, ISO/IEC TR 29158 (AIM DPM-1-2006), ISO/IEC 15416, ISO/IEC 16022, SAE AS9132 and SEMI T10-0701 on the SR-2000 and SR-X Series, with ISO/IEC 29158:2020 available additionally on the SR-X.

Grades append to the read data, expressed as letters or numbers, with per-parameter detail available. Set a verification threshold and the UNSTABLE signal can be output from the OUT terminal when results fall below it. Marking quality stops being an argument with a supplier and becomes a logged trend.

Worth being straight about the limit, because the manual is explicit. This function evaluates the printing quality of standard-compliant 2D codes in captured images. It is not an official 2D code verification device. If a customer requires certified verification, this is not that.

Note also that the SR-5000 does not offer code quality verification or matching level. It does have preset data and sequence verification.

Matching level, and why it is the one to build a maintenance plan around

Matching level is a value from 0 to 100 describing how much margin the reader had when it decoded. Not whether it decoded. Essentially, matching level describes how easy it is for the KEYENCE code reader to read that code.

The example that makes this land: two codes, both reporting a 100% reading rate. One has a matching level of 75. The other has 43.

Both pass. Both show green on any dashboard tracking read rate. One of them is a single bad print away from failing and the other is not.

Set a threshold and the reader reports STABLE at or above it, UNSTABLE below. That judgment can then do four things:

  • 1.
    Drive the OUT terminal according to STABLE or UNSTABLE status
  • 2.
    Save the captured image when a read goes unstable
  • 3.
    Control data output through silent mode
  • 4.
    Append the matching level value to the read data

What you get out of that is a trend rather than an event. Marking drifts, matching level slides from 78 to 61 to 44, and every read still succeeds. That is the window where the fix is a print head adjustment instead of a line stoppage.

One caveat worth planning for. Enabling matching level judgment lengthens decode time. Tune after you turn it on, or set the decode timeout to accommodate it, then use the read time test to confirm the result still fits your cycle.

There is a related signal called unused ECC ratio, appended as a value from 0 to 100 on all three series. It reports how much of the code's error correction went unused. Same underlying idea from a different angle: if a read is consuming most of its error correction budget, it is closer to the edge than the pass result suggests.

Altogether, nineteen data types can be appended to read data, including matching level, unused ECC ratio, code quality verification result, checksum, decoding time and read time.

When the code itself is the problem

Verification is a separate job from decoding something difficult, so here is the decoding side.

All three series have 16 parameter banks. A bank holds a full set of read parameters: code type, lighting conditions, exposure time, image filter usage. The alternate function cycles through registered banks automatically until something reads.

In practice that means you register one bank for normal marking, another for low contrast, another for misalignment, and the reader works through them without anyone intervening. The cost is processing time, which depends on your decode timeout. Not free, but cheaper than a stop. The alternate function is disabled if you command a specific bank by command or field network.

The SR-X adds more underneath:

  • A heat map search algorithm that targets areas of high black-to-white variation rather than scanning from the top of the image down, which matters when a finder pattern is damaged
  • An AI filter running on a dedicated inference chip trained on a database of over 100,000 images, available on the SR-X300 Series, aimed at stains, scratches, rough backgrounds and uneven cell color
  • Six-core parallel processing on the SR-X300 and SR-X300W, five cores on the SR-X100 Series

There is also linked decoding, where cell information from a code that one reader on the network read successfully can assist another reader looking at the same code further downstream, after it has picked up oil, stains or damage. Linked readers also let you compare focal distance, installation angle, bank number, lighting type, contrast adjustment method and matching level across units, which is how you isolate an installation problem instead of guessing at it.

A note on lighting

If low contrast is the fight, the lighting examples from the SR-X literature are the clearest case for why a single lighting type is not enough:

Target Direct Polarized Diffused
Pin stamp marking on cast surface
Direct
Success
Polarized
Error
Diffused
Error
Black resin
Direct
Error
Polarized
Success
Diffused
Error
Hairline metal surface
Direct
Error
Polarized
Error
Diffused
Success

Three targets. Three different answers. No overlap at all.

The SR-X300 Series has all three built in and selects automatically, with polarizing filters included as standard. If you have ever specified a reader against a sample part and then watched it struggle on a different material, that table is the explanation.

HDR is available as a contrast adjustment method, and image filters are selectable per bank, including Equalize, Expand, Shrink, Open, Close, Median and Unsharp Mask.

Measure it before the line is committed

This is the cheapest insurance available and it gets skipped constantly.

The SR-X provides five tests you can run before anything is live:

Test What it tells you
Reading rate test
What it tells you
Successful reads out of 10 scans
Tact test
What it tells you
Read time from trigger to completion
Depth test
What it tells you
How far your installation distance can drift
Speed test
What it tells you
Traceable target speed, from successful continuous reads
Code quality verification test
What it tells you
Marking verification result for a chosen bank

The speed test is the honest answer to whether a reader will keep pace with your line, because it reports traceable speed for your code, your material and your mounting rather than a figure measured on something else.

The manuals add a caution that is worth repeating: treat depth and speed results as guides, and confirm with an actual workpiece before operation.

Setup itself is three steps. Start monitor, auto focus, start tuning. The SR-X300 Series also has an angle sensor that displays installation angle on the unit and in software, so a good mounting angle can be recorded and recreated later.

The takeaway

Read rate is a necessary number and an insufficient one.

If misreads carry real cost in your process, and in traceability, serialization or anything safety-adjacent they carry enormous cost, then specify on verification capability rather than decode performance alone.

Ask whether the reader can compare against an expected value. Ask whether it can check sequence and not only match. Ask whether it reports decode margin as a number you can trend over time.

Then set a matching level threshold and start logging it, because the read that fails next month is already telling you it plans to.

Specifications here come from the SR-2000, SR-5000 and SR-X Series user's manuals and the SR-X Series brochure. Confirm against the revision shipped with your unit.

Related Products

Related Downloads