How to set up a FANUC tool frame and check the TCP
What the tool frame tells the controller, which teaching method suits which tool on an R-30iB or R-30iB Plus, how to enter a tool frame from CAD, and how to prove the TCP is right before a program depends on it.
A FANUC tool frame tells the controller where the working point of the tool is and which way the tool faces. That point, the tool center point or TCP, is what every Cartesian position, linear move and rotation is measured at. Get it right and the robot can turn the tool around its tip without the tip moving. Get it wrong and rotations swing the tip sideways, moves that change the tool’s angle wander off line, and every frame taught with that tool carries the error.
In short
This follows FANUC’s operator’s manual for R-30iB and R-30iB Plus controllers (Basic Function, B-83284EN). Teaching a tool frame means jogging close to a fixed point inside the cell, so do it in T1 at low speed, trained, and under your plant’s entry procedures.
What does a FANUC tool frame set?
The tool frame has six values, measured in the faceplate’s own coordinate system (FANUC calls it the mechanical interface frame):
- X, Y, Z: where the TCP sits relative to the center of the faceplate.
- W, P, R: how the tool frame is rotated about the faceplate’s X, Y and Z axes. FANUC notes the Z axis usually represents the tool axis.
Ten tool frames are standard, numbered 1 to 10. Tool frame 0 is the faceplate itself, with no tool. The frame doesn’t change the robot’s mechanics. It changes where the controller does its arithmetic, so jogging in TOOL, linear moves and Cartesian positions all happen at the tip.
Which tool frame method should you use?
| Method | What you teach | What it sets | Fits |
|---|---|---|---|
| Three Point | One fixed point touched from three approach directions | X, Y, Z only (W, P, R stay 0) | Straight tools along the faceplate axis |
| Four Point | The same point from four directions | X, Y, Z, plus the mean and max error of the touches | Any TCP where you want proof the touches agree (software 7DC3/21 or later) |
| Six Point (XY or XZ) | Three touches, then an origin, an X direction point and a Y or Z direction point | X, Y, Z and W, P, R | Angled tools, offset cups, anything whose axis doesn’t line up with the faceplate |
| Two Point + Z | Two touches from different spots, Z measured and typed in | X, Y from the touches; Z, W, P, R entered | 4-axis robots that can’t tilt the tool (software 7DC1/04 or later) |
| Direct Entry | Nothing; values typed in | All six | Tools with a good CAD model, or restoring a known frame |
How to teach a TCP with the three or four point method
Fix a sharp pointer tip in the cell where the robot can reach it from several angles. This is the reference point the tool tip will touch each time.
-
Open the tool frame list
MENU, 6 SETUP, F1 TYPE, Frames, then F3 OTHER and Tool Frame.
-
Choose the frame and method
Cursor to a frame number, F2 DETAIL, F2 METHOD, then Three Point or Four Point. Add a comment naming the tool.
-
Touch from the first direction
Jog the tool tip onto the reference point, cursor to Approach point 1 and hold SHIFT while pressing F5 RECORD.
-
Touch from the others
Back away, change the wrist angle a lot, touch the same point again and record. Repeat for each approach point.
-
Activate it
When every point reads USED, press PREV, then F5 SETIND and the frame number.
FANUC’s manual asks for approach directions as different from each other as possible. FANUC’s Tech Transfer tip on an offset vacuum cup rotates the wrist through several angles at the reference point. The four point screen adds a Mean Error and a Max Error, with the approach point that contributed most. Re-teach that point and watch the numbers drop.
The manual also warns that moving the main axes a long way between touches can cost accuracy, through arm deflection and backlash. Its suggestion is to teach near where the tool works and turn mostly the wrist: flange pointing down with J5 near 90 degrees for the first touch, then J6 turned 90 degrees, then J5 and J4 turned about 30 degrees each from the first pose.
Setting tool orientation with the six point method
Three point leaves W, P and R at zero, so the tool frame’s axes point the same way as the faceplate’s. When the tool sits at an angle, the six point method sets its direction too. After the three touches, it asks for:
- Orient Origin Point: a starting position.
- X Direction Point: jog along the direction you want the tool’s +X to point and record.
- Z Direction Point (or Y in the XY version): a point that sets the tool’s X-Z plane, on the +Z side.
FANUC’s manual says to jog between these three in Cartesian or tool jog so the tool’s tilt doesn’t change. Then select the new frame and jog in TOOL. +Z should move the tool along its own axis, in the direction you chose.
Entering a tool frame from CAD (direct entry)
When the tool is designed in CAD, Direct Entry is usually the most accurate starting point. Measure X, Y and Z from the center of the faceplate to the TCP, in the faceplate’s axes. W, P and R are rotations about the faceplate’s X, Y and Z. CAD packages describe rotations in their own conventions, so a frame that looks right on one axis can be wrong on another. Check the result with TOOL jog before using it.
Direct entry assumes the tool was built to the model. Adapter plates, a tool changer and a gripper mounted slightly off all count. A good habit is to enter the CAD values, then prove them with the rotation check below, or refine them by touching a pointer.
How to check a FANUC TCP by rotating about it
The quickest check works for any method:
- Select the tool frame with SHIFT and COORD, and choose WORLD or TOOL jog.
- Bring the tool tip to a fixed sharp point, at low override.
- Use the rotation jog keys, the ones that turn J4, J5 and J6 in JOINT, to turn the tool about each axis in turn.
FANUC’s manual describes tool jog as rotating the tool about the tool frame’s axes, so with a correct TCP the tip stays on the point while the arm moves around it. If the tip draws a circle, the TCP is off. If it stays put turning about one tool axis but moves about the other two, the error lies along that one axis. Run the check again after any crash or tool change.
Multiple tool frames for grippers
Many tools have more than one working point: a double gripper that picks a raw part and places a finished one, a vacuum cup beside a set of fingers, a pointer kept for teaching frames. Give each working point its own tool frame number and select it in the program before the moves that use it.
1: UTOOL_NUM=1
2:L P[1:PICK RAW] 200mm/sec FINE
3: CALL GRIP_A_CLOSE
4: UTOOL_NUM=2
5:L P[2:PICK DONE] 200mm/sec FINE
6: CALL GRIP_B_CLOSE
Each point records the tool frame it was taught in (UT on the position detail screen). If the selected tool frame doesn’t match when the point plays back, FANUC’s manual says the program isn’t executed and an alarm is posted. Position registers carry no tool number and use whatever tool is selected, and Tool_Offset shifts a point along the tool’s own axes. Our position registers guide covers both. Every user frame should be taught with a known, checked tool frame; see FANUC user frame setup.
When a tool is changed or bent
If a gripper is rebuilt or bent in a crash, there are two clean ways back:
- Re-teach the same tool frame number on the new or repaired tool. Cartesian points taught with that frame then play back with the new tip on the original spots.
- Teach a new tool frame number and run the tool change shift function, MENU, UTILITIES, Tool Offset. With Convert type set to TCP fixed, the converted program puts the new tool’s TCP where the old one was. FANUC gives that exact case, a damaged hand replaced by a new one, as the example.
Either way the robot’s joints now take a different path to the same tip positions. FANUC’s manual warns that changing a tool frame after teaching means checking the programmed points again, so step the program through in T1. If the tool’s weight or shape changed, update the payload too; see FANUC payload setup. After a crash, find out what was hit first; our SRVO-050 collision guide covers that.
We design grippers in SolidWorks and machine them in our Fontana shop, so a tool’s TCP comes from the same model it’s cut from. Our end-of-arm tooling page covers how those tools are built, and FANUC robot service covers the work we do on robots already in production, including ones we didn’t build.
Common questions
- What is tool frame 0 on a FANUC robot?
- Tool frame 0 is the mechanical interface frame, the robot's faceplate with no tool defined. FANUC's manual says that when no tool frame is defined, the faceplate frame stands in for it. Points taught with tool 0 record the faceplate center. The tool change shift function with Robot fixed can move such a program onto a proper tool frame while keeping the robot's poses.
- Why does the tool tip wander when I rotate the tool in TOOL jog?
- Because the tool center point in the active tool frame isn't where the real tip is. A correct TCP stays on its spot while the tool turns around it. If the tip draws a circle, the X, Y or Z values are off. Re-teach with approach directions that differ more, or use the four point method, which reports the error at each touch.
- Does the three point method set the tool's orientation?
- No. FANUC's manual says the three point method sets only X, Y and Z and leaves W, P and R at zero, so the tool frame's axes point the same way as the faceplate's. For a straight tool along the faceplate axis that is often fine. For an angled tool or a cup set off to one side, set the orientation with the six point method or direct entry.
- How many tool frames does a FANUC robot have?
- Ten as standard, numbered 1 to 10. FANUC's R-30iB manual describes raising the count at a controlled start with the system variable $SCR.$MAXNUMTOOL, up to 29 on R-30iB and R-30iB Mate and 253 on R-30iB Plus. Programs saved on an R-30iB Plus set above 29 can't be loaded onto an R-30iB or R-30iB Mate.
- Is the tool center point the same as the payload center of gravity?
- No. The TCP is the working point of the tool, such as the face of a vacuum cup or the tip of a torch. The payload center of gravity is where the tool's mass balances, entered separately on the payload screen and measured from the faceplate. A long, light pointer can have its TCP far from its center of gravity. Both need to be right for the robot to move and detect collisions well.
Sources
- FANUC America: Robot support and manuals (R-30iB/R-30iB Plus Operator's Manual, Basic Function, B-83284EN: 3.9.1 Setting a Tool Coordinate System, 4.3.2 Position Data, 5.2.3 Moving the Robot by Jog Feed, 9.3 Coordinate System Change Shift Functions; via the Customer Resource Center)
- FANUC Tech Transfer: FANUC User Tool Setup Tips
- FANUC Tech Transfer: Understanding OFFSETS in FANUC TP Code (tool offsets)
- FANUC America: Training courses
