Workflow

This section will guide you to create a spot welding simulation including the automatic generation of a collision-free path using the Collision Free Planner plugin.

This section breaks down the process of creating the spot welding project in the following steps:

1.Load all necessary models, robots, tools.

2.Setup the tool (TCP).

3.Create targets.

4.Create and check robot paths/trajectories.

5.Analyze the path.

6.Organize the program sequence.

7.Generate robot programs.

Station components

You should first load a robot and a spot welding gun as the robot tool.

You can use the following components from2022世界杯南美区预选赛 :

1.Robot:Comau Smart5 NJ 130-2.6

2.Tool:OBARA Spot Welding Gun

The pedestal and fixture will be loaded using local files, and to create the floor, we will use theShape Add-In. You can look at our2022世界杯32强赛程表时间 andShape Add-in Documentationfor further details.

Example Spot Welding - Image 4

Spot Welding Gun

This section shows how you can animate the movement of the spot welding gun and create the tool center point (TCP).

To add a spot-welding gun with a movable clamping part, the corresponding TCP should be defined, and the mechanism should be attached separately. You can measure the position of the TCP point in relation to the flange by selectingTools-Measure.

Example Spot Welding - Image 5

You can create two joint targets to open and close the spot welding gun. These targets can be used in programs to simulate the spot-welding process:

Example Spot Welding - Image 6

Example Spot Welding - Image 7

Spot Welding Points

This section shows how to create the spot welding points on the car frame to move the spot welding gun to.

假设您需要的点焊and rear part of the car frame. Using the Point Utilities Add-in, you can place spot welding points directly on surfaces. After converting points to targets (this is a built-in feature of the Point Utilities add-in) you can realign the targets' orientation relative to the TCP angles:

Example Spot Welding - Image 8

Collision-free path planner

This section shows how you can automatically create a collision-free path between 2 points inside the car frame.

The vehicle frame has a force beam that prevents easy access from the front to the rear, you need to create two approach targets that allow passing inside the frame.

Example Spot Welding - Image 9

We also need to create an intermediate target between the two approach targets. We can create approach targets based on the tool position for the spot-welding targets.

Example Spot Welding - Image 10

Collision detection

Once you have a path you can double check if there are any collisions and make sure you properly defined your collision map.

Example Spot Welding - Image 11

You can check if any parts collide by selectingToolsCheck Collisions. This enables/disables collision detection.

Example Spot Welding - Image 12

You can then configure the collision map by selectingTools->Collision map.

Example Spot Welding - Image 13

Program sequence

This section helps you create the spot welding sequence split in a main program and sub programs to keep the simulation and generated programs organized.

It is good practice to split the simulation into several programs to make it more convenient for future modifications and/or team collaboration. For this station, we use a main program with several routines:

Example Spot Welding - Image 14

Cycle Time estimation

This section shows how you can calculate and display the cycle time estimate of the spot welding simulation.

You can easily add time estimation to your program by just loading theCycleTimeDisplayAll.pyscript from theC:\RoboDK\Library\Scriptsfolder. You can then call it from the main program:

Example Spot Welding - Image 15

Generate Robot program

Once you have a valid simulation sequence for your spot welding application you can generate the program with just a few clicks.

Select the program you would like to generate for your robot by right-clicking on the program and selectingGenerate robot program.

Example Spot Welding - Image 16

Example Spot Welding - Image 17

Example Spot Welding - Image 18