# Problem with orientation not remain the same when using MOVEL

**URL:** <https://tech-community.robotics.abb.com/t/problem-with-orientation-not-remain-the-same-when-using-movel/10084>\
**Category:** RAPID Programming\
**Created:** [March 29, 2021, 6:26am UTC](https://tech-community.robotics.abb.com/t/problem-with-orientation-not-remain-the-same-when-using-movel/10084 "2021-03-29T06:26:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sixer51](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@sixer51](https://tech-community.robotics.abb.com/u/sixer51)\
**Post date:** [March 29, 2021, 6:26am UTC](https://tech-community.robotics.abb.com/t/problem-with-orientation-not-remain-the-same-when-using-movel/10084/1 "2021-03-29T06:26:17Z")

</div>

I am having trouble with controlling the ABB IRB120 robot arm moving linearly. I am using the set\_cartesian function in this script [https://github.com/robotics/open\_abb/blob/fuerte-devel/abb\_node/packages/abb\_communications/abb.py](https://github.com/robotics/open_abb/blob/fuerte-devel/abb_node/packages/abb_communications/abb.py). My understanding is that this function is corresponding to MOVEL in the RAPID programming language.

The status of the robot arm is that the trajectory of the end effector is linear, but when the orientation changes in this process. I assembled a camera in the tool end, so it is obvious that the orientation of it is changing, but when I manually jog the robot arm, it seems to be working properly.

I also tried to directly program it with RAPID programming language, but I get an error when using the program editor which stopped me to test it.

Is the orientation not remain the same in the process a reasonable condition? If not, is there any suggestion on how can I fix this problem?

---

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [March 29, 2021, 12:21pm UTC](https://tech-community.robotics.abb.com/t/problem-with-orientation-not-remain-the-same-when-using-movel/10084/2 "2021-03-29T12:21:10Z")

</div>

Are you using world coordinates? I.e., Wobj0 or none specified in the move instruction? Examine the values of the quaternions found in the robtarget data. They should match if the orientation has no change. (I expect that they are different.)

---

<div class="post-metadata">

**Author:** ![sixer51](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@sixer51](https://tech-community.robotics.abb.com/u/sixer51)\
**Post date:** [March 29, 2021, 5:32pm UTC](https://tech-community.robotics.abb.com/t/problem-with-orientation-not-remain-the-same-when-using-movel/10084/3 "2021-03-29T17:32:54Z")

</div>

Thank you, Lee! Yes, I am using world coordinates. The quaternion is changing when the robot arm is moving.

I tested directly using MOVEL to control the robot today. It works as I expected without changing the orientation in the process. Probably there is bug in my python code. Do you have any suggestions on what might be the problem?

---

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [March 29, 2021, 5:50pm UTC](https://tech-community.robotics.abb.com/t/problem-with-orientation-not-remain-the-same-when-using-movel/10084/4 "2021-03-29T17:50:02Z")

</div>

There probably is a bug in the python code. I don’t do python, but just make sure that the data matches. How many moves do you need to make in succession? Just a couple, a few, or many? You could do it in rapid if they all need to have the same orientation by assigning the orient values to be the same as the initial moveL.

---

<div class="post-metadata">

**Author:** ![RAH101](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@RAH101](https://tech-community.robotics.abb.com/u/RAH101)\
**Post date:** [October 5, 2022, 7:37am UTC](https://tech-community.robotics.abb.com/t/problem-with-orientation-not-remain-the-same-when-using-movel/10084/5 "2022-10-05T07:37:15Z")

</div>

Hi, I’m having the same behaviour when using MoveL from a robtarget A to a robtarget B, (having both the same orientation). As far as I understand MoveL does not guarantee that the orientation will not remain the same during the actual move. Is that correct?
