12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

InstructionRaiseToUserRobotWare-OSRaiseToUser - Propagates an error to user levelRaiseToUser is used in an error handler in nostepin routines to propagate the currenterror or any other defined error to the error handler at user level. User level is in thiscase the first routine, in a call chain, above a nostepin routine.ExampleExample of instruction RaiseToUser:MODULE MyModulePROC main()VAR errnum ERR_MYDIVZERO:= -1;BookErrNo ERR_MYDIVZERO;......routine1;......ERRORIF ERRNO = ERR_MYDIVZERO THENTRYNEXT;ELSERETRY;ENDIFENDPROCENDMODULEMODULE MySysModule (SYSMODULE, NOSTEPIN, VIEWONLY)PROC routine1()......routine2;......UNDO! Free allocated resourcesENDPROC<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 371

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!