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.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings