Simulating and Editing Tasks in Teach

You can edit and simulate robot tasks without leaving the Teach environment.

This task shows you how to:

Simulate a Task

You can simulate a task without leaving the Teach environment.

  1. Click Teach .
  2. Select a robot or task.
    • The Teach panel appears:



    • The shortcut toolbar appears.
  3. In Teach, click Play .

    The simulation plays from the first robot motion to the end of the robot task.

  4. Click to enable Step Forward mode, or click to enable Step Backward mode.
    A popup message appears on the upper right screen to indicate the operation has been reached. Clicking it continues to the next instruction in Step Forward mode.

    Once it reaches to the last motion instruction, Step Forward disables.

    Once it reaches to the first motion instruction, Step Backward disables.

    If no instruction is selected, both Step Forward and Step Backward are disabled.

Edit a Task

You can edit the name and type of task.

  1. In the Teach panel, right-click the task node, and select Edit.


    The Edit Task panel appears.

  2. You can edit the name of the task. You can also select whether the task is a service, not local to the selected resource, and the organizational resource can call it. And is spawnable, calling it from the main task, and can run in parallel with the calling task.
  3. Click OK to close the Edit Task panel.
  4. Optional: At the bottom of the context menu, clicking List Trajectories will show all tragectories associated with the robot task. This includes their names and types.

Edit a Robot Motion Target

You can edit the target of a robot motion in Teach.

  1. In the Teach panel, select the operation that you want to edit.
    The robot moves to the target of the selected operation.
  2. In the work area, manipulate the tag until the robot can reach it.
  3. Click Modify Current Target to record the modification.

    If the robot cannot reach a tag, the orientation Robot snaps to the tag. You can manipulate the orientation Robot to orient the tag into a position that the robot can reach it. The robot snaps to the tag when it becomes reachable.

    Robot motions with a Home target can also be modified with Modify Current Target . Only Home Positions that are not locked can be modified. The lock status of defined Home Positions can be viewed in the Home Positions dialog box, accessible by clicking Home Positions in the Setup section of the action bar.



Edit, Copy, and Paste Motion Attributes

Parameters in the table are editable inline. Changes made reflect immediately.

  1. Double-click a parameter value.

    The value becomes editable.



  2. Enter a new value and press Enter.

    The new value appears. If the parameter change affects values of other parameters (such as a change in target Cartesian values affecting target Joint values), they are updated automatically. You can edit both TCP target and DOF (Joint value).



    When a cell is in an editable state, its value can be copied from and pasted to.

  3. In the Teach table, right-click a robot motion, and select Copy.


  4. Right-click the robot motion that the copied motion pastes before or after.
    • Select Paste Before to paste the copied motion immediately before the selected motion in the Teach table.
    • Select Paste After to paste the copied motion immediately after the selected motion in the Teach table.
    • Select Paste Special to choose whether only the operation or both the operation and target paste.


    When this Paste Special is selected, the following dialog box appears.



    The following pasting options are available:

    • Before pastes the copied operation before the selected instruction.
    • After pastes the copied operation after the selected instruction.
    • Operation only pastes the copied operation without creating new target.
    • Operation and Target pastes the copied operation and creates a new target (tag, home position) at the same location. The newly created tag or home position is specified as the target to the pasted operation.
    Notes:
    • Operation and Target applies only for robot motions.
    • When Operation and Target is selected, a new tag is created under the current tag group. If the current tag group is not available, the new tag is created under the source tag group.
  5. Click OK.

    The copied motion is pasted according to the options selected.



Comment Instructions

You can comment specific instructions in the table that you can skip during simulation.

  1. Right-click an instruction in the Teach table and select it Comment/Uncomment.


    The instruction appears commented with a // prefix, and is ignored during simulation.



  2. Right-click the commented instruction and select Comment/Uncomment to restore the instruction behavior.

Export/Do Not Export

You can Export, or Do Not Export output to robot programs.

Right-click an instruction in the Teach table and select it Export/Do Not Export.


The instruction appears with the icon, and is ignored during simulation.



During the Create Robot Program (download) if an instruction is tagged as not exported, it is ignored during translation and is not included in the robot program. The commented/uncommented simulation status of the instruction does not matter.

Translation Exported Not Exported
Commented Instruction is included in the generated robot program Instruction is not included in the generated robot program
Uncommented Instruction is included in the generated robot program Instruction is not included in the generated robot program


If an instruction is tagged as not exported in the NRL Teach, the instruction does not display in the NRL view. You can switch to the table view to see and edit any ignored instructions.

Create a Custom Instruction

A special instruction creates and the robot syntax from the target robot language enters manually.

  1. To add a Custom instruction, do one of the following:
    • Select Add Custom in the toolbox and then click the blank page.
    • Drag Add a Custom to the blank page.

    The node appears in the Teach panel. This is useful if equivalent simulation instructions do not exist or if you never want to simulate the instruction.



Switch between Tasks

When defining multiple tasks for a given robot, you can edit another task from the same Teach panel session.

  1. Right-click the task node in the Teach panel and select another task.

    You can also double-click the task node to display a list of tasks for the current resource, and select the task to switch to it.



    The Teach panel opens the selected task.

  2. Optional: To reopen the original task, repeat the previous step.

Replicate a Task

You can copy tasks across resources.

Many scenarios involve working with left- and right-hand versions of a given task. You can program one side and copy the task to the other side. Other scenarios require duplicate fixtures that need programming in different locations. Rather than recreating the program, you can copy the task and generate new tag points or trajectories automatically.

  1. Right-click the task node in the Teach panel and select it Replicate.


  2. Select the target robot to paste the task.
    The Task copy across controllers dialog box appears.

    Map the items to be copied from the source device to the target device, including:

    • Motion groups.
    • Motion controller attributes.
    • Controller profiles.
    • Home Positions.

    You can also define the trajectory reference and how trajectories are copied.

  3. Click OK to replicate the task on the target device.
    Copies of the replicated task and associated trajectories/tag groups appear in the Behavior side tab.

Save a Partial Task Template

You can save a partial template of selected instructions.

  1. From the Teach panel, select one or more instructions for a template.
  2. Right-click the selected instructions and select Save To Library.


    The Save Template to Library dialog box appears.

  3. Enter a Name for the template, and specify saving it as New or in a Existing library.
  4. Click OK.
    A Template successfully saved to library notification appears.

Edit a Called Task

You can select Teach of any ProcedureRun or ServiceCall to open a Teach panel for the selected task.

  1. Right-click a called task in the Teach panel and select Teach.


    If the called task is from another resource, a new panel is opened. If the called task is in the same resource, the current panel switches to teach the called task.

  2. You can switch back to teaching the original task by selecting Teach Caller Task of the task node.


  3. When a called task opens from the Behavior side tab, right-click the task node to display the tasks that call it.


Insert a Home Target

You can insert a Home Target from the Teach shortcut menu. This only works with Group Home Positions.

  1. Select a Robot Motion either from the Teach table or the Tree.


  2. In the Jog dialog box, in this example, set the home position to TEST_HOME1.


  3. In the Teach shortcut menu, click Insert Home Target .
    A new robot motion is inserted with a Group Home position. The New Home is created and used for the target and the existing Home position TEST_HOME1 is not used as the target. You can also reuse existing home positions.

Insert a Spot Operation

You can insert a Spot Operation in Teach Mode.

  1. In the Teach panel, select the position in the program to insert the Spot Operation.
  2. In the shortcut toolbar, click Insert a Spot Operation .
    You are prompted to select a spot or design a weld.
    Note:

    The Insert Spot Operation command first checks if the task has any Spot Operation. If it has any Spot Operation, it gets the target (tag) from the first Spot Operation and gets the Spot Trajectory from the Tag. Finding the Spot Trajectory is required to insert a new spot tag created by this command.

    The very first-time Insert Spot Operation option is tried, the task that is opened in Teach. It does not have any Spot Operations (maybe only Robot motions), which means the Spot Trajectory to which the new tag must be added is not known. That is why it lets you only select an existing Spot tag.

    The next time this is tried a Task has a Spot Operation. So now it knows the Spot Trajectory to add the Spot tag. That is why it throws a pop-up to create a new tag.

    To get a consistent behavior, select a Spot Trajectory while in Teach to make it Current, and then insert a Spot Operation. The Current Spot Trajectory has a yellow tick Mark to show it is current. The new spot tags insert into to the current Spot Trajectory.

  3. In the work area, select a spot or design weld.
    A Spot Operation appears.

    If the robot has a weldgun mounted, a spot welding operation is created task with the current active profiles. If a Servo gun is mounted, the Spot Operation points to a Spot profile. In the case of an air gun, the Spot Operation points to a spot weld task (weldgun task). A default profile is created while creating the Spot Operation if no Spot profiles are available. If multiple Spot profiles are available, the first Spot Operation created points to the first Spot profile, by default.

    If no weld gun tasks are available, a default task is created while creating the Spot Operation. If multiple weld gun tasks are available, the first Spot Operation created points to the first weld gun task, but default. If you specify a different weld gun task to the Spot Operation (by double-clicking the Spot Operation), all subsequent Spot Operations point to the newly specified weld gun task.

Edit a Spot Task

You can edit a spot task in Teach Mode.

  1. In the Teach panel, select a Spot Operation.
    The Robot TCP moves to the corresponding manufacturing spot weld.
  2. Right-click on the Spot Operation to edit its properties.
    You can:
    • Associate a different Spot profile to the Spot Operation (for Servo guns).
    • Associate a different weld gun task (for air guns).
    • Create a new Spot profile (for Servo guns).
    • Create a new weld gun task (for air guns).
    • Edit an existing Spot profile.

Insert an Arc Operation

This task shows you how to insert an arc activity.

  1. In the Teach panel, select the position in the program to insert the Arc activity.
  2. In the shortcut toolbar, click Insert an Arc Operation .
    An arc operation is created.