> For the complete documentation index, see [llms.txt](https://extend-robotics.gitbook.io/user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://extend-robotics.gitbook.io/user-guide/amas-vr-application/ur-program-change.md).

# UR Program Change

Instruction how to use the AMAS to trigger different UR programs.

AMAS uses the `extend.urp` as the main program running on the teaching pendant to control the robot and perform teleoperation tasks. In some scenarios, the user might want to trigger another UR Program to perform some automated tasks.

### **Prerequisite** :

1. An `.installation` file should be available with the same name as the program.
2. For E Series UR Robots (Similar to step 16 in [Initial Setup Instruction](/user-guide/cortex/initial-setup-instructions.md#ur-e-series) ): In the installation tab on the teach pendant, navigate to the URCaps section. Select External Control and set the following parameters:
   1. Remote Host IP: 11.0.0.2
   2. Port: 50002
   3. Host Name: "Control from RoboKit"
3. For CB Series UR Robots (Similar to step 16 in [Initial Setup Instruction](/user-guide/cortex/initial-setup-instructions.md#ur-cb-series) ): In the installation tab on the teach pendant, navigate to the External Control and set the following parameters:
   1. Remote Host IP: 11.0.0.2
   2. Port: 50002
   3. Host Name: "Control from RoboKit"
4. Ensure the program's end moves the robot within the joint limits mentioned in Step 17 for [CB Series Initial Setup](/user-guide/cortex/initial-setup-instructions.md#ur-cb-series) or [E Series Initial Setup](/user-guide/cortex/initial-setup-instructions.md#ur-e-series).

### **Steps to set up the AMAS to trigger Additional Functionality**

#### **Using Firmware Update Process**

* Add a UR robot using the following [robot configuration process.](/user-guide/console/updating-robot-sensor-configurations.md)
* Specify the URP program to use in addition to the main program.
* Complete the process of updating the Cortex with the new configuration.

<figure><img src="https://content.gitbook.com/content/UH6fjabgqAq3hJNlUkSJ/blobs/gOJrc88io7YOjcaghABO/UR_Program_File.png" alt=""><figcaption></figcaption></figure>

### **Steps to trigger the program Changes**:

AMAS, by default, starts the `extend.urp` on startup of the Robokit.

1\) To switch between the `Main Program` and `Additional Program`, the user would need to press the `A` button on the Right Hand Oculus Control.

<figure><img src="https://content.gitbook.com/content/UH6fjabgqAq3hJNlUkSJ/blobs/Qb5W8wGXR8nsPHABJWA7/Controller.png" alt="" width="345"><figcaption><p>Oculus Right Hand Controller With Button Mapping</p></figcaption></figure>

***Note***: Once the A button is pressed to switch a current program, it is disabled for 3 seconds to handle multiple button press scenarios.\
\
2\) The second method to trigger the program changes is to click on the switch button on the Active UR RoboKit item.\
\
To get to the Active Robot panel:

* Click the `Configuration` tab in the wrist panel.
* Click on the dropdown button next to the `Cortex` button, which will open `Robots` and `Sensors` buttons.&#x20;
* Press on the `Robots` button, which will open the `Active Robots` panel.
* A floating Active Robots panel will be activated, which shows your active Robots.

<figure><img src="https://content.gitbook.com/content/UH6fjabgqAq3hJNlUkSJ/blobs/ZWFEJ0RNrjq2s3jz8swi/Screenshot%202024-08-15%20112927.png" alt="" width="563"><figcaption><p>Active Robokit Panel. Switch Button</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://extend-robotics.gitbook.io/user-guide/amas-vr-application/ur-program-change.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
