12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Instruction“:=”RobotWare-OS“:=” - Assigns a valueThe “:=” instruction is used to assign a new value to data. This value can be anythingfrom a constant value to an arithmetic expression, e.g. reg1+5*reg3.Examplesreg1 := 5;reg1 is assigned the value 5.reg1 := reg2 - reg3;reg1 is assigned the value that the reg2-reg3 calculation returns.counter := counter + 1;counter is incremented by one.ArgumentsData := ValueDataData type: AllThe data that is to be assigned a new value.ValueData type: Same as DataThe desired value.Examplestool1.tframe.trans.x := tool1.tframe.trans.x + 20;The TCP for tool1 is shifted 20 mm in the X-direction.pallet{5,8} := Abs(value);An element in the pallet matrix is assigned a value equal to the absolute value ofthe value variable.<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 11

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

Saved successfully!

Ooh no, something went wrong!