Generating a Spot or Rivet Task
This describes how to generate spot and rivet tasks.
Spot and rivet tasks contain spot and rivet operations (respectively) and create from spot or rivet trajectories and profiles.
Air guns and Servo guns (aux axes) are both supported. For a fixed TCP scenario, the following conditions must exist before executing the steps in this scenario:
- The gripper is on the robot.
- The part grabbed and moved by the robot must contain a tag to snap the part to the tool point of the gripper.
-
From the Point Fastening section of the action bar,
click Generate Robot Task
.
The system prompts you to select a Robot, Task, or Manufacturing Cell.- If a Manufacturing Cell is selected, the Create Operations
dialog displays and automatically populates with all the trajectories in the
selected Manufacturing Cell (as well as all its children) that have Robots assigned.
The dialog box is modified:
- The Robot and Controller editors replaces with a read-only Resource editor. This contains the name of the selected Manufacturing Cell.
- In the Trajectory list, there is a new column (Robot) which contains the name of the trajectory’s assigned Robot or Robots.
- If there are no trajectories with the assigned robots, a message displays indicating this situation.
- Another change is that for the Manufacturing Cell selection only, no additional Trajectories can be added to the list.
- If a Task or Industrial Robot is selected, the Create Operations dialog automatically populates with the list of Trajectories assigned to the Robot.
- In addition, OK is active, to allow for the creation of an empty Robot Task, or Tasks.

Clicking OK (and a Manufacturing Cell was selected) the created Robot Task or Tasks has the same name as the trajectory. The list option determines the type of created task. (In an example below, a Spot Operation Task creates.)
- If a Manufacturing Cell is selected, the Create Operations
dialog displays and automatically populates with all the trajectories in the
selected Manufacturing Cell (as well as all its children) that have Robots assigned.
The dialog box is modified:
-
Select a robot in the work area.
The Create Operations panel appears.

-
Select a spot trajectory, rivet trajectory, or resource for which you need to create
spot or rivet tasks.
Selected trajectories are added to the list in the Create Operations dialog box as they are selected.
Notes:If a selected spot weld trajectory has an assigned motion group and the robot has a mounted weld gun, the following conditions apply:
- If the mounted weld gun is in the same motion group (auxiliary device -- servo gun), the spot welding task is created for such spot welding trajectories based on the current spot profile. If no spot profile is current, a new spot profile is created and made current.
-
If the mounted weld gun is in a different motion group (independent device -- air gun), you can choose weld gun home positions for all the spot weld trajectories listed in the list.
If the spot weld trajectory has an assigned motion group but the robot has no mounted weld gun, an error message is displayed.
If the spot weld trajectory has no motion group assigned, you can select the robot with a weld gun mounted. The motion group associated with the selected robot is then associated with the spot weld trajectory.
-
In the General Parameters section, specify a spot profile for
task creation from the Spot Profiles list.

Use a different profile for each selected trajectory.
If required, select the Close Gun Position a task is created by clicking OK.When the closed position joint value of the gun is set to the Spot operations. The DOF values for the closed position are retrieved from the spot profile selected in the dialog.
If Close Gun Position option is unchecked and task is created by clicking OK in the dialog, the current joint value of the gun is set to the Spot operations.
The joint value set to the Spot operations can be seen in Teach. On selecting each Spot operation, spot welding motion simulates and then the tool is snapped to the target with the joint value set on the spot operation.


- Optional:
Spot Operation Template allows you to select a template that
has saved in a library from the Template list.
-
Click
to start
an applicative search for a template library.
-
Select a library from the search result.

The Template list is populated with all the templates that are defined in the selected library.
-
Click
to preview the
instructions in the selected template before using it. 
When the task is created, a sequence containing the content of the spot operation template is inserted for each spot tag. All tag targets in the template replace by the corresponding spot tags.
-
Click
-
The General Parameters section also allows you to define the
following:

- Select Optimize Cycle Time to optimize the cycle time of the task by reordering individual trajectories.
- Select Approach and Depart to create
Approach/Depart moves at the beginning and end of the task, respectively. An
Approach tag creates at the specified distance from the first tag of the first
selected trajectory. A Depart tag creates at the specified distance from the last
tag of the last selected trajectory. Note: Approach and Depart moves are available if the trajectory and the robot are under the same context.
-
Click OK to create the task.
A Spot Dressup Tag Group with default approach and departure points (as specified in Me > Preferences for Spot Simulation) aggregated to the parent of the robot appears in the Behavior side tab.
A Robot Task with robot motions for approach and departure points in the Spot Dressup Tag Group and spot operations for manufacturing welds in the spot trajectory appears in the Behavior side tab.

You can modify approach and departure points, and create via points, using Teach on the Robot Task. Any newly created via points are added to the Spot Dressup Tag Group.
Note:If the selected trajectory is out-of-date, the system prompts you to update it before the task is created.
Click Yes to update the trajectory. After the update, a notification indicates the updates that have been made to the trajectory.
A task is not created if an error message is displayed in the shortcut toolbar for a particular spot weld trajectory.
Result:

