# Get the name of the current tool

**URL:** <https://tech-community.robotics.abb.com/t/get-the-name-of-the-current-tool/8601>\
**Category:** RAPID Programming\
**Tags:** rapid, tool\
**Created:** [December 12, 2018, 3:08pm UTC](https://tech-community.robotics.abb.com/t/get-the-name-of-the-current-tool/8601 "2018-12-12T15:08:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottMHA](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@scottMHA](https://tech-community.robotics.abb.com/u/scottMHA)\
**Post date:** [December 12, 2018, 3:08pm UTC](https://tech-community.robotics.abb.com/t/get-the-name-of-the-current-tool/8601/1 "2018-12-12T15:08:03Z")

</div>

Is there a way to get the name of the current tool that active in the jogging window so it can be displayed in a message box? I just want to extract the tooldata name that’s circled below.

 ![image.gif](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/1X/3586b69099b2a331f488b0b75bd637735e18e008.gif)

---

<div class="post-metadata">

**Author:** ![soup](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/soup/32/1592_2.png) [@soup](https://tech-community.robotics.abb.com/u/soup)\
**Post date:** [December 12, 2018, 3:46pm UTC](https://tech-community.robotics.abb.com/t/get-the-name-of-the-current-tool/8601/2 "2018-12-12T15:46:46Z")

</div>

[CTool](http://developercenter.robotstudio.com/BlobProxy/manuals/RapidIFDTechRefManual/doc349.html)

---

<div class="post-metadata">

**Author:** ![scottMHA](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@scottMHA](https://tech-community.robotics.abb.com/u/scottMHA)\
**Post date:** [December 12, 2018, 3:49pm UTC](https://tech-community.robotics.abb.com/t/get-the-name-of-the-current-tool/8601/3 "2018-12-12T15:49:35Z")

</div>

That doesn’t return the name? it just returns the frame, load and robheld

---

<div class="post-metadata">

**Author:** ![soup](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/soup/32/1592_2.png) [@soup](https://tech-community.robotics.abb.com/u/soup)\
**Post date:** [December 12, 2018, 3:51pm UTC](https://tech-community.robotics.abb.com/t/get-the-name-of-the-current-tool/8601/4 "2018-12-12T15:51:44Z")

</div>

Ah, sorry, reading too quickly. How about [GetSysData](http://developercenter.robotstudio.com/BlobProxy/manuals/RapidIFDTechRefManual/doc69.html)?

---

<div class="post-metadata">

**Author:** ![scottMHA](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@scottMHA](https://tech-community.robotics.abb.com/u/scottMHA)\
**Post date:** [December 12, 2018, 3:56pm UTC](https://tech-community.robotics.abb.com/t/get-the-name-of-the-current-tool/8601/5 "2018-12-12T15:56:51Z")

</div>

my understanding of that function is that you can retrieve the values of a data type from the object name?

I want to just get the name of the current tool being used whilst jogging… must be a way as ABB display it when running the tool identify routine in the basefun tasks

---

<div class="post-metadata">

**Author:** ![soup](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/soup/32/1592_2.png) [@soup](https://tech-community.robotics.abb.com/u/soup)\
**Post date:** [December 12, 2018, 4:18pm UTC](https://tech-community.robotics.abb.com/t/get-the-name-of-the-current-tool/8601/6 "2018-12-12T16:18:05Z")

</div>

Using Example 1 & 2 from the manual – it outputs the current tool as a string value:

MODULE mMain

PERS tooldata curtoolvalue;  
VAR string curtoolname;

PROC main()  
GetSysData curtoolvalue \ObjectName := curtoolname;  
TPWrite curtoolname;  
ENDPROC

ENDMODULE
