FANUC robot mastering: which method to use and how to check it
What mastering does, the methods on the Master/Cal screen and when each one applies, why a bad master moves every taught point, and how to check a robot against a reference position before it goes back to work.
FANUC robot mastering ties each axis’s joint angle to the count from the pulsecoder on its motor. FANUC masters every robot at the factory, and in normal running it is never needed again. It comes up after a battery alarm, lost controller memory, a part replaced in the arm or a crash that moved an axis, and then the method you choose decides how close the robot gets to where it was. This guide covers the methods on the Master/Cal screen of R-30iB and R-30iB Plus controllers. FANUC notes that some models have their own procedures in the mechanical unit manual, and those come first.
In short
What does mastering do?
The controller works out each joint angle from three numbers: the pulse count per degree for that axis, the pulse count at the axis’s zero-degree position, and the count the pulsecoder reads now. The first is fixed for the robot model. The second is the mastering data, kept in $DMR_GRP.$MASTER_COUN and saved in SYSMAST.SV when the controller is backed up. Mastering is the job of finding that zero-degree count again.
After mastering, calibration makes the controller read the current counts and work out where the robot is. That happens at every power-up, and the CALIBRATE item on the Master/Cal screen does it on demand.
When does a FANUC robot need mastering?
FANUC’s manuals list these cases:
- The controller lost its mastering data, for example when its memory backup battery went flat or after an initial start.
- The pulsecoders lost their counts, which is the SRVO-062 BZAL alarm after the arm’s backup batteries ran down or a pulsecoder cable was disconnected.
- A pulsecoder, motor, reducer, cable or arm was replaced.
- A crash shifted a pulsecoder relative to its axis.
The controller’s data and the pulsecoder data are held by separate batteries, which is why the first two cases need different fixes. Our SRVO-062 BZAL guide covers the battery case step by step.
FANUC mastering methods compared
| Method | Use it when | What to know |
|---|---|---|
| Fixture position mastering | Parts were replaced or reassembled and you want factory accuracy | Needs FANUC’s mastering jig, and every axis has to reach the jig position. Done to the mechanical manual or by FANUC |
| Zero position mastering | Nothing better is available | All axes lined up on their zero-degree witness marks by eye. FANUC says it is not very accurate and should be a temporary fix |
| Quick mastering, master at reference position | BZAL after a battery run-out or a cable fault, nothing mechanical changed | Needs a reference position stored beforehand. Each axis has to be within half a motor revolution of it |
| Quick mastering, master using power off position | BZAL, on R-30iB Plus at V9.40P/62 or later, and the arm didn’t move while the power was off | No reference position needed, and only axes that lost their counts are changed. Not after a robot is installed or moved |
| Quick mastering for single axis | BZAL on one or a few axes | Quick mastering rules, axis by axis, at the reference position. V8.30P software and later |
| Single axis mastering | One axis needs mastering, for example after a part on that axis was replaced | Done at any position you can define for that axis. Only as accurate as the mark you use |
| Mastering data entry | The controller lost its mastering data but the pulse counts are intact | Types in recorded $MASTER_COUN values. FANUC says it can’t be used once the pulse counts are lost |
Quick mastering needs a reference set in advance
FANUC ships each robot with the quick mastering reference at the zero-degree position. If the robot can’t reach zero once it’s installed in the cell, FANUC’s manual says to store a new reference position with 6 SET QUICK MASTER REF, which only works while the robot is still correctly mastered. A reference that was set on a good robot, with a mark you can line up by eye, is what makes a battery failure a short job. Quick mastering is not valid after a pulsecoder, motor, reducer or arm is replaced, because the position within one revolution no longer means what it did.
Single axis mastering and part replacements
FANUC’s advice for a single axis is to prepare the mark before the part comes off: a witness mark, a scribe line, a check point or a temporary dial indicator. The result can only be as good as that mark. Replacing a part on one axis can also unplug other axes’ pulsecoder cables, posting BZAL on them. FANUC’s answer is quick mastering for the axes that showed BZAL and single axis mastering for the axis that was worked on.
On many models some axes interact, such as J2 and J3, and have to be mastered together. Recent software prompts for the axes that need to be selected.
Gravity compensation and vision mastering
On robot models with gravity compensation built in, FANUC’s manual says axes that need mastering may have to be mastered all at once, and on controllers with the Gravity Compensation option the controller asks you to confirm the payload data before mastering. FANUC also sells iRCalibration, whose Vision Master Recovery uses a camera and a reference grid recorded before a repair to restore the mastering afterward.
How to reach the Master/Cal screen
-
Show the screen
Press MENU, select 0 NEXT, then 6 SYSTEM. Press F1, TYPE, select Variables and set $MASTER_ENB to 1. FANUC hides Master/Cal because mastering by mistake can make the robot move unexpectedly.
-
Back up first
FANUC recommends backing up the current mastering data before mastering. A full backup covers it.
-
Open Master/Cal
Press F1, TYPE and select Master/Cal. If SRVO-062 or SRVO-075 is posted, clear them first with RES_PCA and the jog procedure.
-
Master
Jog to the position the method needs, select the method and press F4, YES. The screen shows the new mastering data.
-
Calibrate
Select 7 CALIBRATE and press F4, YES.
-
Finish
Press F5, DONE. That sets $MASTER_ENB back to 0 and hides the screen again.
Why a bad master shifts every taught point
A taught position, recorded as joint angles or as Cartesian coordinates, ends up as joint angles the controller commands. If the mastering puts an axis’s zero in the wrong place, the controller drives that axis to the angle it believes is right, and the arm is physically somewhere else. The error grows with distance from the joint: at 1,000 mm from an axis, an error of 0.1 degree moves the tool by about 1.7 mm. Errors on several axes add up, and an error at the wrist turns the tool as well as moving it.
Everything taught before the bad master moves, all at once. User frames and tool frames taught by touching points carry the same error, and so does a vision calibration done with the robot. Touching up points to suit a bad master makes things worse later: the next correct master moves all of them again. On a robot with Dual Check Safety, the zones and limits are checked against the robot’s own idea of where it is, so a master that’s off moves them too. Our DCS guide covers what those settings do.
How do you check FANUC mastering with a reference position?
FANUC’s mechanical manuals give two checks. Run to a particular point in a program and see whether the robot lands on it. Then put every axis at 0 degrees and see whether the zero-degree witness marks line up. If the displayed and real positions disagree, compare $DMR_GRP.$MASTER_COUN with the values on the robot’s data sheet. FANUC suggests recording that variable every time the robot is mastered.
The first check works much better when it was set up before anything went wrong:
A reference check that works
- Fix a pointer on the tool and a pin on something that doesn't move, such as the robot base or the cell frame
- While the robot is known to be good, teach two or three check points with different arm and wrist postures, a few millimeters short of touching the pin
- Photograph each check point and record the gap
- After any mastering, run to each point in T1 at low speed and compare the gaps
Stopping short means a bad master shows up as a gap that changed, not as a crash. Using more than one posture catches errors that one point can hide.
After mastering, before production
- Check against the reference points and witness marks.
- Apply and verify the DCS parameters if the controller has Dual Check Safety. FANUC’s mastering procedures include this step.
- Check the tool center point and the user frames on a known feature. If a camera on the robot was involved, check the vision calibration; our iRVision calibration guide covers it.
- Store a quick mastering reference if the robot didn’t have one.
- Take a new backup and write down the mastering data. Our FANUC robot backup guide covers what to save.
- Step the program through in T1 at low speed before AUTO. We do the same with any new motion on the cells we build.
A robot that needs fixture mastering after a reducer or motor change is part of a mechanical repair, which is FANUC’s service group. We handle the robot side of a recovery on FANUC robots we didn’t build as well as our own: backups, the mastering check, frames and the program touch-up that follows. Call or text (818) 397-4809, or see our FANUC robot service page. If the robot is down with an alarm you don’t recognize, start with our FANUC alarm codes guide.
Common questions
- What is the most accurate way to master a FANUC robot?
- Fixture position mastering, with FANUC's mastering jig, is the method used at the factory, and FANUC says it gives an accuracy similar to what the robot had when it shipped. It needs the special jig and room to move every axis to the jig position, so it is usually done by FANUC or with FANUC's procedure for that model. Zero position mastering by eye is the least accurate method.
- Do I need to remaster a FANUC robot after replacing the batteries?
- Not if the batteries were replaced with the controller powered on before they went flat. Mastering is only needed if the pulsecoders lost their counts, which shows as SRVO-062 BZAL. A low battery warning, SRVO-065 BLAL, means replace them now while the data is still there. Replacing them with the power off is the usual way a battery job turns into a mastering job.
- What is quick mastering on a FANUC robot?
- A fast recovery from a lost revolution count. The pulsecoder keeps its position within one motor revolution even when the battery dies, so if each axis is jogged back within half a revolution of a reference position stored earlier, the controller can rebuild the count. It isn't valid after a pulsecoder, motor, reducer or arm is replaced. On R-30iB Plus V9.40P/62 and later there is also a mode that uses the position recorded at power off.
- Why are my points off after mastering?
- Because the new master doesn't match the old one closely enough. Every taught point is replayed through joint angles, so an error at a joint moves the tool, and the error grows with distance from that joint. Check against a reference position and the witness marks. If one axis is off, master that axis again more carefully rather than touching up points, or the next correct master will make them wrong.
- Where does a FANUC robot store its mastering data?
- In the system variable $DMR_GRP.$MASTER_COUN, one count per axis, and in the file SYSMAST.SV when the controller is backed up. FANUC's manual suggests recording the values whenever mastering is done and comparing them with the robot's data sheet when something looks wrong. A saved SYSMAST.SV can restore mastering data the controller lost, but not pulse counts the arm lost.
Sources
- FANUC America: Robot support and manuals (R-30iB Operator's Manual Basic Function B-83284EN, appendix B.2 Mastering, via the Customer Resource Center)
- FANUC M-710iC/20L mechanical unit operator's manual, B-82514EN/09: chapter 9, mastering and checking the mastering (hosted by Haas Automation)
- FANUC Tech Transfer: FANUC multiple mastering methods
- FANUC Tech Transfer: Quick mastering on R-30iB Plus using power off position
- FANUC America: iRCalibration mastering
