FANUC MOTN-017 limit error: why a joint ran out of range
What the limit error means, how to find the joint that is out of range, the usual causes in the program, the frames and the offsets, how to jog clear safely, and why the fix belongs in the path rather than the axis limits.
FANUC MOTN-017 is the limit error. The controller worked out that the next move, or the jog you asked for, would take a joint past its software limit, and it stopped rather than make the move. The alarm names the motion group and the axis. Most of the time the fix is in the program: a point taught with the wrong configuration, a linear move that picks a different turn, a frame that changed, or an offset that pushed a good point out of reach. This guide covers how to find the joint, the usual causes, how to jog clear and how to fix the path. Menu names are from R-30iB and R-30iB Plus controllers.
In short
What does the MOTN-017 limit error mean?
Every FANUC robot has a software range for each joint, the joint operating area. It is set at MENU, 6 SYSTEM, F1 TYPE, Axis Limits, as a lower and upper value per axis in degrees, or millimeters for a linear axis. When a programmed move or a jog would take a joint past one of those values, the controller refuses it and posts MOTN-017.
The alarm reads like MOTN-017 Limit error (G:1, A:...). G is the motion group. A identifies the axis, but on many software versions the value is printed in hexadecimal and ends in “Hex”, and it can contain letters. Don’t read it as a plain joint number. FANUC’s alarm code list gives the remedy in a few words: reteach the position that is out of limits.
How to find which joint hit its limit
- Press POSN on the teach pendant, then F2, JNT, to see the current joint angles.
- Open MENU, 6 SYSTEM, F1 TYPE, Axis Limits, and compare each angle with its lower and upper values. The axis sitting at or near a limit is the one.
- If the alarm posted on a program line, put the cursor on that line’s position, press F5, POSITION, and use F5, REPRE to switch between Cartesian and joint values. A taught joint angle close to a limit is a point with no room for error.
Write down the program name, the line and the joint angles before you move anything. That record is what tells you which of the causes below you have.
Common causes of FANUC limit errors
A point taught in an awkward configuration. A FANUC position stores more than X, Y, Z, W, P and R. It also stores a configuration: wrist flip or no flip, arm left or right, up or down, front or back, and the turn numbers of the axes that can rotate more than once. Two points can sit a few millimeters apart with J6 a full turn apart. A point touched up with the wrist wound near the end of its travel leaves no room for the next move.
A linear move picks a different turn. FANUC’s manual says a joint move goes to the target considering the number of rotations, but a linear or circular move keeps an attitude close to the start point and selects the number of turns at the target automatically. The robot can arrive with a different turn number than the one taught, and near the end of a wrist axis’s travel that can be the difference between in range and out.
A frame that changed. Cartesian points are stored relative to a user frame and a tool frame. If someone re-taught the user frame or edited the tool frame values, every point in that frame moves with it, and some may now need joint angles past a limit. A frame number that doesn’t match the one active posts a different alarm, but changed frame values post nothing until the robot tries to get there. Our user frame setup guide covers how frames are taught and checked.
An offset pushes a good point out of reach. Position register offsets, tool offsets and iRVision offsets all add to a taught point. A large offset, a part far from where it usually sits, or a vision find on the wrong feature can move the target past what an axis can reach. Our position registers guide covers offsets, and our iRVision calibration guide covers why a bad calibration produces bad offsets.
Someone changed the limits. FANUC’s manual cautions that changing the joint operating area can make an alarm appear at a position programmed earlier. If MOTN-017 started after a controller was restored, replaced or reconfigured, compare the Axis Limits screen with the last good backup.
How to jog out of a limit error safely
-
Record first
Write down the alarm text, the program line and the joint angles, and photograph the pendant screen.
-
Make the cell safe
Switch to T1, set a low override, and follow your plant's procedure before anyone works near the robot.
-
Jog in JOINT
Press COORD until JOINT is selected and jog the named axis away from its limit, back toward the middle of its range. A Cartesian jog may keep driving the same joint toward the limit.
-
Watch the tool and the dress
A joint near its limit often has the cables, hoses or tool near a guard or fixture. Move slowly and watch them.
-
Fix before you restart
Correct the point, the motion type, the frame or the offset, then step the program through in T1 before AUTO.
Resist touching up the point where the robot stopped. That point is usually the symptom, and touching it up can leave the next point, or the next part, in the same trouble.
Fix the point or the path, not the axis limits
The fixes that last are in the program:
- Re-teach the point with a configuration that leaves the axis room, for example J6 near the middle of its range at a pick so the rotation in both directions fits.
- Use a joint move where the shape of the path doesn’t matter. It keeps the taught turn numbers.
- Add an intermediate point so the robot unwinds a wrist axis before the move that needs it.
- Check offsets before they reach the motion. A PLC or vision result that is far outside the normal range should stop the cycle with a clear message, not drive the robot to a limit.
Leave the axis limits alone. FANUC’s manual says the range can’t be extended beyond the factory setting, that the mechanical stoppers should be adjusted to match the software limits, and that new limits only take effect after a power cycle. A limit tighter than the factory value was often set on purpose, to keep the arm or its dress clear of a column, a guard or a machine. On a robot with Dual Check Safety, joint position checks may also be part of the cell’s safety design, set from its risk assessment. Our DCS guide covers what those checks do. Some robots also support switchable J1 stroke limits on the SETUP, Stroke limit screen, which a program can change, so check which set is active if a J1 limit error appears only in certain programs.
MOTN-023 In singularity, briefly
MOTN-023 In singularity is the other motion alarm that shows up on the same kind of path. The wrist is at or near a singular point, where the controller can’t settle on one joint configuration for the Cartesian position. On a typical six-axis FANUC arm that happens with J5 near 0 degrees. FANUC’s manual says a linear or circular move can’t pass through a singular point. Use a joint move, add the wrist joint (Wjnt) motion option, or re-teach the point with the wrist tipped a few degrees off straight.
Close to a wrist singularity, a small Cartesian move or jog can ask J4 and J6 for large rotations, which is one way a linear move runs a wrist axis into its limit. FANUC’s singular point check function, enabled by setting $MNSING_CHK to TRUE, warns when a point is taught at a singular point and offers to record it as a joint position instead.
Check paths offline before the floor
Limit and singularity problems are cheap to find in simulation and expensive to find with a part in the gripper. We lay out and check robot paths in FANUC ROBOGUIDE before they run on a real robot, and new motion is first stepped through slowly in T1 on the floor. Our robot offline programming page covers that work.
If a robot keeps hitting limit errors and the program has been patched too many times to follow, that is a programming job. We work on FANUC robots other companies installed as well as the cells we build in Fontana, CA. Call or text (818) 397-4809 with the alarm text, the program and a backup. More on that work is on our FANUC robot programming and FANUC robot service pages, and the other common alarms are in our FANUC alarm codes guide.
Common questions
- What does MOTN-017 Limit error mean on a FANUC robot?
- The controller worked out that a move or a jog would take a joint past its software limit, the joint operating area set on the SYSTEM, Axis Limits screen, so it refused to make the move. The alarm text names the motion group and the axis. FANUC's remedy is to reteach the position that is out of limits.
- How do I tell which axis caused MOTN-017?
- The A field in the alarm identifies the axis, but on many software versions it is printed as a hex value and can include letters, so it doesn't always read as a joint number. The surest check is to press POSN, then F2 JNT, and compare each joint angle with the upper and lower values on the SYSTEM, Axis Limits screen.
- Can I just increase the axis limits to fix MOTN-017?
- Usually not, and not as a first step. FANUC's manual says the range can't be extended past the factory setting, that the mechanical stoppers should match the software limits, and that changing the range can make alarms appear at positions programmed earlier. A limit tighter than the factory value was often set on purpose, to keep the arm or its cables clear of something. Fix the point or the path instead.
- Why do I get MOTN-017 on a linear move but not a joint move?
- A joint move goes to the taught joint configuration, turn numbers included. FANUC's manual says a linear move keeps an attitude close to the start point and picks the number of turns at the target automatically, so the robot can arrive with a different turn number than the one taught. Near the end of a wrist axis's travel, that difference can put the joint out of range.
- What is MOTN-023 In singularity?
- The wrist is at or near a singular point, typically with J5 near 0 degrees on a six-axis FANUC arm, where the controller can't settle on one joint configuration for the Cartesian position. FANUC's manual says linear and circular moves can't pass through a singular point. Use a joint move, add the wrist joint (Wjnt) option, or re-teach the point with the wrist tipped off straight.
Sources
- FANUC R-30iB/R-30iB Plus controller operator's manual (Basic Function), B-83284EN/10: 3.11 joint operating area, 4.3.2 position data and configuration, 5.7 singular point check function (hosted by RoboChallenge)
- FANUC America: Robot support and manuals (Alarm Code List B-83284EN-1, via the Customer Resource Center)
