# Share procedures between tasks

**URL:** <https://tech-community.robotics.abb.com/t/share-procedures-between-tasks/6881>\
**Category:** RobotStudio\
**Created:** [November 5, 2015, 5:31pm UTC](https://tech-community.robotics.abb.com/t/share-procedures-between-tasks/6881 "2015-11-05T17:31:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulovedder](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/paulovedder/32/4321_2.png) [@paulovedder](https://tech-community.robotics.abb.com/u/paulovedder)\
**Post date:** [November 5, 2015, 5:31pm UTC](https://tech-community.robotics.abb.com/t/share-procedures-between-tasks/6881/1 "2015-11-05T17:31:31Z")

</div>

Hello,

Is it possible to use in a task a procedure or function declared in other task?

For example,  
I have two motion tasks which control two similar robots.  
I would like to have a third task with some common procedures and functions.  
Then, I would like to use them in the motion tasks.

Is it possible? Or do I have to declare in both tasks and always pay attention to do the changes in both tasks?

Thanks,  
Paulo

---

<div class="post-metadata">

**Author:** ![PerSvensson](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/persvensson/32/1040_2.png) [@PerSvensson](https://tech-community.robotics.abb.com/u/PerSvensson)\
**Post date:** [November 8, 2015, 3:08pm UTC](https://tech-community.robotics.abb.com/t/share-procedures-between-tasks/6881/2 "2015-11-08T15:08:04Z")

</div>

In configuration of the controller\automatic loading of modules you can define it as shared and then it will be visible for all tasks.
