# API controller switch AutoManual

**URL:** <https://tech-community.robotics.abb.com/t/api-controller-switch-automanual/293>\
**Category:** RobotStudio S4\
**Created:** [February 15, 2005, 8:49am UTC](https://tech-community.robotics.abb.com/t/api-controller-switch-automanual/293 "2005-02-15T08:49:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saibel](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@Saibel](https://tech-community.robotics.abb.com/u/Saibel)\
**Post date:** [February 15, 2005, 8:49am UTC](https://tech-community.robotics.abb.com/t/api-controller-switch-automanual/293/1 "2005-02-15T08:49:17Z")

</div>

Hello!

I wonder if somebody knows an API function that can switch virtual controller to AUTO and MANUAL modes. I would like to do it automatically before I make sync to stationcontroller.

By the way, sometimes than I save a program via API I get a temporary RAPID module in my program file. Robot Studio generates the module to execute “Move to target” command. Of course, I don’t want this module in my program. It helps to switch controller to manual and back to auto again before I save the program. Do you know a better way to do?

---

<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:** [February 21, 2005, 11:33am UTC](https://tech-community.robotics.abb.com/t/api-controller-switch-automanual/293/2 "2005-02-21T11:33:47Z")

</div>

Nope, there is no such command in the RobotStudio API.

For controlling the controller you need WW SDK, then you can do both to the Virtual and to your factory robots.

:stuck\_out\_tongue\_winking\_eye:

---

<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:** [February 21, 2005, 11:35am UTC](https://tech-community.robotics.abb.com/t/api-controller-switch-automanual/293/3 "2005-02-21T11:35:29Z")

</div>

Is there a better way?

Sure, just go to the Program Browser right click the controller and select Refresh, then if you see a RsTempMod just delete it.

:radioactive:

---

<div class="post-metadata">

**Author:** ![Saibel](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@Saibel](https://tech-community.robotics.abb.com/u/Saibel)\
**Post date:** [February 21, 2005, 12:29pm UTC](https://tech-community.robotics.abb.com/t/api-controller-switch-automanual/293/4 "2005-02-21T12:29:44Z")

</div>

Thank you very much!
