I am currently trying to create a search function for a IRC5. On my gripper I have 2 proxies. One at the top and one at the bottom of my gripper.
I am trying to find the angle at which i need to pick up a object, that I can offset my workobject.
Currently I have the following code written: Lines 75 to 95 Work well.
The robot stops at the position where the boBottomPIP goes on, and then executes Proc GlassAngle.
The robot then rotates as well. My issue is, that the program does not seem to execute the second trap, but it goes back to the GlassSearch procedure.
I agree with Denis. But if you insist on trying to make your code work here is what I would try. Move GlassAngle out of the trap, put it in GlassSearch where appropriate. You can remove IDelete inbottomPP from GlassAngle, you already did that in the trap.