Set error

EFG
✭
I have an application where I use SearchL for finding a hole in a component. When the search is failed, the PP is moved to an Error section (ERR_WHLSEARCH) at the end of the program, which is what it's supposed to do.
At another part of the routin, I would like to move in to the same Error section without using a SearchL instruction. Can I somehow "set" or trigger the error?
0
Comments
-
Hi EFGTo use the same section you could call a subroutine in the error case and also from the other part. Or you could use the RAISE instruction (see manual) to create an other error and then check in the ERROR section with IF ERRNO = ERR_WHLSEARCH OR ... THENBest regardsMarcel0
-
Thank you Marcel for your answer!Actually I solved my problem without using the error handler.Merry X-mas!0
Categories
- All Categories
- 5.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 338 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 832 RAPID Programming
- 14 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings