![RobotStudio event](https://new.abb.com/images/librariesprovider89/default-album/rs_webinar_invitation_2025_2.jpg)
how to insert 'error handler' via pendant?
![Mikbaek](https://secure.gravatar.com/avatar/372a18d5fbd7cacb20b51b6335060e93/?default=https%3A%2F%2Fus.v-cdn.net%2F5020483%2Fuploads%2Fdefaultavatar%2FK2266OAKOLNC.jpg&rating=g&size=200)
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 ![;) ;)](https://forums.robotstudio.com/resources/emoji/wink.png)
pict. is of my simple code.
![;) ;)](https://forums.robotstudio.com/resources/emoji/wink.png)
pict. is of my simple code.
![](https://us.v-cdn.net/5020483/uploads/editor/71/g3b6ikgfmkgx.jpg)
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.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 321 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 808 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings