Creating a Robot Program

This procedure describes how to create a robot program from a robot task.

Tags within a task show as x, y, z coordinates. You can translate activities (such as spot weld activities) and IO signals from a robot task into an offline program. You can translate attributes of activities into a program.

You can download these activity types for robot tasks depending on the translator:

  • Robot Motions
  • Device Motions
  • Arc Operations
  • Spot Operations
  • Drill and Rivet Operations (customization required)
  • Waypoint Motions (customization required)
  • Paint Operations
  • Move Along Activities
  • Grab/Release Instructions
  • IO and variable assignments
  • Wait Instructions
  • Pulse Instructions
  • Run Task Instructions
  • Goto and Label Instructions
  • If (Conditional) Instructions
  • For and While Loop Instructions
  • Return Instructions
  • Break Instructions
  • Custom Instructions
  • Timer Instructions
  • Test Instructions
  • Trigger Instructions
  • Templates

You can use custom instructions to include comments and other robot program instructions that do not support simulation so they can be included as-is in the output robot program.

The following features support robot motions: Auxiliary Axes, Fixed TCP, Circular motion, Wrist-axes interpolation, Home Position Target, offset and relative motions, and conveyor tracking.

Riveting operations are treated as standard robot motions. You can change this through the customization of the translators.

Drill, Rivet, and Waypoint instructions are treated as standard robot motions. You can change this through the customization of the translators.

For templates, you can translate the instructions inside the template individually unless the translator manages the specific template in a specific way.

Please refer to the supported translator section for the specific features supported for each robot language.


Before you begin:
  • You must have the OLP translator macro library for your robot model imported into the ENOVIA database. You can do this by selecting PLM Access > Import > 3D XML and importing the 3D XML files located in your installation under \startup\OLP\Translators.
  • You must have a robot loaded that owns at least one robot task.
See Also
Importing a Robot Program
  1. From the Analysis & Output section of the action bar, click Create Robot Program .
    You are prompted to select a robot, motion group, or task.
  2. Select a robot.

    The Create Industrial Robot Program dialog box appears.

    If the translator for the robot is in the database, it is automatically selected.

    Note: If a translator for the selected robot is not in the database, you must first import it as described in Importing Ready-to-Use Robots Installed on Premises and the Cloud.

    • If a motion group was selected, all procedures for the main robot in that motion group are displayed as available, including robot tasks, main procedures, services, test procedures, and sub-procedures.
    • If a task was selected, all procedures owned by the robot that the task belongs to are displayed in Available Tasks, and the selected task is automatically included in Selected Tasks to be downloaded.
  3. Optional: Click Select Translator to choose a different translator, if required.

    You may want to select a different translator to:

    • Use a different version of the current translator.
    • Use the XML translator.
    • Use a customized translator before updating your settings to use the customized translator permanently.
    • Create or import a program for another robot manufacturer (useful when replacing a robot)

    The Applicative Search bar is highlighted, allowing you to enter a search term for the required translator.

  4. For some translators, the Options list also appears that allows you to select a specific robot controller version:

    In some cases, you can modify the translation based on the robot controller version used.

  5. Click to select a Template directory.

    If the current translator supports template download, Template is available to select the template directory that contains your template programs. The specific behavior for how a template is used is translator-specific.

    When you specify a template directory, you can use the controller backup as a template for generating the robot programs. Depending on the features and controller type, you can use the system variable and existing programs to improve the generated programs. See Supported Translators for more information regarding template support for the translator that you are using.



    You can click to clear the current selection.

  6. From the Available Items list, select robot programs to download and click to move them to the Selected Items list.

    You can move programs between Available Items and Selected Items with the following commands:

    Moves selected items in the Available Items list to the Selected Items list.
    Moves all items in the Available Items list to the Selected Items list.
    Returns all items in the Selected Items list to the Available Items list.
    Moves selected items in the Selected Items list to the Available Items list.



  7. Optional: Click Export Messages to save any generated messages as a text or Excel file.

    Each message that appears in the Message Reporting panel is output to the Excel or text file, and contains the same details.

    Export Messages is disabled until there are messages available that can be exported.

    The Export Log Files dialog box appears, prompting you to enter a file name, location, and file type (*.txt or *.xls) to save.
    Table 1. Excel Messages File Format
    No. Severity Message Object in App Line Number
    1 Notice The identifier RobotTask was changed to RobotTas to conform with the naming rules. RobotTask
    2 Warning Invalid FANUC group number. The FANUC position P[1]uses group number 2 but there are no corresponding devices in V6 to upload this target information. This Fanuc group will be ignored. Based on the values of the parameters RailGroup, ToolGroup, and WorkGroup here are the devices for each Fanuc motion group. Fanuc motion group number 1 should have these devices: R2000iB-165F.1 For a total of 6 joints. Fanuc motion group number 2 is not used. Fanuc motion group number 3 is not used. Fanuc motion group number 4 is not used. Fanuc motion group number 5 is not used. 28
    3 Error Unexpected error.
  8. Select the required download options.

    When you select Use Design Positions, the tag and part locations moves to their nominal state.

    • Leave this option cleared if you are, for example, downloading tags that are attached to a positioner that is not controlled by the robot, and the positioner needs to be rotated from its design position into the welding position before downloading.
    • Similarly, you would leave this option cleared if you are using product buildup and the positions of the products are controlled by the process plan.

    Select Download Called Tasks to download any tasks that are called by the selected tasks.

  9. Select Simulation Verified Download to expand and view its options.

    • Select Enable to verify the download by the simulating the task. You can then select the task to simulate.
    • Select View to visualize the simulation of the selected task.
    • From the simulation, select Use simulated turns And configs to use the turns and configs rather than those chosen during Teach.

    The selected task is simulated when you click Next. During simulation, the following information is captured for each robot motion:

    • The joint values for the robot
    • The Cartesian position with turns and configs
    • The profiles used (tool, object frame, accuracy, and motion)
    • The locations of products that you can use in the robot task. A product is used if tags used in the robot task are attached to that part.

    Use the following values in the downloaded program in place of the persisted values.

  10. Click Next.
    The robot programs are generated and the Programs tab appears:

  11. In the SaveTo: section, you can choose to save the generated programs locally to a specified directory, or the server.

    To save the programs locally, select File and click to select the destination directory. The selected directory then appears in the dialog box.

    To save the programs in the database, select Server and select a resource (Manufacturing Cell, Robot, Tool, or Control Device). The dialog box indicates the selection.

    If the files downloaded already exist in the zip file for the robot attached to the resource selected, a warning message appears. You can use the File Name: field to edit the names of the files.

    When you explore the resource, you can view the attached document that was created during download.

  12. Each generated program appears in a respective tab.

    • You can edit NRL programs manually. All changes are saved.
    • You can rename the file by editing File Name:.

  13. Click OK to save the files and close the Create Robot Program dialog box.

Result: