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.

Program execution<br />

Example<br />

Syntax<br />

The coordinates returned represent the TCP position in the ProgDisp coordinate system.<br />

VAR pos pos2;<br />

VAR pos pos3;<br />

VAR pos pos4;<br />

pos2 := CPos(\Tool:=grip3 \WObj:=fixture);<br />

.<br />

.<br />

pos3 := CPos(\Tool:=grip3 \WObj:=fixture);<br />

pos4 := pos3-pos2;<br />

The x, y, and z position of the robot is captured at two places within the program<br />

using the CPos function. The tool grip3 and work object fixture are used for calculating<br />

the position. The x, y and z distances travelled between these positions<br />

are then calculated and stored in the pos variable pos4.<br />

CPos ’(’<br />

[’\’Tool ’:=’ ]<br />

[’\’WObj ’:=’ ] ’)’<br />

A function with a return value of the data type pos.<br />

Related information<br />

Described in:<br />

Definition of position Data Types - pos<br />

Definition of tools Data Types- tooldata<br />

Definition of work objects Data Types - wobjdata<br />

Coordinate systems Motion and I/O Principles - Coordinate<br />

Systems<br />

Reading the current robtarget Functions - CRobT<br />

9-CPos-2 <strong>RAPID</strong> Reference Manual

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

Saved successfully!

Ooh no, something went wrong!