Automation solutions · Industrial IoT · Equipment & sensorsHo Chi Minh City, Vietnam · +84 394 469 461
Send your request ↗
EN ▾
Industrial automation05/11/2026

How a PLC rejects the correct product after a vision NG result

How a PLC rejects the correct product after a vision NG result

A camera may report NG after an 80 ms inspection, but the item is already moving downstream. Firing a pneumatic reject immediately on receiving NG can eject the wrong item.

A robust line must associate every vision result with the corresponding product and its physical position.

Real production-line reference

Vision Systems Design — Cognex In-Sight bottle inspection discusses PLC recipe control and encoder-based tracking to a downstream reject.

addaScan — Where a station sits and how it rejects covers inspection placement, reject tracking and downstream verification.

Typical architecture

Photoeye trigger ---> Vision controller
       |                     |
       +----> PLC item ID <--+---- OK/NG with matching ID
                   |
              Item queue
                   |
           Position / encoder
                   |
             Reject actuator
                   |
           Reject confirmation

Timer versus encoder tracking

A timed reject may work at constant conveyor speed. However, when conveyor speed changes or the line stops, fixed delay no longer represents travelled distance.

An encoder lets the PLC save the position at trigger time, link the result to an ID and command the reject based on measured travel.

Illustrative example: 600 mm from camera to reject at 2 encoder counts/mm means 1,200 counts of travel. Actual setup must account for actuator latency, belt slip and mechanical uncertainty.

Design for failure

Timeouts and missing results should be unknown, not automatically accepted. Detect late or mismatched IDs. Decide what happens to in-flight products after a power loss. Confirm that rejected products actually leave the line using a downstream sensor.

Multi-lane lines or products that can overtake one another need more sophisticated tracking.

Sources: Cognex In-Sight case study · addaScan reject tracking guide.

Independent technical analysis; demos and media belong to their cited sources.

Cover is the actual bottle-inspection line photo published by Vision Systems Design in EPIC Vision Systems case study: https://www.vision-systems.com/factory/article/14174407/cognex-in-sight-bottle-inspection-vision-system

Have a problem to solve?

Need advice on a solution or equipment for your production line?

Send us your current setup, specifications or requirements. Our engineers will discuss it with you and propose a suitable approach.

← Back to home