# CB3 Weaving motion between 2 waypoints

**URL:** <https://forum.universal-robots.com/t/cb3-weaving-motion-between-2-waypoints/43563>\
**Category:** URScript\
**Created:** [November 10, 2026, 8:21am UTC](https://forum.universal-robots.com/t/cb3-weaving-motion-between-2-waypoints/43563 "2026-11-10T08:21:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![valfred.aps](https://avatars.discourse-cdn.com/v4/letter/v/ba9def/32.png) [@valfred.aps](https://forum.universal-robots.com/u/valfred.aps)\
**Post date:** [November 10, 2026, 8:21am UTC](https://forum.universal-robots.com/t/cb3-weaving-motion-between-2-waypoints/43563/1 "2026-11-10T08:21:43Z")

</div>

I am trying to deploy an older UR10 for some simple welding applications.

All Hardware including I/O with the welding source is done, but would like a simple script to be able tp create some weaving/zigzag motion between 2 waypoints for the actual welding.

Any ideas how to accomplish this in a simple way with variables that could define the weaving offset/amplitude.

I am aware of a lot of commercial URcaps offering this, but allmost all only wants to qoute a complete system, which is not what I need.

---

<div class="post-metadata">

**Author:** ![properInproperizer](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@properInproperizer](https://forum.universal-robots.com/u/properInproperizer)\
**Post date:** [November 10, 2026, 8:49am UTC](https://forum.universal-robots.com/t/cb3-weaving-motion-between-2-waypoints/43563/2 "2026-11-10T08:49:08Z")

</div>

Hey

Maybe you can have a look into this:

[Weaving with CB3 UR10 from URScript - Technical Questions / URScript - Universal Robots Forum](https://forum.universal-robots.com/t/weaving-with-cb3-ur10-from-urscript/7569)

If you want to have an own solution, I think a good LLM, if you provide it the CB3 scripting manual & your precise requirements, it might produce a good solution. But probably you will need to manually store the start and end waypoint, which might be ugly.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![valfred.aps](https://avatars.discourse-cdn.com/v4/letter/v/ba9def/32.png) [@valfred.aps](https://forum.universal-robots.com/u/valfred.aps)\
**Post date:** [November 10, 2026, 8:59am UTC](https://forum.universal-robots.com/t/cb3-weaving-motion-between-2-waypoints/43563/3 "2026-11-10T08:59:40Z")

</div>

Thx for the reply.

I allready came across the mentioned thread, but this does not offer any solution for the CB3 enviroment, but only for the e-series.

I did reach out to Olympus Technologies, but did not recieve a reply yet.

So still looking for suggestions/scripts for this purpose

---

<div class="post-metadata">

**Author:** ![pgra](https://avatars.discourse-cdn.com/v4/letter/p/7cd45c/32.png) [@pgra](https://forum.universal-robots.com/u/pgra)\
**Post date:** [November 11, 2026, 8:14pm UTC](https://forum.universal-robots.com/t/cb3-weaving-motion-between-2-waypoints/43563/4 "2026-11-11T20:14:53Z")

</div>

The CB3 does not have the path\_offset() command. PolyScope 5 & X use that to generate the tip weaving oscillation for welding.  
Without that command, probably the next best option is to make an array of points along the path with interpolate\_pose(), then alternately adjust each pose with pose\_trans() or pose\_add(), then do a movep() to each adjusted pose with a small blend radii at a low speed.

---

<div class="post-metadata">

**Author:** ![Robpod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/robpod/32/5837_2.png) [@Robpod](https://forum.universal-robots.com/u/Robpod)\
**Post date:** [November 15, 2026, 10:47am UTC](https://forum.universal-robots.com/t/cb3-weaving-motion-between-2-waypoints/43563/5 "2026-11-15T10:47:38Z")

</div>

You can try something like this for a weaving function in pure URscript:

```python
def move_weave(target_pose, radius = 0.02):
    start_pose = get_actual_tcp_pose()
    weave_tot = point_dist(start_pose, target_pose) / radius
    count = 1

    while count < weave_tot:
        inter_pose = interpolate_pose(start_pose, target_pose, alpha=count/weave_tot)
        p1 = pose_trans(inter_pose, p[0, radius, 0, 0, 0, 0])
        p2 = pose_trans(inter_pose, p[radius, 0, 0, 0, 0, 0])
        movec(p1, p2, r=radius/4)
        p3 = pose_trans(inter_pose, p[0, -radius, 0, 0, 0, 0])
        p4 = pose_trans(inter_pose, p[-radius, 0, 0, 0, 0, 0])
        movec(p3, p4, r=radius/4)
        count = count + 1
    end

end

movej([0.34, -1.51, -2.19, 0.00, 1.46, 1.58])
move_weave(p[1.104, -0.557, 0.366, -0.36, 2.89, -0.04])

```

[![](https://img.youtube.com/vi/f2KJyfi99WI/maxresdefault.jpg "Weaving motion with Robpod Studio x Universal Robots") ](https://www.youtube.com/watch?v=f2KJyfi99WI)
