# Retrieve error using the RTDE interface

**URL:** <https://forum.universal-robots.com/t/retrieve-error-using-the-rtde-interface/8417>\
**Category:** Robot Communication\
**Created:** [August 10, 2020, 11:05am UTC](https://forum.universal-robots.com/t/retrieve-error-using-the-rtde-interface/8417 "2020-08-10T11:05:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon43650375](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@anon43650375](https://forum.universal-robots.com/u/anon43650375)\
**Post date:** [August 10, 2020, 11:05am UTC](https://forum.universal-robots.com/t/retrieve-error-using-the-rtde-interface/8417/1 "2020-08-10T11:05:03Z")

</div>

Is it possible to get error messages using the RTDE interface? I was able to send messages using RTDE\_TEXT\_MESSAGE package, and the messages I sent appeared Log tab in the simulator. I wanted to know is it possible to retrieve the errors/ exception messages when some goes wrong (eg: robot goes to protective stop) using the RTDE\_TEXT\_MESSAGE or any other way using the RTDE interface.

---

<div class="post-metadata">

**Author:** ![moliveira](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@moliveira](https://forum.universal-robots.com/u/moliveira)\
**Post date:** [August 10, 2020, 12:28pm UTC](https://forum.universal-robots.com/t/retrieve-error-using-the-rtde-interface/8417/2 "2020-08-10T12:28:34Z")

</div>

The safety\_status bits will give you what you are looking for

---

<div class="post-metadata">

**Author:** ![anon43650375](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@anon43650375](https://forum.universal-robots.com/u/anon43650375)\
**Post date:** [August 10, 2020, 12:46pm UTC](https://forum.universal-robots.com/t/retrieve-error-using-the-rtde-interface/8417/3 "2020-08-10T12:46:01Z")

</div>

@moliveira thanks for the reply. I also want to know the use of RTDE\_TEXT\_MESSAGE package, can we retrieve detailed error messages/ exceptions in this data package?

---

<div class="post-metadata">

**Author:** ![moliveira](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@moliveira](https://forum.universal-robots.com/u/moliveira)\
**Post date:** [August 10, 2020, 8:39pm UTC](https://forum.universal-robots.com/t/retrieve-error-using-the-rtde-interface/8417/4 "2020-08-10T20:39:16Z")

</div>

These links should help you.

1st. API reference  
[https://sdurobotics.gitlab.io/ur\_rtde/api/api.html#c.ur\_rtde::RTDEReceiveInterface::getSafetyMode](https://sdurobotics.gitlab.io/ur_rtde/api/api.html#c.ur_rtde::RTDEReceiveInterface::getSafetyMode)

2nd. Using RTDE\_TEXT\_MESSAGE as a logger

> **[How can I get the RTDE\_TEXT\_MESSAGE as the polyscope log? (#7) · Issues · SDU...](https://gitlab.com/sdurobotics/ur_rtde/-/issues/7)**
>
> Hi everyone, I have know how to use the ur\_rtde to move the ur robot. And now, which I want to know is the...
