# Unwanted robot movement when spot welding

**URL:** https://forum.universal-robots.com/t/unwanted-robot-movement-when-spot-welding/14779
**Category:** Technical Questions
**Tags:** welding
**Created:** [June 8, 2021, 9:26am UTC](https://forum.universal-robots.com/t/unwanted-robot-movement-when-spot-welding/14779 "2021-06-08T09:26:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/tor/32/1876_2.png) [@tor](https://forum.universal-robots.com/u/tor)
#### Post date: [June 8, 2021, 9:26am UTC](https://forum.universal-robots.com/t/unwanted-robot-movement-when-spot-welding/14779/1 "2021-06-08T09:26:48Z")

</div>

Hello!  
I am integrating a spot weld application with a UR10e at the moment. The weld head is mounted on the robot, and weld nozzle (mounted on a spring) needs to be pushed down about 10 mm for the weld to be successful. However, when the robot is rectracting from the surface, it makes an unwanted horizontal movement which causes a scratch to the copper plate underneath.

Here is a video of the movement: [Dropbox - 20210608\_105945.mp4 - Simplify your life](https://www.dropbox.com/s/t5w0upiw4pa75lb/20210608_105945.mp4?dl=0)

My guess is that the force needed to push down the nozzle is too large and the torque it causes makes the robot become slightly offset when it makes the rectrating move. Is there a way to fix this unwanted movement or is the force too much for the the robot to stay accurate?

Best,  
Tor

---

<div class="post-metadata">

### Author: ![mmi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/mmi/32/691_2.png) [@mmi](https://forum.universal-robots.com/u/mmi)
#### Post date: [June 8, 2021, 10:11am UTC](https://forum.universal-robots.com/t/unwanted-robot-movement-when-spot-welding/14779/2 "2021-06-08T10:11:11Z")

</div>

Looks like you’re using MoveJ instead of MoveL.

---

<div class="post-metadata">

### Author: ![tor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/tor/32/1876_2.png) [@tor](https://forum.universal-robots.com/u/tor)
#### Post date: [June 8, 2021, 11:30am UTC](https://forum.universal-robots.com/t/unwanted-robot-movement-when-spot-welding/14779/3 "2021-06-08T11:30:14Z")

</div>

In the video I’m using MoveL, and it’s also the same result when I’m just jogging the robot up and down 😕

---

<div class="post-metadata">

### Author: ![dbarton](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@dbarton](https://forum.universal-robots.com/u/dbarton)
#### Post date: [June 8, 2021, 12:17pm UTC](https://forum.universal-robots.com/t/unwanted-robot-movement-when-spot-welding/14779/4 "2021-06-08T12:17:44Z")

</div>

I would say you either use the direction node until a certain force is met, then retract or when the robot gets to the table, write your current position to a variable and then go to that variable position right after.

---

<div class="post-metadata">

### Author: ![tor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/tor/32/1876_2.png) [@tor](https://forum.universal-robots.com/u/tor)
#### Post date: [June 9, 2021, 7:44am UTC](https://forum.universal-robots.com/t/unwanted-robot-movement-when-spot-welding/14779/5 "2021-06-09T07:44:01Z")

</div>

It worked! When using the force sensor we discovered that the nozzle only has to be compressed about 1-2 mm to reach the 30 N needed for a good weld. By then adding a relative move moving at 0.5 mm/s just high enough to clear the surface, the robot moved up without any horisontal movements. Increasing the speed to 2 mm/s made the unwanted movements come back, so going slow was the trick.

Thanks for the help 😬
