How to recover a fanuc robot from common errors?
A method of controlling a dispensing system, having a robot that moves along a motion segment and applies a material to a workpiece, automatically determines a backup distance for the robot after an error has occurred during the dispensing of a first portion of the material. The backup distance is based on an operational speed of the robot. The robot is relocated to a backup position based on this backup distance to ensure that the robot reaches the operational speed at least by a time that the robot reaches a re-application position. The re-application position is at or near where the application of the first portion of the material ended. Therefore, gaps, overlaps, and puddles in the material on the workpiece are prevented.