# Support for local robtargets

**URL:** <https://tech-community.robotics.abb.com/t/support-for-local-robtargets/10607>\
**Category:** RobotStudio\
**Created:** [March 1, 2022, 10:00am UTC](https://tech-community.robotics.abb.com/t/support-for-local-robtargets/10607 "2022-03-01T10:00:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tompanhuhu](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/tompanhuhu/32/3366_2.png) [@Tompanhuhu](https://tech-community.robotics.abb.com/u/Tompanhuhu)\
**Post date:** [March 1, 2022, 10:00am UTC](https://tech-community.robotics.abb.com/t/support-for-local-robtargets/10607/1 "2022-03-01T10:00:19Z")

</div>

Is there any plans for adding support for routine scope robtargets to the simulation station in robotstudio?

It’s a much better way for sorting data to define robtargets local in a proc if they are not used elsewhere, but robotstudio simulation dosen’t support that.

---

<div class="post-metadata">

**Author:** ![graemepaulin](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@graemepaulin](https://tech-community.robotics.abb.com/u/graemepaulin)\
**Post date:** [March 1, 2022, 7:40pm UTC](https://tech-community.robotics.abb.com/t/support-for-local-robtargets/10607/2 "2022-03-01T19:40:22Z")

</div>

@Maxim can you comment on this?

---

<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:** [March 5, 2022, 3:58pm UTC](https://tech-community.robotics.abb.com/t/support-for-local-robtargets/10607/3 "2022-03-05T15:58:52Z")

</div>

I would need to bring this up with R&D.

I’ll get back to you.

---

<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:** [April 22, 2022, 7:45am UTC](https://tech-community.robotics.abb.com/t/support-for-local-robtargets/10607/4 "2022-04-22T07:45:39Z")

</div>

Tompan, by default RobotStudio will place robtargets outside of procedures. But it is possible to move them into procedures in the RAPID editor. They will then become “local”. Just hit apply and sync back to station.

Try it out and let me know if this is what you were looking for.

---

<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:** [April 22, 2022, 4:59pm UTC](https://tech-community.robotics.abb.com/t/support-for-local-robtargets/10607/5 "2022-04-22T16:59:48Z")

</div>

With the exception of PERS type robtargets, as PERS declarations are not allowed in routines.

---

<div class="post-metadata">

**Author:** ![Tompanhuhu](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/tompanhuhu/32/3366_2.png) [@Tompanhuhu](https://tech-community.robotics.abb.com/u/Tompanhuhu)\
**Post date:** [April 22, 2022, 5:35pm UTC](https://tech-community.robotics.abb.com/t/support-for-local-robtargets/10607/6 "2022-04-22T17:35:52Z")

</div>

> [@Maxim Riabichev](#):
>
> Tompan, by default RobotStudio will place robtargets outside of procedures. But it is possible to move them into procedures in the RAPID editor. They will then become “local”. Just hit apply and sync back to station.
> 
> Try it out and let me know if this is what you were looking for.

The biggest issue I encounter is that different procs have targets with the same name.

Let’s say procs rPickMachine1 and 2 both have these robtargets:  
pApproach  
pPick  
pDepart

Robotstudio can’t handle that they have the same name but they exist in different scopes so it’s not a conflict.
