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.

CRobT Reads the current position (robtarget) data<br />

Example<br />

CRobT (Current Robot Target) is used to read the current position of the robot and<br />

external axes.<br />

This function returns a robtarget value with position (x, y, z), orientation (q1 ... q4),<br />

robot axes configuration and external axes position. If only the x, y, and z values of the<br />

robot TCP (pos) are to be read, use the function CPos instead.<br />

VAR robtarget p1;<br />

p1 := CRobT(\Tool:=tool1 \WObj:=wobj0);<br />

The current position of the robot and external axes is stored in p1. The tool tool1<br />

and work object wobj0 are used for calculating the position.<br />

Return value Data type: robtarget<br />

Arguments<br />

The current position of the robot and external axes in the outermost coordinate system,<br />

taking the specified tool, work object and active ProgDisp/ExtOffs coordinate system<br />

into consideration.<br />

CRobT ([\Tool] [\WObj])<br />

[\Tool] Data type: tooldata<br />

The tool used for calculation of the current robot position.<br />

If this argument is omitted the current active tool is used.<br />

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

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

by the function is related.<br />

If this argument is omitted the current active work object is used.<br />

When programming, it is very sensible to always specify arguments \Tool and \WObj.<br />

The function will always then return the wanted position, although some other tool or<br />

work object has been activated manually.<br />

<strong>RAPID</strong> Reference Manual 9-CRobT-1

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

Saved successfully!

Ooh no, something went wrong!