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.

[ \WObj] (Work Object) Data type: wobjdata<br />

Program execution<br />

Examples<br />

Limitations<br />

The work object (coordinate system) to which the robot position in the instruction<br />

is related.<br />

This argument can be omitted, and if it is, the position is related to the world<br />

coordinate system. If, on the other hand, a stationary TCP or coordinated external<br />

axes are used, this argument must be specified for a linear movement relative<br />

to the work object to be performed.<br />

See the instruction MoveC for information about circular movement.<br />

As the trigger conditions are fulfilled when the robot is positioned closer and closer to<br />

the end point, the defined trigger activities are carried out. The trigger conditions are<br />

fulfilled either at a certain distance before the end point of the instruction, or at a certain<br />

distance after the start point of the instruction, or at a certain point in time (limited to<br />

a short time) before the end point of the instruction.<br />

During stepping execution forwards, the I/O activities are carried out but the interrupt<br />

routines are not run. During stepping execution backwards, no trigger activities at all<br />

are carried out.<br />

VAR intnum intno1;<br />

VAR triggdata trigg1;<br />

...<br />

CONNECT intno1 WITH trap1;<br />

TriggInt trigg1, 0.1 \Time , intno1;<br />

...<br />

TriggC p1, p2, v500, trigg1, fine, gun1;<br />

TriggC p3, p4, v500, trigg1, fine, gun1;<br />

...<br />

IDelete intno1;<br />

The interrupt routine trap1 is run when the work point is at a position<br />

0.1 s before the point p2 or p4 respectively.<br />

If the current start point deviates from the usual, so that the total positioning length of<br />

the instruction TriggC is shorter than usual, it may happen that several or all of the trigger<br />

conditions are fulfilled immediately and at the same position. In such cases, the<br />

sequence in which the trigger activities are carried out will be undefined. The program<br />

logic in the user program may not be based on a normal sequence of trigger activities<br />

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

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

Saved successfully!

Ooh no, something went wrong!