Code Marking & Reading Notable Risks and Countermeasures

CODE READING

LASER MARKING

With extensive experience with both laser markers and code readers, KEYENCE is able to propose marking and reading operations with consideration for the risks associated with each process.

  1. 01 Code Specifications Review

    Risk of insufficient reading stability due to inappropriately sized codes

  2. 02 Laser Marking

    Differences in surface conditions between resin materials purchased from different companies

  3. 03 Code Reading

    Differences in marking direction and reader mounting angle between testing and actual installations

Production line with five location pins marking where the risks arise
  1. 04 Target Surface Processing

    Changes in code reading rate before and after plating, during repeated firings, etc.

  2. 05 Traceability Management

    Matching level characteristics and monitoring of code quality and device status trends

01 Code Specifications Review

When it comes to 2D codes, oftentimes the design department will only specify the code size and data volume. However, creating a code simply to meet such specifications opens the door to potential problems later on during operation.

Situation Importance of selecting code specifications

For some code types, the module size may be too small for the amount of information being implemented, resulting in unstable reading. Here at KEYENCE, we suggests the most suitable type of code and shape depending on the target.

Module size
= 0.63 mm

Module size
= 0.63 mm

Module size
= 0.63 mm

Module size: The smallest element (black or white square) of the 2D code is called a module. The module size is the length of one module. Quiet zone: The quiet zone refers to the margin around a code. QR codes require a margin of 4 modules, while Data Matrix codes require a margin of just 1 module.

Example proposal Damage-free 2D code marking for higher reading rates

An alternative approach is to mark on patterns while minimising the damage to internal circuits. This improves readability for applications that require very small markings with limited free space with conventional systems. This ensures the code size is appropriate for the target, while stabilising the reading rate.

Flexible circuit board, an example target for marking while minimising damage to internal circuits

02 Laser Marking

Even when using similar materials, surface conditions may vary between suppliers, leading to different marking conditions and the possibility of unstable reading in some situations.

KEYENCE offers advice on marking and reading conditions while taking such risks into account.

Supplier A

Supplier B

Uneven surfaces and marking results

Supplier A: code module with clear edges Supplier A: surface unevenness in colour
Supplier B: marking faint and hard to make out Supplier B: surface unevenness in colour, a different pattern from Supplier A

Read result

Supplier A read result: Reading Test 100%, Matching level 79
Supplier B read result: Reading Test 100%, Matching level 39

[Code reader] *SR-X300 Series

WORLD’S FIRST AI filter for reading difficult codes

Optimized specifically for code reading, the built-in inference-specific AI chip was created through learning of a database of over 100,000 images. This results in dramatically improved code reading performance.

AI filters

[Laser marker]

High peak power for high-contrast marking

Combining a high peak power with a short pulse duration of 4 ns ensures highly stable high-contrast marking that is not affected by variations in the surface conditions of the material.

Peak power: MD-X2500A 200 kW and MD-X2000A 100 kW with a 4 ns pulse; 20 W fibre laser (reference value) 10 kW over 100 ns

The figure on the right compares the beam power distribution of the MD-X Series and a conventional fibre laser. The MD-X Series produces a laser with a higher peak power and a shorter pulse.

Beam power distribution: the fibre laser has several low peaks, the MD-X Series one sharp tall peak

03 Code Reading

In some situations, the test environment before purchasing differs from the actual production line environment. This results in a risk of unstable marking and reading results due to variations in product marking orientation and reader mounting angle compared to test conditions.

Metal targets with hairline finish

Pre-installation testing:
Perpendicular orientation of hairline metal surface and marking

Pre-installation test read result: code read inside a green frame
Reading rate
100%
Matching level
92

Contrast is high due to a significant difference between the amount of light reflected from the background and from the marked code.

Actual production line:
Parallel orientation of hairline metal surface and marking

Production line read result: code read inside a green frame, with lower contrast
Reading rate
100%
Matching level
38

Contrast is low due to minimal difference between the amount of light reflected from the background and from the marked code.

[Code reader]

Reading with consideration for hairline metal surface characteristics

Reading codes on hairline metal surfaces can be unstable because the reflection angle of the illumination light changes. As shown below, the amount of reflected light changes between reading angle A—perpendicular to the hairline metal surface direction—and reading angle B—parallel to the hairline metal surface direction—resulting in a different reading stability.

Automatically selects optimal lighting conditions for the target

Built-in 3-way lighting (direct, polarised, diffused) * SR-X300 Series

Black resin: Direct lighting ERROR, Polarised lighting SUCCESS, Diffused lighting ERROR. Hairline metal surface: Direct lighting ERROR, Polarised lighting ERROR, Diffused lighting SUCCESS
*SR-X300 Series: SR-X300, SR-X300W, SR-X300P, and SR-X300WP
SR-X100 Series: SR-X100, SR-X100W, SR-X100P, and SR-X100WP

[Laser marker]

Marking with consideration for hairline metal surface conditions

With 11 marking patterns and 6 base patterns to choose from, KEYENCE laser markers can reduce the effects of hairline metal surfaces when marking 2D codes.

Marking patterns for 2D codes: line patterns, spiral, concentric squares and grid
11 marking patterns
Base patterns: parallel lines, grid and diagonal grid
6 base patterns
Example countermeasure: Marking pattern C

The code is marked in a circular pattern to reduce the effects of the hairline metal surface and increase reading rate stability from any angle.

Marking image: code made of overlapping round dots on a hairline metal surface

Marking image

Read result: code read inside a green frame

Read result

04 Target Surface Processing

Surface processing that changes the marking can result in reduced reading stability.

Surface treatment processes may unintentionally damage the modules as deposits accumulate in the concave areas of the code. This will change the way light hits the code, reducing the reading stability.

Marked codes on trays passing through a heat treatment furnace, shown before and after heat treatment

Before heat treatment

After heat treatment

Before and after heat treatment: the engraved dots differ in shape and depth

In some cases, codes on targets that have undergone heat treatment have substances burned into the modules, causing unstable reading.

Before plating

After plating

Before and after plating: the code visible before plating is no longer visible afterwards

Plating can sometimes cause unstable reading by changing the colour of the material surface or changing the code’s engraving amount.

[Code reader]

Tuning with consideration for reading stability

KEYENCE offers simple setup software that takes into account the various changes of a marked code to ensure optimal reading performance for stable operation.

Reading conditions are also taken into consideration during processing, with the results being used to determine if the marking conditions are suitable for mass production.

Setup software with the Start monitor, Auto Focus and Start tuning steps and a tuning graph

Easy 3-step configuration

Start monitor, Auto Focus, Start tuning, with Application selection and Target bank

Tuning

Tuning graph: Matching level (0 to 100) plotted against Brightness

[Laser marker]

Marking patterns resistant to changes in surface conditions

KEYENCE proposes marking conditions that are not easily affected by changes in surface conditions by selecting laser marking patterns to optimise the method for engraving the code.

Conventional models

Before processing

After processing

Conventional models: uneven deposits tend to change the angle of reflected light, leading to unstable code reading
Marking pattern optimisation
Marking pattern optimisation: even with deposits, the angle of reflected light does not change, allowing for stable reading

05 Traceability Management

Marking and reading conditions can change due to a variety of unseen factors. Simply confirming that a code is sufficiently readable is not enough. An error may suddenly occur one day, causing various problems that will need to be handled, and time will be needed for investigating the cause.

To prevent this, predictive maintenance should be performed by monitoring code matching levels and outputting an error if the level falls below a certain threshold.

Matching level

Whereas the reading rate only checks whether a code has been read, the matching level checks the reading tolerance of a code using a value between 1 and 100.

Reading rate 100% with Matching level 75 and with Matching level 43. Use the matching level to distinguish between codes with reading rates of 100%

Monitoring code quality and device status trends using matching level

Monitoring matching level trends makes it possible to manage code quality and check the status of processing equipment in a production line.

Marking

Device A reader

Device B reader

Matching level per lot. (1) Lot B: 54, 55, 52. (2) Lot D and Lot E: 51 and 57 in the middle column. Others: 85 to 88

(1) Code deterioration → Check marking process and calibrate as necessary

(2) Equipment error → Check for misalignment of code reader, ambient light, and other factors

Monitoring marking processes to check code quality

KEYENCE’s MD-X Series laser markers can monitor various trends that affect marking quality, including laser power and lens staining, without the need for other devices.

Laser power, Lens staining, Focal length measurement and Marking quality are monitored, with data sent to a customer server and visualised with a single device

Ethernet-based data feedback to customer servers

Visualisation of data with Web Monitor function

Harnessing the Strength of Single-Manufacturer Laser Markers and Code Readers

If a problem occurs during operation, the top priority is to investigate the cause and restore the line as quickly as possible. Conventionally, this can take a long time because the laser marker manufacturer and code reader manufacturer are not the same. However, KEYENCE can respond quickly to any problem that may arise thanks to deep experience with both marking and reading.

Problems with conventional manufacturers: each distributor says it is not a problem with their product and tells you to check the other's, so problems can be hard to solve

Contact us to learn more about how our advanced technology can help take your business to the next level.