About Prompt
- Prompt Type – Dynamic
- Prompt Platform – ChatGPT, Grok, Deepseek, Gemini, Copilot, Midjourney, Meta AI and more
- Niche – Automated Manufacturing
- Language – English
- Category – Robotics Process Automation
- Prompt Title – AI Prompt for Automating Assembly Line Robot Programming
Prompt Details
**Prompt Type:** Dynamic
**Target Platform:** All AI platforms capable of code generation and understanding manufacturing processes.
**Goal:** Generate robot program code (e.g., for robotic arms) for automated assembly line tasks, reducing manual programming efforts and enabling flexible manufacturing.
**Prompt Structure:**
“`
## Robot Program Generation for Automated Assembly Line
**1. Assembly Task Description:**
Provide a detailed description of the assembly task. This should include:
* **Part Information:** Specify the parts involved, including their names, dimensions, materials, and any relevant CAD models or mesh files (if available). Example: “Part A: Metal bracket (10cm x 5cm x 2cm), CAD model: bracket.stl; Part B: Plastic cover (12cm x 7cm x 1cm), CAD model: cover.obj”
* **Assembly Steps:** Describe the sequence of actions the robot needs to perform. Be precise about the movements and operations required. Include details like gripping points, insertion forces, tolerances, and required orientations. Example: “Step 1: Pick up Part A from location A1 with gripper G1, applying a force of 5N. Step 2: Rotate Part A by 90 degrees around the Z-axis. Step 3: Move Part A to location B1 above Part B. Step 4: Align Part A with Part B with a tolerance of 0.5mm. Step 5: Insert Part A into Part B with a force of 10N.”
* **Environment Description:** Describe the assembly line environment, including the locations of parts, fixtures, tools, and any obstacles. Provide coordinates or relative positions if possible. Example: “Part A feeder located at coordinates (100, 200, 300). Part B fixture located at coordinates (400, 500, 300). Obstacle 1: Conveyor belt at Z=150mm.”
* **Safety Considerations:** Specify any safety requirements, such as collision avoidance zones, maximum speeds, or emergency stop conditions. Example: “Maintain a minimum distance of 5cm from the conveyor belt. Maximum robot speed: 1m/s.”
**2. Target Robot Platform:**
Specify the target robot platform and programming language. Include the robot manufacturer, model, and controller type. Example: “ABB IRB 6700 robot with IRC5 controller. Programming language: RAPID.”
**3. Desired Program Output:**
Specify the desired format and structure of the generated robot program code. Include any specific functions or routines that should be used. Example: “Generate a complete RAPID program that includes routines for picking, placing, rotating, and inserting parts. Include error handling and safety checks.”
**4. Optimization Criteria (Optional):**
If applicable, specify any optimization criteria for the generated program, such as cycle time minimization, energy efficiency, or path optimization. Example: “Minimize cycle time while ensuring smooth robot movements and avoiding collisions.”
**5. Example Code Snippets (Optional):**
Provide examples of existing robot program code or code snippets that can be used as a reference or starting point. This can help the AI model understand the specific syntax and conventions of the target robot platform.
**Example Prompt Instance:**
## Robot Program Generation for Automated Assembly Line
**1. Assembly Task Description:**
* **Part Information:** Part A: Cylindrical peg (diameter 2cm, length 5cm), CAD model: peg.stl; Part B: Hole (diameter 2.1cm, depth 6cm), located on a fixed base.
* **Assembly Steps:** Step 1: Pick up Part A from location A1 (x=10, y=20, z=30) with gripper G1. Step 2: Move Part A above Part B (x=50, y=60, z=70). Step 3: Insert Part A into Part B with a force of 2N.
* **Environment Description:** Clear workspace, no obstacles. Part A feeder located at (10, 20, 30). Part B fixture at (50, 60, 0).
* **Safety Considerations:** Maximum robot speed: 0.5m/s.
**2. Target Robot Platform:**
Universal Robots UR5e with e-Series controller. Programming language: URScript.
**3. Desired Program Output:**
Generate a URScript program that includes functions for picking and placing the peg. Include error handling for failed insertion.
**Output:**
“`urscript
[…Generated URScript code…]
“`
“`
This dynamic prompt allows for customization based on the specific assembly task, target robot platform, and desired program output. It guides the AI to generate relevant and functional robot programs, reducing the need for manual programming and improving efficiency in automated manufacturing.