Skip to main content

Troubleshooting Runtime Error: safeAcos

How to find and fix overlapping radial points

Doug Ayers avatar
Written by Doug Ayers
Updated this week
Runtime error: safeAcos

The runtime error "safeAcos: Invalid argument, arg = nan" may be caused by multiple radial welds taught at the same physical point.

The overlapping points often are 3-5 points near where the welding program stopped due to the error.

To find the overlapping points, use the Move Here feature point-by-point for each point between where the program stopped and a few points before and after that. When you find a point where Move Here does not cause the robot arm to move then you've found a duplicate point and should delete it. Repeat this process to delete all duplicate points from the part.

Editing a part, the three radial weld points highlighted for emphasis
Did this answer your question?