# Two TCPs in one tool

**URL:** <https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863>\
**Category:** RobotStudio\
**Created:** [December 14, 2020, 7:12am UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863 "2020-12-14T07:12:01Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Devarsh](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@Devarsh](https://tech-community.robotics.abb.com/u/Devarsh)\
**Post date:** [December 14, 2020, 7:12am UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/1 "2020-12-14T07:12:01Z")

</div>

Hey Guys.

I want to pick an object using gripper and then draw using a pen. I have designed the tool with pen and gripper but I don’t know how I can create two TCPs in one tool because I need one tool centre point on gripper to grip object and then one tool centre point on tip of the pen to draw. Could you guys please help me how to do it?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Maxim](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/maxim/32/4429_2.png) [@Maxim](https://tech-community.robotics.abb.com/u/Maxim)\
**Post date:** [December 14, 2020, 7:17am UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/2 "2020-12-14T07:17:54Z")

</div>

Hello,

Please take a look at this video on how to create a mechanism for a gripper:

[![](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/3/37257b61d9372a31328ee631ddc911e5a12fd1f2.jpeg "How to create a mechanism for a gripper with an offset from the robot") ](https://www.youtube.com/watch?v=yhX9iCWE0To)

And then to solve your specific problem, you can add multiple items under Tooldata; One for your pen and one for the gripper.

---

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [December 14, 2020, 1:06pm UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/3 "2020-12-14T13:06:40Z")

</div>

Just teach another to the pen tool. Make sure that you give it a unique name, don’t reteach over the other. You could add as many as you like, for that matter.

---

<div class="post-metadata">

**Author:** ![Devarsh](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@Devarsh](https://tech-community.robotics.abb.com/u/Devarsh)\
**Post date:** [December 15, 2020, 10:39am UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/4 "2020-12-15T10:39:19Z")

</div>

Thank you guys but I don’t know how to teach multiple. Could you please tell me where can I find tooldata to add?

Thanks  
Devarsh

---

<div class="post-metadata">

**Author:** ![Devarsh](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@Devarsh](https://tech-community.robotics.abb.com/u/Devarsh)\
**Post date:** [December 15, 2020, 11:29am UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/5 "2020-12-15T11:29:57Z")

</div>

Hey Guys,

I added two TCPs inn one tool but how to use them when needed. I mean how can I choose which point to choose?

Thanks  
Devarsh

---

<div class="post-metadata">

**Author:** ![xerim](https://avatars.discourse-cdn.com/v4/letter/x/2bfe46/32.png) [@xerim](https://tech-community.robotics.abb.com/u/xerim)\
**Post date:** [December 15, 2020, 1:09pm UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/6 "2020-12-15T13:09:24Z")

</div>

Simply specify which TCP you wish to use when you are giving the robot instructions. For example:

MoveL robtarget,speeddata,zonedata,TCP\_1\WObj:=Wobj\_1;

This uses TCP\_1.

MoveL robtarget,speeddata,zonedata,TCP\_2\WObj:=Wobj\_1;

This uses TCP\_2.

---

<div class="post-metadata">

**Author:** ![Devarsh](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@Devarsh](https://tech-community.robotics.abb.com/u/Devarsh)\
**Post date:** [December 15, 2020, 2:19pm UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/7 "2020-12-15T14:19:58Z")

</div>

Thanks Xerim. I tried doing that way but its not picking the object it should. Could you please help me in how to do it? I tried attaching the simulation video but I don’t know which format is allowed?

Thanks in Advance.

Thanks  
Devarsh

---

<div class="post-metadata">

**Author:** ![xerim](https://avatars.discourse-cdn.com/v4/letter/x/2bfe46/32.png) [@xerim](https://tech-community.robotics.abb.com/u/xerim)\
**Post date:** [December 15, 2020, 2:28pm UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/8 "2020-12-15T14:28:53Z")

</div>

Double check the data for the TCP of the gripper is correct, if it is defined incorrectly it will cause the gripper to appear as if it is in the wrong location. You can test the TCP by jogging the robot in reorient mode and observing if the tool is drastically changing positions as you reorient around different axes.

---

<div class="post-metadata">

**Author:** ![Devarsh](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@Devarsh](https://tech-community.robotics.abb.com/u/Devarsh)\
**Post date:** [December 15, 2020, 4:57pm UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/9 "2020-12-15T16:57:29Z")

</div>

Hi Xerim,

I have tried it. Actually the orientation of the gripper is different than the other TCP. But it is at the center of two claws of gripper to make it grip at the center. Gripper picks the object but it doesn’t pick it correctly because it changes orientation of the object and picks it by some distance from the gripper.

I will try to take pictures and upload it. But could you please tell me what is the problem.

Thanks  
Devarsh

---

<div class="post-metadata">

**Author:** ![xerim](https://avatars.discourse-cdn.com/v4/letter/x/2bfe46/32.png) [@xerim](https://tech-community.robotics.abb.com/u/xerim)\
**Post date:** [December 15, 2020, 6:19pm UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/10 "2020-12-15T18:19:50Z")

</div>

So the gripper picks the object successfully and then encounters issues or is it not even in the correct position to pick the part in the first place? Sorry, not really understanding the problem.

---

<div class="post-metadata">

**Author:** ![Devarsh](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@Devarsh](https://tech-community.robotics.abb.com/u/Devarsh)\
**Post date:** [December 15, 2020, 9:04pm UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/11 "2020-12-15T21:04:23Z")

</div>

[https://youtu.be/gSZs-XbyDIU](https://youtu.be/gSZs-XbyDIU)

I have attached link to a unlisted youtube video of the simulation Have a look at it so you can see what the problem is and can help me to solve it.

I really appreciate your help. Thanks a lot.

---

<div class="post-metadata">

**Author:** ![xerim](https://avatars.discourse-cdn.com/v4/letter/x/2bfe46/32.png) [@xerim](https://tech-community.robotics.abb.com/u/xerim)\
**Post date:** [December 16, 2020, 2:09pm UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/12 "2020-12-16T14:09:19Z")

</div>

Are you using a Smart Component to do this? It seems like the only thing that isn’t working is the simulation, have you tried running this program on the actual robot in manual mode?

---

<div class="post-metadata">

**Author:** ![Devarsh](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@Devarsh](https://tech-community.robotics.abb.com/u/Devarsh)\
**Post date:** [December 16, 2020, 4:13pm UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/13 "2020-12-16T16:13:41Z")

</div>

I didn’t use smart component for this but I found what the problem was. I selected update position when attaching the object so it was doing it like this. Now it is doing it correctly. Thank you all the guys for your help.

---

<div class="post-metadata">

**Author:** ![xerim](https://avatars.discourse-cdn.com/v4/letter/x/2bfe46/32.png) [@xerim](https://tech-community.robotics.abb.com/u/xerim)\
**Post date:** [December 16, 2020, 4:38pm UTC](https://tech-community.robotics.abb.com/t/two-tcps-in-one-tool/9863/14 "2020-12-16T16:38:07Z")

</div>

Awesome, glad you got it working
