# A way to tell moveL separate Acceleration and Deceleration?

**URL:** <https://forum.universal-robots.com/t/a-way-to-tell-movel-separate-acceleration-and-deceleration/35388>\
**Category:** URScript\
**Created:** [July 23, 2024, 8:42am UTC](https://forum.universal-robots.com/t/a-way-to-tell-movel-separate-acceleration-and-deceleration/35388 "2024-07-23T08:42:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian.berggruen](https://avatars.discourse-cdn.com/v4/letter/c/8797f3/32.png) [@christian.berggruen](https://forum.universal-robots.com/u/christian.berggruen)\
**Post date:** [July 23, 2024, 8:42am UTC](https://forum.universal-robots.com/t/a-way-to-tell-movel-separate-acceleration-and-deceleration/35388/1 "2024-07-23T08:42:07Z")

</div>

Hey there,

is there a known way to seperate the acceleration and deceleration for a linear movement to a given point?

Best case is I can defice acc like the a in moveL and the dec for stopping slowly when near the target point.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![lxop](https://avatars.discourse-cdn.com/v4/letter/l/8491ac/32.png) [@lxop](https://forum.universal-robots.com/u/lxop)\
**Post date:** [July 25, 2024, 12:14am UTC](https://forum.universal-robots.com/t/a-way-to-tell-movel-separate-acceleration-and-deceleration/35388/2 "2024-07-25T00:14:43Z")

</div>

I’m not aware of a way to do this in a single command, but if you can separate the movement into two commands then you can use a different value for each. The key here will be to set a blend radius on the first command so that the robot knows that it is not supposed to come to a stop between the two movements. Depending on the speed you are moving, you might need to use MoveP instead of MoveL, as it seems to work better.  
So you would change

```auto
movel(target)

```

to

```auto
movel(intermediate, a=accel, r=0.01)
movel(target, a=decel)

```

where `intermediate` is a location (almost) anywhere along the movement path. By setting `r` in the first command, you are telling the robot to blend the two movements without stopping in between, so it should look like a single motion.
