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.

“:=” Assigns a value<br />

Examples<br />

Arguments<br />

Examples<br />

The “:=” instruction is used to assign a new value to data. This value can be anything<br />

from a constant value to an arithmetic expression, e.g. reg1+5*reg3.<br />

reg1 := 5;<br />

reg1 is assigned the value 5.<br />

reg1 := reg2 - reg3;<br />

reg1 is assigned the value that the reg2-reg3 calculation returns.<br />

counter := counter + 1;<br />

counter is incremented by one.<br />

Data := Value<br />

Data Data type: All<br />

The data that is to be assigned a new value.<br />

Value Data type: Same as Data<br />

The desired value.<br />

tool1.tframe.trans.x := tool1.tframe.trans.x + 20;<br />

The TCP for tool1 is shifted 20 mm in the X-direction.<br />

pallet{5,8} := Abs(value);<br />

An element in the pallet matrix is assigned a value equal to the absolute value of<br />

the value variable.<br />

<strong>RAPID</strong> Reference Manual 8-“:=”-1

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

Saved successfully!

Ooh no, something went wrong!