# Control for jogging robot in C#

**URL:** <https://tech-community.robotics.abb.com/t/control-for-jogging-robot-in-c/6596>\
**Category:** RobotStudio\
**Created:** [April 20, 2015, 6:41am UTC](https://tech-community.robotics.abb.com/t/control-for-jogging-robot-in-c/6596 "2015-04-20T06:41:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nocu](https://avatars.discourse-cdn.com/v4/letter/n/4491bb/32.png) [@Nocu](https://tech-community.robotics.abb.com/u/Nocu)\
**Post date:** [April 20, 2015, 6:41am UTC](https://tech-community.robotics.abb.com/t/control-for-jogging-robot-in-c/6596/1 "2015-04-20T06:41:50Z")

</div>

What code in C# do I need to use for sending a jogging command to a robot in RobotStudio, like in the function Jog Linear where you jog the robot within the  
coordinate system defined by the active tool?

I need this for my project which involves controlling the virtual robot with the help of a Kinect v2. I plan to use it for as when I move my hand to the right, the  
virtual robot will jog to the right as well through its TCP.

---

<div class="post-metadata">

**Author:** ![John\_Verheij](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/john_verheij/32/1724_2.png) [@John\_Verheij](https://tech-community.robotics.abb.com/u/John_Verheij)\
**Post date:** [April 24, 2015, 11:55am UTC](https://tech-community.robotics.abb.com/t/control-for-jogging-robot-in-c/6596/2 "2015-04-24T11:55:45Z")

</div>

Within a C# application, with the use of the PC SDK, you can edit robtargets and thus change positions. Furthermore you can set the program pointer to a specific location and the start Rapid task from your application. As far I know it is not possible to directly move the robot from C# code, but you can implement the movement in Rapid and start this task from your application.
