# Robottarget

**URL:** <https://tech-community.robotics.abb.com/t/robottarget/219>\
**Category:** RobotStudio S4\
**Created:** [October 12, 2004, 9:43am UTC](https://tech-community.robotics.abb.com/t/robottarget/219 "2004-10-12T09:43:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arve](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@Arve](https://tech-community.robotics.abb.com/u/Arve)\
**Post date:** [October 12, 2004, 9:43am UTC](https://tech-community.robotics.abb.com/t/robottarget/219/1 "2004-10-12T09:43:03Z")

</div>

Hello!

I am wondering if it’s possibel to write a program in rapid or through ProgramMaker that can write to a robottarget? For instance 10 position from a circle there I can put in the diameter.:smile:

---

<div class="post-metadata">

**Author:** ![Per\_Svensson](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/per_svensson/32/3412_2.png) [@Per\_Svensson](https://tech-community.robotics.abb.com/u/Per_Svensson)\
**Post date:** [October 12, 2004, 3:44pm UTC](https://tech-community.robotics.abb.com/t/robottarget/219/2 "2004-10-12T15:44:48Z")

</div>

Hi

Here is some info how you could write to a robtarget

MODULE Module1

PERS pos myPos:=[0,0,0];

PERS robtarget myTarget:=[[0,0,0],[1,0,0,0],[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];

PROC main()

!Example 1

myPos.x:=10;

myPos.y:=20;

myPos.z:=30;

myTarget.trans:=myPos;

!Example 2

myTarget.trans.x:=10;

myTarget.trans.y:=20;

myTarget.trans.z:=30;

ENDPROC

ENDMODULE
