Too hard pressure when searching

Sometimes when the robot executes a searchL instruction the touch sensor doesn't get a signal right away and presses too hard against the component which leads to the saved position being in the wrong place. I need to have the start and end position in searchL quite far apart from each other because the kind of products we assemble and weld can vary a lot in measurement. My thoughts are that it could maybe work to do every search twice and check and make sure that the saved positions don't differ more than a half millimeter or something like that. And if it does, the robot will do the search 2 more times. I'm not sure if this is a good idea or just a waste of time. Does anyone have any thoughts on my idea or maybe a better solution?
Tagged:

Answers