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.

TriggInt Defines a position related interrupt<br />

Examples<br />

Arguments<br />

TriggInt is used to define conditions and actions for running an interrupt routine at a<br />

position on the robot’s movement path.<br />

The data defined is used for implementation in one or more subsequent TriggL, TriggC<br />

or TriggJ instructions.<br />

VAR intnum intno1;<br />

VAR triggdata trigg1;<br />

...<br />

CONNECT intno1 WITH trap1;<br />

TriggInt trigg1, 5, intno1;<br />

...<br />

TriggL p1, v500, trigg1, z50, gun1;<br />

TriggL p2, v500, trigg1, z50, gun1;<br />

...<br />

IDelete intno1;<br />

Start point<br />

The interrupt routine trap1 is run when the TCP is at a position 5 mm<br />

before the point p1 or p2 respectively.<br />

TriggL p1, v500, trigg1, z50, gun1; End point p1 or p2<br />

5 mm<br />

Figure 1 Example position related interrupt.<br />

The interrupt is generated<br />

when the TCP is here<br />

TriggInt TriggData Distance [ \Start ] | [ \Time ]<br />

Interrupt<br />

TriggData Data type: triggdata<br />

Variable for storing the triggdata returned from this instruction. These triggdata<br />

are then used in the subsequent TriggL, TriggC or TriggJ instructions.<br />

Distance Data type: num<br />

Defines the position on the path where the interrupt shall be generated.<br />

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

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

Saved successfully!

Ooh no, something went wrong!