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.

DefFrame Define a frame<br />

Example<br />

DefFrame (Define Frame) is used to calculate a frame, from three positions defining<br />

the frame.<br />

z<br />

object frame<br />

y<br />

Three positions, p1- p3, related to the object coordinate system, are used to define the<br />

new coordinate system, frame1. The first position, p1, is defining the origin of frame1,<br />

the second position, p2, is defining the direction of the x-axis and the third position,<br />

p3, is defining the location of the xy-plane. The defined frame1 may be used as a<br />

displacement frame, as shown in the example below:<br />

CONST robtarget p1 := [...];<br />

CONST robtarget p2 := [...];<br />

CONST robtarget p3 := [...];<br />

VAR pose frame1;<br />

.<br />

.<br />

frame1 := DefFrame (p1, p2, p3);<br />

.<br />

.<br />

!activation of the displacement defined by frame1<br />

PDispSet frame1;<br />

Return value Data type: pose<br />

The calculated frame.<br />

x<br />

z<br />

The calculation is related to the active object coordinate system.<br />

<strong>RAPID</strong> Reference Manual 9-DefFrame-1<br />

y<br />

p3<br />

p1<br />

frame1<br />

p2<br />

x

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

Saved successfully!

Ooh no, something went wrong!