Problem when trying to use Collision Error Handling
I have tried to add an error handler for a procedure where a robot picks up items from a conveyor. Since the height of the object is unknown I am using a SearchL instruction, searching for a signal from my Vacuum sensor on the gripper tool.
However, sometimes there is not enough vacuum (often due to debris left on part), then I don't get any signal from the Vacuum Sensor and the robot has a collision. If this happens I would like to catch this in the error handler but I can't get it to work.
This is an example code:
PROC PickPart()
MoveL Offs(pPickPart,0,0,250),v1000,z50,tGripper1\WObj:=wConveyor;
MoveL Offs(pPickPart,0,0,50),v1000,z20,tGripper1\WObj:=wConveyor;
VacuumOn;
SearchL\Stop,diGripperSensor1,pSearchHit,pPickPart,v10,tGripper1\WObj:=wConveyor;
MoveL Offs(pPickPart,0,0,50),v100,z10,tGripper1\WObj:=wConveyor;
MoveL Offs(pPickPart,0,0,250),v1000,z50,tGripper1\WObj:=wConveyor;
MoveL pFromPick,v2000,z50,tDefaultTool;
ERROR
IF ERRNO=ERR_COLL_STOP THEN
SkipWarn;
TRYNEXT;
ENDIF
ENDPROC
What am I doing wrong? I have done the same thing in several robots before and gotten it to work. I am using RobotWare 6.15.08. The CollisionErrorHandler is enabled in the system parameters.
Thanks in advance!
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings