# Cartesian linear move can "wind up" the wrist

**URL:** <https://forum.universal-robots.com/t/cartesian-linear-move-can-wind-up-the-wrist/418>\
**Category:** URScript\
**Created:** [January 3, 2017, 10:37am UTC](https://forum.universal-robots.com/t/cartesian-linear-move-can-wind-up-the-wrist/418 "2017-01-03T10:37:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)\
**Post date:** [January 3, 2017, 2:39pm UTC](https://forum.universal-robots.com/t/cartesian-linear-move-can-wind-up-the-wrist/418/2 "2017-01-03T14:39:48Z")

</div>

You are correct in observing, that a MoveL command will always use the “shortest route” to the given pose.

You could consider using MoveJ, as this will move to the specified unique joint positions, and not the pose given.  
If you have a pose, that you would like to convert to a unique set of joint positions, the script code `get_inverse_kin()` can be used, while specifying the `qnear` parameter.

You can also use the `is_within_safety_limits()` script code, which will return whether a position is within the safety limits. If the parameter given is a joint vector, the joint position limits are also taken into account, which I believe is what you are aiming for.

Combining `get_inverse_kin()` and `is_within_safety_limits()` could perform the check that you mention above.

---

_[View the full topic](https://forum.universal-robots.com/t/cartesian-linear-move-can-wind-up-the-wrist/418)._
