# How to set the joint value correctly outside a simulation programmaticaly ?

**URL:** <https://tech-community.robotics.abb.com/t/how-to-set-the-joint-value-correctly-outside-a-simulation-programmaticaly/11109>\
**Category:** Developer Tools\
**Tags:** jointmover, robotstudio-sdk, joint, smartcomponent\
**Created:** [May 2, 2023, 2:50pm UTC](https://tech-community.robotics.abb.com/t/how-to-set-the-joint-value-correctly-outside-a-simulation-programmaticaly/11109 "2023-05-02T14:50:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@Alexandre](https://tech-community.robotics.abb.com/u/Alexandre)\
**Post date:** [May 2, 2023, 2:50pm UTC](https://tech-community.robotics.abb.com/t/how-to-set-the-joint-value-correctly-outside-a-simulation-programmaticaly/11109/1 "2023-05-02T14:50:10Z")

</div>

Hello,

I changed the joint value of my robot using the smartcomposant “JointMover” and build my own smartcomposant with the help of this [page](https://developercenter.robotstudio.com/api/robotstudio/articles/How-To/RobotMechanism/GetRobotCoordinatesExample.html) and this [one](https://developercenter.robotstudio.com/api/robotstudio/articles/How-To/RobotMechanism/SetRobotJointValuesExample.html) and it is working fine. My problem is when I am trying to move the robot with the Virtual Controller it go back to the value before. I suppose that the values was not transfert to the controller and it overwrite the values of the station.

Do you know a way to resolve this problem ?

Thank you in advance 🙂
