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.

InstructionRETURNRobotWare-OSRETURN - Finishes execution of a routineRETURN is used to finish the execution of a routine. If the routine is a function, thefunction value is also returned.Exampleserrormessage;Set do1;.PROC errormessage()TPWrite "ERROR";RETURN;ENDPROCThe errormessage procedure is called. When the procedure arrives at theRETURN instruction, program execution returns to the instruction following theprocedure call, Set do1.FUNC num abs_value(num value)IF value

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

Saved successfully!

Ooh no, something went wrong!