# PC SDK - Setting Program Pointer

**URL:** <https://tech-community.robotics.abb.com/t/pc-sdk-setting-program-pointer/4161>\
**Category:** Developer Tools\
**Created:** [May 5, 2011, 7:08am UTC](https://tech-community.robotics.abb.com/t/pc-sdk-setting-program-pointer/4161 "2011-05-05T07:08:42Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![doc-zee](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@doc-zee](https://tech-community.robotics.abb.com/u/doc-zee)\
**Post date:** [October 31, 2011, 2:26pm UTC](https://tech-community.robotics.abb.com/t/pc-sdk-setting-program-pointer/4161/21 "2011-10-31T14:26:43Z")

</div>

Because i can only use "ResetProgramPointer()"method that can only reset the pp to the “main”,i can`t use the "SetProgramPointer()"method. when i use "SetProgramPointer",there`s always problem i have ask you before.So can you tell me how can i solve it?

---

<div class="post-metadata">

**Author:** ![John\_Wiberg](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/john_wiberg/32/1485_2.png) [@John\_Wiberg](https://tech-community.robotics.abb.com/u/John_Wiberg)\
**Post date:** [October 31, 2011, 2:42pm UTC](https://tech-community.robotics.abb.com/t/pc-sdk-setting-program-pointer/4161/22 "2011-10-31T14:42:42Z")

</div>

How would the “ResetProgramPointer” function know which main is the true main? This is not a PC SDK issue, its a requirement in RAPID. You can only have one PROC named “main”.

---

<div class="post-metadata">

**Author:** ![john2012](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@john2012](https://tech-community.robotics.abb.com/u/john2012)\
**Post date:** [May 21, 2012, 8:04am UTC](https://tech-community.robotics.abb.com/t/pc-sdk-setting-program-pointer/4161/23 "2012-05-21T08:04:59Z")

</div>

Hi,

I have using ABB.Robotics.Controllers.RapidDomain and i have done the References, there are no warning, i don`t know whether they are the correct version.

---

<div class="post-metadata">

**Author:** ![Philipp](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@Philipp](https://tech-community.robotics.abb.com/u/Philipp)\
**Post date:** [November 25, 2015, 12:45pm UTC](https://tech-community.robotics.abb.com/t/pc-sdk-setting-program-pointer/4161/24 "2015-11-25T12:45:44Z")

</div>

Hi,

i tried to apply the example obove to start Rapid code. All is working fine but  
tasks(0).Start()  
takes no effect.

Setting the program pointer works (Visual prof) but Rapid programm is not running. Do i have to change controller settings in RobotStudio?  
I am using a virtual controller, is it working at all?

[Previous page](https://tech-community.robotics.abb.com/t/pc-sdk-setting-program-pointer/4161.md?page=1)
