CB3 Weaving motion between 2 waypoints

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.

Hey

Maybe you can have a look into this:

Weaving with CB3 UR10 from URScript - Technical Questions / URScript - Universal Robots Forum

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.

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

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.

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

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])