how to insert 'error handler' via pendant?

Mikbaek
✭
Hi. I'm new to robot-programming, but I did some simple programs to load/unload a machine with parts. I need to figure out how to 'ignore' an error when doing a 'searchL' that doesn't hit any parts, and do the next search. I do programming directly on the pendant, and though I can understand that I need to create an 'error handler' it doesn't help much, because I can't find the function anywhere. I wanted to just insert a 'try next' function, but how do I set up an error-handler? Thanks, and sorry for my basic knowledge 
pict. is of my simple code.

pict. is of my simple code.

0
Comments
-
Here's a good example of an error handler:
If you simply wish you skip a generated error, try using SkipWarn
There is a lot of information about Error Handlers and how to construct them in the Technical Reference Manual - Rapid Overview and also in the Technical Reference Manual - Instructions, Functions and Data Types0 -
Thanks for the reply Xerim, but I program the robot directly via the pendant, and I don't have the commands 'errno' and 'skipwarn' to choose from. Also, I can't insert an error handler - rutine anywhere.
However, I think I found this so called 'handler' somewhere else, set it to record errors and inserted a 'RAISE' command right after the 'SearchL'.
Now it continues to the next line in the program without stopping
I have no idea why...0 -
0
Categories
- All Categories
- 5.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 328 IRC5
- 65 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 821 RAPID Programming
- 8 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings