I want to get a list of routine names inside a specific module using Robot Web Services (RWS) 1.0.
Could anyone guide me on how to achieve this or share the correct API endpoint/request structure for it?
Thank you in advance!
I want to get a list of routine names inside a specific module using Robot Web Services (RWS) 1.0.
Could anyone guide me on how to achieve this or share the correct API endpoint/request structure for it?
Thank you in advance!
searchRoutines(allread, taskName) → {Promise.<Array.<API.RAPID.routines>>}
Returns:
A list of API.RAPID.routines
Type: Promise.<Array.<API.RAPID.routines>>
May work for you, I have not tried it myself.
I managed to solve the issue using Postman!
First of all, a huge thanks to @Estop! Your mention of the searchRoutines function was the exact clue I needed. It made me realize that RWS 1.0 requires triggering a search action via a POST request, rather than a simple GET.
For anyone else trying to achieve this using Postman, here is the quick solution:
POSThttp://<Robot_IP>/rw/rapid/symbols?action=search-symbols
2. **Auth:** Use **Digest Auth** with your robot credentials.
3. **Body:** Select **`x-www-form-urlencoded`** and add these keys:
* **`blockurl`** : `RAPID/T_ROB1` *(change to your task name)*
* **`view`** : `block`
* **`recursive`** : `true`
* **`symtyp`** : `prc` *(filters for procedures/routines only)*
This will successfully return the XML list of all your routines. Thanks again for the help!
hi there you use this npm package https://www.npmjs.com/package/abb-rws-client