09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RestoPath Restores the path after an interrupt<br />

Example<br />

RestoPath is used to restore a path that was stored at a previous stage using the instruction<br />

StorePath.<br />

RestoPath;<br />

Program execution<br />

Example<br />

Restores the path that was stored earlier using StorePath.<br />

The current movement path of the robot and the external axes is deleted and the path<br />

stored earlier using StorePath is restored. Nothing moves, however, until the instruction<br />

StartMove is executed or a return is made using RETRY from an error handler.<br />

ArcL p100, v100, seam1, weld5, weave1, z10, gun1;<br />

...<br />

ERROR<br />

IF ERRNO=AW_WELD_ERR THEN<br />

gun_cleaning;<br />

RETRY;<br />

ENDIF<br />

...<br />

PROC gun_cleaning()<br />

VAR robtarget p1;<br />

StorePath;<br />

p1 := CRobT();<br />

MoveL pclean, v100, fine, gun1;<br />

...<br />

MoveL p1, v100, fine, gun1;<br />

RestoPath;<br />

ENDPROC<br />

In the event of a welding error, program execution continues in the error handler<br />

of the routine, which, in turn, calls gun_cleaning. The movement path being executed<br />

at the time is then stored and the robot moves to the position pclean where<br />

the error is rectified. When this has been done, the robot returns to the position<br />

where the error occurred, p1, and stores the original movement once again. The<br />

weld then automatically restarts, meaning that the robot is first reversed along<br />

the path before welding starts and ordinary program execution can continue.<br />

<strong>RAPID</strong> Reference Manual 8-RestoPath-1

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

Saved successfully!

Ooh no, something went wrong!