If camera module doesn't give coordinates to the connector the robot goes out of the loop


#1

I am doing programming where the camera module will give me coordinates of the object to pickup and it goes there and pickup.
But if the camera module doesn’t give me coordinates due to object missing or some error where object is not dispensed by the feeder machine the robot just goes out of the program and stop.
I have to restart the whole operation.
I need to Pause it and then resume it from the stop position without coming out of the program and stop. (Don’t know how to use pause function when camera module don’t give coordinates. Just require that code is possible. I am using tcp ip socket connection to communicate with the camera)
Thanks.