RobotStudio event

Set error

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?

 

 

Comments

  • Hi EFG
     

    To 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 ... THEN

     

    Best regards

     

    Marcel
  • Thank you Marcel for your answer!
     

    Actually I solved my problem without using the error handler.

     

    Merry X-mas!