# Speedl() with Force sensor feedback

**URL:** <https://forum.universal-robots.com/t/speedl-with-force-sensor-feedback/28761>\
**Category:** URScript\
**Created:** [June 1, 2023, 12:57pm UTC](https://forum.universal-robots.com/t/speedl-with-force-sensor-feedback/28761 "2023-06-01T12:57:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgonzalez](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@dgonzalez](https://forum.universal-robots.com/u/dgonzalez)\
**Post date:** [June 1, 2023, 12:57pm UTC](https://forum.universal-robots.com/t/speedl-with-force-sensor-feedback/28761/1 "2023-06-01T12:57:24Z")

</div>

Hello,

I’m trying to write a script that uses the speedl() command and force sensor readings as an input. This is for a grinding operation where we want the grinder to follow the contour of the part. We originally tried to use the force command but it either intermittently bounces when it contacts or it will completely veer off.

[![](https://img.youtube.com/vi/jEfo1mAaueI/maxresdefault.jpg "Cobot Grinding Application") ](https://www.youtube.com/watch?v=jEfo1mAaueI)

---

<div class="post-metadata">

**Author:** ![robin\_gdwl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/robin_gdwl/32/2676_2.png) [@robin\_gdwl](https://forum.universal-robots.com/u/robin_gdwl)\
**Post date:** [June 1, 2023, 1:25pm UTC](https://forum.universal-robots.com/t/speedl-with-force-sensor-feedback/28761/2 "2023-06-01T13:25:00Z")

</div>

What force sensor are you using?

---

<div class="post-metadata">

**Author:** ![dgonzalez](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@dgonzalez](https://forum.universal-robots.com/u/dgonzalez)\
**Post date:** [June 1, 2023, 1:50pm UTC](https://forum.universal-robots.com/t/speedl-with-force-sensor-feedback/28761/3 "2023-06-01T13:50:19Z")

</div>

The one that is built into the robot. We tried zeroing the force sensor and dampening function but still not having the result we want. I was reading other posts with similar issues and they seem to be using speedl() with force feedback but I’m not sure how to write the script to use this approach.

---

<div class="post-metadata">

**Author:** ![robin\_gdwl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/robin_gdwl/32/2676_2.png) [@robin\_gdwl](https://forum.universal-robots.com/u/robin_gdwl)\
**Post date:** [June 1, 2023, 2:21pm UTC](https://forum.universal-robots.com/t/speedl-with-force-sensor-feedback/28761/4 "2023-06-01T14:21:26Z")

</div>

Could you link the post you mentioned?

---

<div class="post-metadata">

**Author:** ![dgonzalez](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@dgonzalez](https://forum.universal-robots.com/u/dgonzalez)\
**Post date:** [June 1, 2023, 2:36pm UTC](https://forum.universal-robots.com/t/speedl-with-force-sensor-feedback/28761/5 "2023-06-01T14:36:41Z")

</div>

> [@Force\_mode, bouncing at contact!](https://forum.universal-robots.com/t/force-mode-bouncing-at-contact/26128):
>
> I found that someone else got same issue as me, so I will link to that post. We are working on peg-in-hole task, which involves holding a rigid object in the gripper and applying specific force on the surface where peg should be inserted. We experience the issue of bouncing as well. When contact is made with the surface of the board/ hole the gripper jumps in the opposite direction instead of applying specified wrench. We did zero\_ftsensor() before initiating force mode We did convert wrenc…
