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.

StopMove Stops robot motion<br />

Example<br />

StopMove is used to stop robot and external axes movements temporarily. If the<br />

instruction StartMove is given, movement resumes.<br />

This instruction can, for example, be used in a trap routine to stop the robot temporarily<br />

when an interrupt occurs.<br />

StopMove;<br />

WaitDI ready_input, 1;<br />

StartMove;<br />

Program execution<br />

Examples<br />

The robot movement is stopped until the input, ready_input, is set.<br />

The robot and external axes movements stop without the brakes being engaged. Any<br />

processes associated with the movement in progress are stopped at the same time as<br />

the movement is stopped.<br />

VAR intnum intno1;<br />

...<br />

CONNECT intno1 WITH go_to_home_pos;<br />

ISignalDI di1,1,intno1;<br />

TRAP go_to_home_pos<br />

VAR robtarget p10;<br />

StopMove;<br />

StorePath;<br />

p10:=CRobT();<br />

MoveL home,v500,fine,tool1;<br />

WaitDI di1,0;<br />

Move L p10,v500,fine,tool1;<br />

RestoPath;<br />

StartMove;<br />

ENDTRAP<br />

When the input di1 is set to 1, an interrupt is activated which in turn activates the<br />

interrupt routine go_to_home_pos. The current movement is stopped immediately<br />

and the robot moves instead to the home position. When di1 is set to 0, the<br />

robot returns to the position at which the interrupt occurred and continues to<br />

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

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

Saved successfully!

Ooh no, something went wrong!