PlatformsFaststream SiliconFaststream RadioFaststream VisionConnected EdgeFaststream SecureMobility & Rail
ProductsSemiconductor IPWireless & RANEdge & GatewaysTracking & IdentificationSoftware & FrameworksConnected Systems
TechnologyRTL to GDSIIVerification methodologyDFT and silicon testLow-power designMixed-signal integrationDesign enablement5G protocol stackWireless and RF architectureBaseband and low PHYForward error correctionControl and data planeHigh-speed interfacesFirmware and bootSilicon root of trustSoftware-defined vehicleAutomotive OTAFunctional safety
AIAI Engineering ServicesEdge AI & Embedded MLComputer Vision EngineeringSensor Fusion & PerceptionAI Silicon & AccelerationMLOps for DevicesAI Visual InspectionPredictive MaintenanceDriver MonitoringVideo Analytics & Safety
SolutionsSemiconductorIndustrial AIConnected ProductsAsset TrackingAutomotive & MobilitySmart InfrastructureSecure IdentityWireless & SatelliteSmart WashroomsFuel ManagementSmart BuildingsWorker SafetyEnergy MonitoringSmart AgricultureSmart CityAutonomous PlatformsAssembly AutomationLiDAR Rail SafetyHardware Wallet
IndustriesSemiconductorTelecommunicationsIndustrial & ManufacturingAutomotive & MobilityTransportation & RailAerospace & DefenceHealthcare & MedicalEnergy & UtilitiesOil & GasRetailConsumer ElectronicsMedia & EntertainmentSmart Infrastructure & IoT
ServicesSystem Integration overviewASIC & SoC DesignFPGA DesignFPGA-to-ASIC ConversionAnalog, Mixed-Signal & RFHardware & High-Speed PCBEmbedded SoftwareCloud, OTA & Device ManagementManufacturing TransitionHow we engage
InsightCase StudiesKnowledge CenterWhite PapersGlossaryNewsletterResources & Support
CompanyAbout FaststreamEngineering ExcellenceLeadership & OrganisationHow We EngageQuality & ComplianceStandards & EcosystemPartners & EcosystemTrust CentreLocations & DeliveryNewsroom & MediaCareers
ContactStart a projectHow we engage
Talk to an engineer
REFERENCE ARCHITECTURE

How AI visual inspection integrates with PLC and MES

An inspection system earns its place through the handshake, not the model. A trigger arrives, a verdict must return within a fixed window, the verdict must reach the correct physical part at a reject station downstream, and the result must attach to a batch record that survives an audit. Each of those is a specific engineering decision.

ShareLinkedInXEmail
Trigger to batch record, inside one station cycle
01Encoder triggerlocked to part position02Captureexposure inside motionbudget03Inferenceworst-case latencymeasured04Verdictinside the PLC window05Part trackingshift register acrossstops06Rejectdownstream actuation07MES recordverdict on the batchA correct verdict applied to the wrong part is worse than no inspection at all.
THE HANDSHAKE

What happens per part.

01

Part in position

The PLC detects presence, or an encoder count indicates the part has reached the inspection position. This is the trigger source; a free-running timer is not acceptable on a line that stops.

02

Trigger and capture

The camera is triggered and the strobe fires. Exposure is short enough that motion blur does not consume the resolution the optics provide.

03

Inference

Capture, transfer and inference complete within the allocated window. Worst-case latency is what matters, because the tail is what misses the next trigger.

04

Verdict returned

Pass, fail or fault is returned over digital I/O or fieldbus, in a form the existing controller already understands.

05

Part tracking

The verdict travels with the part through a shift register indexed by encoder count, so it arrives at the reject station attached to the right unit.

06

Reject actuation

Air blast, diverter, gate or robot pick fires at the reject station against the tracked part.

07

Record

Verdict, image reference and model version are written to MES or a historian against the batch or serial record.

INTERFACES

How the verdict is delivered.

PLC interface options
InterfaceTypical latencyWhen it is used
Digital I/OSub-millisecondSimple pass and fail with a fault line; the most robust option
Fieldbus (PROFINET, EtherNet/IP, EtherCAT)1–10 msWhere defect class or measurement values are needed, not just a verdict
OPC UA10–100 msSupervisory and MES level rather than in the control loop
MQTT to historianNot in the control pathTraceability, analytics and long-term retention

A verdict in the control loop belongs on digital I/O or fieldbus. OPC UA and MQTT carry the record, not the decision.

THE FAULT PROTOCOL

What the line does when the system does not answer.

This is agreed with the controls engineer at design time, and it is the question that separates a commissioned system from a pilot.

Options are: reject the part by default, pass the part by default, stop the line, or fall through to manual inspection. Which is correct depends entirely on the consequence of an escaped defect against the cost of a stoppage, and it is a business decision informed by engineering rather than the reverse.

The system also has to distinguish between fault types. A camera that has failed, illumination that has degraded past a threshold, and inference that has exceeded its time budget are three different conditions that may warrant three different responses.

Degradation is the harder case. A hard failure is obvious. Illumination that has dimmed by fifteen per cent over a year is not, which is why a reference target imaged on a schedule belongs in the design rather than in a maintenance wish list.

COMMON QUESTIONS

What engineers ask before they call.

01

How does a vision system return a result to a PLC?

Over digital I/O for a simple pass or fail with a fault line, or over a fieldbus such as PROFINET, EtherNet/IP or EtherCAT where defect class or measurement values are needed. OPC UA and MQTT carry the traceability record rather than the in-loop decision.

02

How does the verdict reach the right part?

Through part tracking — typically a shift register indexed by encoder count — so the verdict travels with the part to a reject station downstream and survives line stops and restarts. Without it, a correct verdict can be applied to the wrong unit.

03

What happens if the vision system does not respond in time?

That is defined by an agreed fault protocol: reject by default, pass by default, stop the line, or fall through to manual inspection. The choice depends on the consequence of an escaped defect against the cost of a stoppage, and it is agreed at design time.

FOUND THIS USEFUL?

Pass it on.

Written for engineers. Share it with one.

ShareLinkedInXEmail
KEEP READING

Related work.

BUILD WITH FASTSTREAM

Bring us the difficult part.

Tell us the specification, the constraint and the deadline. Programmes that cross silicon, radio, embedded and AI are where Faststream is strongest.