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.
searchL stops the program? How to continue?
-
Mikbaek -
February 22, 2021 at 12:17 PM -
Thread is Unresolved
-
-
Mikbaek
February 22, 2021 at 12:18 PM Changed the title of the thread from “searchL stops the program? How ton continue?” to “searchL stops the program? How to continue?”. -
View routines, highlight that one, change declaration, and add error handler. It has been many years since I touched an S4C/S4C+ controller, but that is the gist of it. Or, save it to disk and edit it with a text editor.
-
Hi Lemster68.
Thanks for your reply.
I can't find the routines you describe, have no idea what decleration means, and feel a bit stupid
I think it's time to get the floppy drive going and edit the code in an editor I'll give it a shot.
Thanks
-
The User's Guide and Rapid Reference Manual are good resources. Not sure which version software you have but the BaseWare 3.2 manuals are found >here<. Start by searching for "trap" in the User's Guide for help with the Error Handler.
-
View - 2 Routines --> highlight the routine you want to add the errorhandler.
Routine - 7 Add error Handler
-
View - 2 Routines --> highlight the routine you want to add the errorhandler.
Routine - 7 Add error Handler
There it was!
Actually, that's what I did, by chance
I was cruising around the menues, and stumbled across this one, activated it, and inserted a 'trynext' command. Problem was, I couldn't find it again
Thanks Hermann, now I know where to find it.
Thank you all for your help.
Here's a youtube of the very simple task.