FANUC iRVision calibration and setup, from the shop floor
What camera calibration does, how the grid method works step by step, what changes between a camera on the arm and one over a belt, and what to check before a vision cell goes into production.
- Runs on
- The robot controller, no separate vision PC
- Standard 2D method
- Grid pattern calibration
- Grid frame
- Pointer touch-up, or Automatic Grid Frame Set on 6-axis robots
- Wide views
- Robot-generated grid calibration
- Check it at
- The corners and edges of the view
- Recalibrate after
- Any move of the camera, lens, bracket or frames
FANUC iRVision calibration is the step that turns a camera picture into positions a robot can drive to. When it is right, the robot picks the part where it lies. When it is slightly off, picks look fine in the middle of the view and miss at the edges, or drift as the part turns. This guide is written for engineers and maintenance leads. FANUC’s manual for your software version is still the reference.
In short
What does iRVision camera calibration do?
A camera measures in pixels. The robot moves in millimeters, in the user and tool frames taught on its controller. FANUC iRVision camera calibration is the model that links the two. From it, iRVision knows where the camera sits relative to the robot, which way it is looking, and how the lens bends the image toward its edges.
A 2D camera sees a flat picture, so iRVision assumes the part’s found features lie on one plane. That plane comes from the vision process. It is parallel to the XY plane of the offset frame, at the part Z height entered there, and it does not have to match where the grid sat during calibration. That Z height matters more than it looks. A feature that sits higher than the entered value is closer to the camera, so it looks larger and farther from the image center than it really is, and the error grows toward the edges of the view.
Two frames come up in every iRVision setup that uses a calibration grid:
- Grid frame. Where the calibration grid sat when the camera was calibrated. A grid fixed on a table is taught as a user frame, and a grid carried by the robot as a tool frame.
- Offset frame. The frame the vision offsets are calculated in and the pick positions are taught in: a user frame for a fixed frame offset, a tool frame for a tool offset. It is chosen in the vision process. It is a different setting from the Application Frame in the camera calibration, which is the robot frame the camera is calibrated against, usually the robot’s base frame.
After calibration, a part is placed under the camera, found, and saved as the reference position. The robot’s pick is taught on that same part without moving it. Every later find is compared with the reference, and the robot shifts its taught pick by the difference. FANUC calls this a fixed frame offset. When a camera looks at a part already in the gripper, to correct for how it was picked up, it is a tool offset.
How to calibrate iRVision with a calibration grid
Grid pattern calibration is the standard method for a 2D camera. The iRVision calibration grid is a flat, rigid plate printed with rows of dots at a known spacing, and that spacing is entered in the calibration setup. Four larger dots mark the origin and the X and Y directions, so iRVision can tell which way the grid is facing. The steps run in this order:
-
Mount and focus
Fix the camera and lens where they will stay. With the grid at the working height, set focus, aperture and exposure so every dot is sharp and solid. Lock the lens rings once they are set.
-
Place the grid
Lay the grid flat and rigid on the plane the parts sit on, filling as much of the view as possible. Dots near the corners are what pin down the lens model at the edges.
-
Teach the grid frame
Touch up the grid's origin and its X and Y directions with a pointer on an accurately taught tool center point, or let FANUC's Automatic Grid Frame Set measure it with the camera.
-
Run the calibration
iRVision finds the dots, matches them to the known spacing and solves for the camera's position and lens. Use two planes where the robot can do the moving.
-
Read the result
Confirm all four large dots were found, then look at the error on each point as well as the average. Errors bunched in one area usually mean poor focus, glare or a grid that isn't flat.
-
Set Z height and reference
Enter the Z height of the part's found features in the offset frame, set the reference position, then teach the pick on the same part.
Teaching the grid frame
Every point the camera measures is only as accurate as the grid frame, so this is the step to be most careful with. A manual touch-up depends on the pointer’s TCP and on the eye of the person jogging it. Automatic Grid Frame Set takes the eye out of it: the robot moves the camera, or the grid, through a series of angles and the controller calculates where the grid is. FANUC’s training runs it with a low speed override while watching the vision screen, which is sound practice in a crowded cell. It needs a 6-axis robot. On a 4- or 5-axis arm, such as a 4-axis delta or palletizer, the grid frame is touched up with a pointer.
One plane or two
With the grid seen at a single height and square to the camera, the software can’t reliably separate the lens focal length from the camera’s distance, because a longer lens farther away sees nearly the same picture. A 1-plane calibration is therefore usually given the nominal focal length of the lens. A 2-plane calibration shows the grid at two heights, by moving either the camera or the grid on the robot, and lets iRVision solve for both. It takes a little more setup and usually gives a better lens model toward the edges of the view, so when the robot can do the moving, two planes is the better choice.
When the grid won’t fit the view
A wide view can call for a grid bigger than anyone wants to make and store. Robot-generated grid calibration avoids that. With a fixed camera, a small target is mounted on the robot’s tool and the robot moves it to a pattern of points across the view, at two heights, building a virtual grid. With a camera on the arm, the target is fixed in the cell and the robot moves the camera over it instead. Choose the lens for the view before any of this: FANUC’s lens calculator works from focal length, working distance and field of view.
Camera on the arm vs fixed camera
The calibration steps are much the same either way. The difference is what the calibration is tied to and what can knock it out.
| Camera on the arm | Fixed camera over a table | Fixed camera over a moving belt | |
|---|---|---|---|
| Calibration tied to | The robot’s wrist | The robot’s base frame, or a user frame set as the application frame | The conveyor’s tracking frame |
| Where the grid goes | Fixed in the cell; the robot carries the camera to it | On the table, or carried by the robot for two planes | Flat on the belt |
| When the picture is taken | Robot stops at a snap position | When the robot is clear of the view | Triggered by belt travel, with the encoder count stored |
| What knocks it out | A bumped tool or bracket, a change in robot mastering | A moved bracket or a touched lens | A moved camera, a changed encoder, a slipping belt |
Fig. 1 shows a camera mounted on the arm of a FANUC M-10iD/12. With a robot-mounted camera, the calibration is tied to the robot’s wrist, and the controller works out where the camera was from the arm’s position when the picture was taken. One camera can then look at several places, but the robot’s own accuracy becomes part of every measurement, and so does the camera bracket. A tool that clips a fixture can shift the camera slightly, and the picks drift without raising an alarm.
On a belt, such as our delta robot tray loading line, the camera calibration has to agree with the conveyor’s tracking frame. A common method lays the grid on the belt under the camera, takes the picture with the encoder count stored, then runs the belt until the grid reaches the robot, which touches it up. One grid ties camera, encoder and robot together. The tracking frame and encoder scale are taught before any of that, and our iRPickTool and line tracking guide walks through the order.
Lighting for a FANUC iRVision setup
A 2D camera finds the grid dots and the parts by contrast, so the lighting sets how good the calibration and every later find can be.
- Aim a light at the work. A dedicated bar, ring or back light keeps the part looking the same from one shift to the next. Skylights, open dock doors and nearby machines change what the camera sees hour by hour, so shield the view from them where you can.
- Set a separate exposure for the grid. The calibration grid usually needs a different exposure than the parts do. Set it so the dots are solid and the background isn’t washed out, then set the part exposure separately.
- Keep exposure short on a moving belt. A part smears by however far the belt travels while the shutter is open, so doubling either the belt speed or the exposure doubles the blur. A shorter exposure needs more light.
- Watch depth of field. If parts vary in height, or sit at a different height than the grid did, closing the aperture keeps both in focus, at the cost of more light or a longer exposure.
When no amount of lighting gives a clean picture, our 2D vs 3D robot vision guide covers when a 3D sensor is worth it.
Checks before a vision cell ships
We tune vision picks on our own floor before a cell ships. The checks below apply whoever builds your cell:
Vision checks before a cell ships
- Calibration result reviewed point by point, with the calibration and vision data saved alongside the robot backup
- Test picks near all four corners and along each edge of the view
- Z height confirmed by touching the top of a part with a pointer in the offset frame and comparing with the value in the vision process
- Parts run at every rotation they can arrive in
- The worst parts you would still call good, plus the rejects: scuffed, off-color, touching, half out of view
- Room lights switched on and off and doors opened, with the finds still passing
- Camera mount checked for play, and the grid's position recorded so it goes back in the same place for recalibration
- On a belt line, picks checked at slow speed and at full belt speed across each robot's whole reach
Two of these checks also point to the cause when they fail. Picks that are good in the middle and off at the edges point to the Z height, the lens model or a grid that didn’t reach the corners. Picks that get worse as the part turns point to the angle measurement, because a small error in the found rotation moves the pick point more the farther it sits from the part model’s origin. The rest of the run-off is covered in our FAT and SAT guide.
When does iRVision need recalibrating?
No fixed interval suits every cell. A calibration holds as long as nothing it depends on moves. Recalibrate, or at the very least check, after any of these:
- The camera, lens or bracket is replaced, bumped or adjusted, including the focus and aperture rings.
- A crash on a robot that carries the camera.
- The robot is remastered. The frames and the calibration were all measured with the old mastering, and a camera on the arm is affected directly, because its position is worked out from the arm’s. FANUC’s iRCalibration vision mastering can record a reference grid location before a repair and restore mastering from it afterward.
- A user frame, tool frame or tracking frame is re-taught, or on a belt line, the encoder or its mounting is changed.
Between those events, test picks near the corners and edges of the view show whether anything has drifted. After any of them, run the same picks across the whole view before production starts.
Recalibration is easier when the cell is laid out for it: a clean, flat grid stored with the cell that goes back in the same place, a camera mount that can’t creep, and a written procedure kept with the backup. FANUC’s own calibration training makes the same point about grid placement and cell layout. More on how we set up cameras is on our vision-guided robotics page, and the programming side is on FANUC robot programming.
Common questions
- Why are iRVision picks good in the middle of the view but off at the edges?
- The usual causes are a wrong Z height, a lens model that is off, or a grid that didn't reach the corners of the view. A 2D camera assumes the part's found features sit at the Z height entered in the vision process, so a part taller or shorter than that shifts more the farther it is from the image center. Check the Z height with a pointer first, then look at the calibration error on the points near the edges.
- Can FANUC iRVision work without a camera calibration?
- In some cases. FANUC lists a 2D calibration-free vision process that returns position and rotation for parts that are not moving, without a camera calibration. Line tracking and 3D processes use a calibrated camera.
Sources
- FANUC America — iRVision robotic vision systems
- FANUC America — iRVision brochure (PDF)
- FANUC Tech Transfer — iRVision camera calibration
- FANUC Tech Transfer — iRVision fixed camera Automatic Grid Frame Set
- FANUC Tech Transfer — iRVision robot mounted camera Automatic Grid Frame Set
- FANUC Tech Transfer — iRVision fixed frame offset
- FANUC Tech Transfer — iRVision 2D lens calculator
- FANUC America — iRCalibration mastering
