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.

Examples<br />

Limitations<br />

The position related interrupt will be generated when the start point (end point) is<br />

passed, if the specified distance from the end point (start point) is not within the length<br />

of movement of the current instruction (Trigg...).<br />

This example describes programming of the instructions that interact to generate position<br />

related interrupts:<br />

VAR intnum intno2;<br />

VAR triggdata trigg2;<br />

- Declaration of the variables intno2 and trigg2 (shall not be initiated).<br />

CONNECT intno2 WITH trap2;<br />

- Allocation of interrupt numbers that are stored in the variable intno2<br />

- The interrupt number is coupled to the interrupt routine trap2<br />

TriggInt trigg2, 0, intno2;<br />

- The interrupt number in the variable intno2 is flagged as used<br />

- The interrupt is activated<br />

- Defined trigger conditions and interrupt number are stored in the variable trigg2<br />

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

- The robot is moved to the point p1.<br />

- When the TCP reaches the point p1, an interrupt is generated and the interrupt<br />

routine trap2 is run.<br />

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

- The robot is moved to the point p2<br />

- When the TCP reaches the point p2, an interrupt is generated and the interrupt<br />

routine trap2 is run once more.<br />

IDelete intno2;<br />

- The interrupt number in the variable intno2 is de-allocated.<br />

Interrupt events in distance (without the argument \Time) give better accuracy when<br />

using flying points compared with stop points for the end point (or start point). I/O<br />

events in time (with the argument \Time) give better accuracy when using stop points<br />

compared with flying points.<br />

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

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

Saved successfully!

Ooh no, something went wrong!