# Is it possible to read RAPID data in AppStudio (FlexPendant) using RWS?

**URL:** <https://tech-community.robotics.abb.com/t/is-it-possible-to-read-rapid-data-in-appstudio-flexpendant-using-rws/12121>\
**Category:** AppStudio\
**Created:** [January 2, 2026, 1:35pm UTC](https://tech-community.robotics.abb.com/t/is-it-possible-to-read-rapid-data-in-appstudio-flexpendant-using-rws/12121 "2026-01-02T13:35:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akileswar1606](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@akileswar1606](https://tech-community.robotics.abb.com/u/akileswar1606)\
**Post date:** [January 2, 2026, 1:35pm UTC](https://tech-community.robotics.abb.com/t/is-it-possible-to-read-rapid-data-in-appstudio-flexpendant-using-rws/12121/1 "2026-01-02T13:35:04Z")

</div>

Hello,

I am working with an **ABB OmniCore controller** and developing a custom **FlexPendant HMI using AppStudio**.

I am trying to **read RAPID data (CONST, PERS variables and array elements)** from JavaScript functions in AppStudio, using **RWS (Robot Web Services)**.

* * *

### **RAPID setup** - Task type: **STATIC**

- Task state: **RUNNING**

- Example module:

```auto
MODULE C_scanData
    CONST num MAX_SAMPLES := 200;
    PERS num AmpData{MAX_SAMPLES};
ENDMODULE

```

The RAPID data is updating correctly and can be verified from the pendant.

* * *

### **Problem**

In AppStudio JavaScript, I tried to use commonly referenced RAPID helper APIs such as:

- `API.RWS.RAPID.getRapidData()`

- `API.RWS.RAPID.readRapidData()`

- `API.RWS.RAPID.getRapidDataValue()`

- `API.RWS.request()`

However, in my AppStudio environment, **none of these functions exist** and they all return errors such as:

```auto
TypeError: ... is not a function

```

* * *

### **What works**

The **only method that works** in my setup is accessing RAPID data using a **raw RWS GET request** , for example:

```auto
const res = await API.RWS.get(
  "/rw/rapid/symbol/data/RAPID/C_scan/C_scanData/AmpData%5B1%5D"
);

```

and then manually parsing the `<value>` from the XML response.

This works for:

- `CONST num`

- `PERS num`

- RAPID array elements

* * *

### **Questions** 1. Is this expected behavior for certain **AppStudio / OmniCore versions**?

1. Is using **raw RWS (`API.RWS.get`)** the recommended or only supported way to read RAPID data in AppStudio?

2. Is there a **documented, version-independent API** for reading RAPID variables inside AppStudio JavaScript?

3. Are there any best practices for reading **RAPID arrays efficiently** in AppStudio?

* * *

### **Goal**

My goal is to reliably read RAPID data inside **AppStudio functions** and display it on the **FlexPendant HMI** (for example, graphs and diagnostics).

Any clarification or official guidance would be greatly appreciated.

Thank you.

---

<div class="post-metadata">

**Author:** ![Kandian](https://avatars.discourse-cdn.com/v4/letter/k/c2a13f/32.png) [@Kandian](https://tech-community.robotics.abb.com/u/Kandian)\
**Post date:** [January 8, 2026, 5:57am UTC](https://tech-community.robotics.abb.com/t/is-it-possible-to-read-rapid-data-in-appstudio-flexpendant-using-rws/12121/2 "2026-01-08T05:57:48Z")

</div>

Hi, Did you tried - **await API.RWS.RAPID.getVariableRawValue(‘TestModule’, ‘TestVariable’, ‘T\_ROB1’);**

---

<div class="post-metadata">

**Author:** ![akileswar1606](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@akileswar1606](https://tech-community.robotics.abb.com/u/akileswar1606)\
**Post date:** [January 12, 2026, 7:48am UTC](https://tech-community.robotics.abb.com/t/is-it-possible-to-read-rapid-data-in-appstudio-flexpendant-using-rws/12121/3 "2026-01-12T07:48:41Z")

</div>

> [@Kandian](#):
>
> Hi, Did you tried - **await API.RWS.RAPID.getVariableRawValue(‘TestModule’, ‘TestVariable’, ‘T\_ROB1’);**

thank you for your response
