I have found that a problem occurs during a "wait reference" vi. Most of the time a TRUE is output from this vi when the reference has been found (limit or home), however sometimes it will stop on finding the reference but a FALSE is output.
Increasing the deadband in the move complete criteria of the trajectory settings in MAX will result in the find reference succeeding every time.
What conditions need to be met for the output to be TRUE from the wait reference vi? i.e. does the move complete criteria have to be met as well as the reference found?
I think what appears to be happening is that the reference is found, the motor is stopped, then the vi checks the difference between the demanded steps, and the encoder feedback. A difference is found (because of the backlash), and the motor halted.
I can increase my deadband to ensure all mechanisms initialise reliably, however I would like to understand why changing the deadband has an affect. Could it be caused by the gearing or backlash?