09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Error handling<br />

Example<br />

An error is reported during a search when:<br />

- no signal detection occurred<br />

- more than one signal detection occurred – this generates an error only if the<br />

\Sup argument is used.<br />

Errors can be handled in different ways depending on the selected running mode:<br />

Continuous forward<br />

No position is returned and the movement always continues to the programmed<br />

destination point. The system variable ERRNO is set to ERR_WHLSEARCH<br />

and the error can be handled in the error handler of the routine.<br />

Instruction forward<br />

No position is returned and the movement always continues to the programmed<br />

destination point. Program execution stops with an error message.<br />

Instruction backward<br />

During backward execution, the instruction just carries out the movement without<br />

any signal supervision.<br />

MoveL p10, v100, fine, tool1;<br />

SearchL \Stop, sen1, sp, p20, v100, tool1;<br />

.<br />

ERROR<br />

IF ERRNO=ERR_WHLSEARCH THEN<br />

MoveL p10, v100, fine, tool1;<br />

RETRY;<br />

ENDIF<br />

The robot searches from position p10 to p20. If no signal detection occurs, the<br />

robot moves back to p10 and tries once more.<br />

<strong>RAPID</strong> Reference Manual 8-SearchL-5

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

Saved successfully!

Ooh no, something went wrong!