CalWest ManufacturingRobotics Fontana, CA

Call or text (818) 397-4809

Machine vision inspection built into the robot cell

We add cameras and measurement sensors that check each part inside the cell, decide what happens to a bad one and keep a record of every result.

FANUC M-10iD/12 robot wrist carrying a spindle on a servo-driven linear slide, with an industrial camera and lens mounted below the spindle, blue hex-pattern guarding behind
Fig. 1FANUC M-10iD/12 with a spindle on a servo-driven slide and a camera mounted below it. A camera that rides on the robot can be carried to each spot that needs a look.
Robot vision
FANUC iRVision (2D)
Sensors
Keyence measurement and vision
Results
Logged, time-stamped, searchable
Built in
Fontana, CA

A machine vision inspection system uses a camera or a measurement sensor to check every part as it moves through a cell, then acts on the answer: pass the part on, send it to a reject bin, or stop and call someone. CalWest Robotics builds that check into the FANUC robot cells we design and build in Fontana, CA, together with the reject path and the record each result leaves behind.

In short

Machine vision inspection is a camera or sensor check that decides, part by part, whether a part is present, complete, the right size and correctly marked. In a robot cell the result decides what happens next: the robot places a good part and sends a bad one to a reject bin. We set it up with FANUC iRVision or Keyence sensors and log every result.

Inspection or guidance: what is the camera for?

Most cameras in robot cells do one of two jobs. Guidance finds the part so the robot can pick it where it lies, which our vision-guided robotics page covers. Inspection judges the part, either before the robot touches it or after the robot has worked on it.

The two jobs can share a camera, but they pull in different directions. Guidance wants a wide view so the part lands somewhere in the picture. Inspection wants a close, evenly lit view of the one feature that matters, so a small flaw covers enough pixels to be seen.

Vision guidance Vision inspection
Question it answers Where is the part, and how is it turned? Is the part right?
Output An offset the robot moves by Pass or fail, plus measured values
View Wide enough to find the part anywhere it can land Close enough to see the feature being judged
When it goes wrong The robot misses the pick A bad part leaves the cell, or a good one gets scrapped

What can automated visual inspection check?

An automated visual inspection checks what the camera can see from where it sits. The common checks, roughly from easiest to hardest:

  • Presence and absence. Is the clip, label, O-ring or insert there? A good first job, because the answer is yes or no and the feature usually contrasts with the part.
  • Orientation and assembly. Is the part the right way up, is the right color in the nest, did the cap seat all the way?
  • Measurement. Hole position and diameter, edge-to-edge distances, gaps. A 2D camera measures in the plane it looks at. It cannot see depth, or the angle of a hole drilled into the face it is looking at.
  • Reading codes and characters. Barcodes, 2D codes and printed lot numbers, checked against what the cell expects to see on that part.
  • Surface defects. Scratches, dents, voids and stains. Usually the hardest, because a scratch that shows under one light disappears under another, and the line between a cosmetic mark and a reject has to be agreed on real samples.

If height or depth is what needs checking, a 2D camera is the wrong tool. Our 2D vs 3D robot vision guide explains the difference.

Case study: a camera checks every drilled hole

On a robotic drilling cell we built, an inverted FANUC robot with a tool-changing router head drills hundreds of precise holes in complex 3D parts. The parts sit on a custom fixture table that holds them aligned to the CAD model, and the process includes a calibration step. After drilling, a vision system verifies each hole and logs the quality data.

Checking inside the cell means a bad hole is found right after it is drilled, while the cause is still on the table, instead of at assembly or at the customer. The logged results also let a quality engineer look back at any part later without pulling it off the shelf.

Lighting decides most inspection results

A camera only sees contrast. The same part can pass or fail depending on how it is lit, so the light is chosen for the feature being judged.

Light What it shows well
Backlight behind the part Outlines, through-holes and gaps, as sharp silhouettes
Ring light around the lens Printed marks and features on flat, dull surfaces
Diffuse dome Shiny or curved parts, without hot spots
Low-angle light Scratches, dents and raised marks that catch light from the side

Plant light matters as well. Sun through a dock door or a skylight changes from morning to afternoon, so an inspection station usually gets a shroud along with its own light. We tune the lighting on our floor and check it again under your plant’s light during commissioning.

How small a defect can a camera see?

Start with the field of view and the number of pixels across the sensor. A camera 2,000 pixels wide looking at a 200 mm wide field sees 0.1 mm per pixel. A flaw that covers only a pixel or two is hard to tell apart from noise, so the smallest defect you need to catch should span several pixels. Edge tools can place an edge finer than one pixel under steady lighting, which is why measuring a feature often works better than finding a tiny flaw with the same camera.

When one view can’t resolve the feature, the options are a closer view of a smaller area, a higher-resolution camera, or more than one picture. In a robot cell the robot can carry the camera to several spots, or present the part to a fixed camera at several angles. Each extra picture adds time to the cycle.

FANUC iRVision, Keyence vision integration, or both

FANUC’s iRVision runs inside the robot controller, with no separate PC to add, and FANUC lists vision inspection among its 2D uses. When the robot already carries a camera for guidance, adding an inspection step on the same controller keeps the setup in one place. Calibration is covered in our iRVision calibration guide.

A standalone Keyence vision system or measurement sensor fits when the check sits at a station the robot never visits, when the measurement needs a dedicated sensor, or when your plant has standardized on one camera line. We have integrated Keyence measurement sensors where the cell’s PLC acts on each reading. Results reach the PLC over an industrial network such as EtherNet/IP or through discrete I/O, and we write the PLC logic that decides what each result does.

What happens to a rejected part?

A verdict from the camera is only useful if the cell does the right thing with it. A reject plan covers four things:

  • Where the part goes. A reject bin, chute or tray, kept apart so a bad part can’t drift back into the good flow. Lockable bins are common where rejects have to be reviewed before they are scrapped.
  • Proof it got there. A sensor at the reject chute confirms the part actually left, so a reject dropped on the floor doesn’t count as handled.
  • Rejects in a row. Several in a row usually mean something upstream changed, or the lens needs cleaning. The cell can stop after a set count and call someone.
  • Counts on the screen. Reject and total counts on the operator screen let the crew see a problem building before the end of the shift.
Operator touch screen showing last cycle time for tables A, B and C, a row of color changeover buttons, reject and total counters with a reset button, and five fault lights
Fig. 2The operator screen we wrote for the Temecula assembly cells: last cycle time for each table, color changeover, reject and total counts, and fault lights.

The screen in Fig. 2 is a custom HMI written for the crew that runs those cells, and inspection results can be shown the same way.

Logging every inspection result

When a cell needs a record, we log every cycle and fault with a time stamp, and the log is searchable. Inspection results belong in the same log: whether the part was found, the measured values, and pass or fail. A question about a lot from last month then gets answered from data instead of memory. Counts and scrap can post to your ERP through custom Python we write between the machines and the ERP, described on our machine data and ERP integration page.

How we set up inline inspection

  1. Agree on pass and fail

    Collect good parts and real rejects, including the borderline ones, and agree which side of the line each one falls on before a camera is chosen.

  2. Camera, lens and light

    Pick the view, resolution and lighting for the smallest feature that has to be judged, and mount the camera so it can't be knocked out of position.

  3. Program the checks

    Set up the vision tools and their limits, then write the robot and PLC steps that act on each result.

  4. Prove it on known parts

    Run known good and known bad parts through the cell again and again. A check that passes a known bad part isn't finished.

  5. Run-off and commissioning

    The cell runs off in our Fontana shop, then the inspection is checked again under your plant's lighting.

Inspection is one piece of the FANUC robot cells we build: designed, fabricated, wired and programmed in our own shop, then shipped and installed at plants anywhere in the United States.

What to send us for an inspection job

  1. A part drawing or model, with the features and tolerances that decide pass or fail
  2. A handful of good parts and real rejects, including the borderline ones
  3. How the parts are checked today, and how often a bad one gets through
  4. What should happen to a rejected part
  5. A phone video of the process where the check would go

Common questions

What is the difference between vision inspection and vision guidance?
Guidance tells the robot where a part is so it can pick it or work on it. Inspection decides whether the part is right: present, complete, the correct size, the right way up and correctly marked. One camera can sometimes do both from the same picture, but inspection often needs a closer view or different lighting than the wide view used to find the part.
Can a camera replace a gauge for measuring parts?
Sometimes, for features it can see straight on, such as a hole's position and diameter or the distance between two edges. How well it measures depends on how much of the part each pixel covers, the lens, the lighting and the calibration. A camera looking straight down cannot measure depth or the angle of a hole. Where a tolerance is tight, check the camera against the gauge on real parts before relying on it.
What happens when the camera rejects a part?
The cell follows the reject plan written for it. Typically the robot drops the part into a reject bin or chute, a sensor confirms it got there and the count goes up on the operator screen. Several rejects in a row usually point to a process change or a dirty lens rather than a run of bad parts, so a cell can stop after a set count and call someone.
Do you integrate Keyence vision and measurement sensors?
Yes. We have integrated Keyence measurement sensors into cells, with the PLC acting on each reading. To guide a FANUC robot we use iRVision, which runs inside the robot controller. A Keyence or other standalone system makes sense for a dedicated measuring or inspection station, or when your plant has standardized on one camera line that your maintenance team already knows.
Can inspection be added to a robot cell that is already running?
Often, if there is a point in the cycle where the part can be seen clearly and somewhere for rejects to go. Adding a check means a camera mount, lighting, a new step in the robot or PLC program and a reject path. We service and reprogram FANUC robots we did not build, so the cell does not have to be one of ours. Send photos and a video of a full cycle.

Sources

  1. FANUC America: iRVision robotic vision systems (runs on the robot controller, 2D guidance and vision inspection)

Start a project

Bring us the process. We'll bring the cell.

Send a phone video of the manual process, or a part drawing, by text or email. We come back with a cell concept and a plan: robot, tooling, controls and code.

Call or text
Call or text
(818) 397-4809
Email
sales@calwestmfg.com
Shop
13815 Arrow Rte, Fontana, CA 92335
Hours
Mon–Fri 7:00am – 3:45pm

FANUC Authorized System Integrator (ASI). Part of CalWest Manufacturing, founded 2012: AS9100D and ISO 9001 certified, ITAR registered.