# RTDE runtime\_state enumeration

**URL:** <https://forum.universal-robots.com/t/rtde-runtime-state-enumeration/6634>\
**Category:** Robot Communication\
**Created:** [March 11, 2020, 1:02am UTC](https://forum.universal-robots.com/t/rtde-runtime-state-enumeration/6634 "2020-03-11T01:02:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon63318613](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@anon63318613](https://forum.universal-robots.com/u/anon63318613)\
**Post date:** [March 11, 2020, 1:02am UTC](https://forum.universal-robots.com/t/rtde-runtime-state-enumeration/6634/1 "2020-03-11T01:02:43Z")

</div>

For the RTDE interface can you please provide the return values of runtime\_state and their meanings? The documentation only says that it is of the type UINT32 and has the description Program state

I have reverse engineered these states

1 - STOPPED?  
2 - RUNNING?  
4 - PAUSED?

There is no documentation for this that I have been able to find.

Is there a STOPPING and a PAUSING state?

---

<div class="post-metadata">

**Author:** ![fujikit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/fujikit/32/6042_2.png) [@fujikit](https://forum.universal-robots.com/u/fujikit)\
**Post date:** [March 11, 2020, 3:30am UTC](https://forum.universal-robots.com/t/rtde-runtime-state-enumeration/6634/2 "2020-03-11T03:30:26Z")

</div>

It is not written about this in documentation in detail.  
I defined the following enum.

Stopping : 0  
Stopped : 1  
Playing : 2  
Pausing : 3  
Paused : 4  
Resuming : 5  
 ![runtime2](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/6/66daab046f863833ea9c082150a71876e5ce948e.png)

---

<div class="post-metadata">

**Author:** ![anon63318613](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@anon63318613](https://forum.universal-robots.com/u/anon63318613)\
**Post date:** [March 11, 2020, 4:14am UTC](https://forum.universal-robots.com/t/rtde-runtime-state-enumeration/6634/3 "2020-03-11T04:14:58Z")

</div>

Thanks, did you test the remaining states by writing the return value to the console continually and manipulating the PolyScope program state?

---

<div class="post-metadata">

**Author:** ![fujikit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/fujikit/32/6042_2.png) [@fujikit](https://forum.universal-robots.com/u/fujikit)\
**Post date:** [March 11, 2020, 4:39am UTC](https://forum.universal-robots.com/t/rtde-runtime-state-enumeration/6634/4 "2020-03-11T04:39:30Z")

</div>

Yes, that’s right.  
I comfirmed by testing on real robot.(UR3 CB-Series)

---

<div class="post-metadata">

**Author:** ![fujikit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/fujikit/32/6042_2.png) [@fujikit](https://forum.universal-robots.com/u/fujikit)\
**Post date:** [March 11, 2020, 6:00am UTC](https://forum.universal-robots.com/t/rtde-runtime-state-enumeration/6634/5 "2020-03-11T06:00:13Z")

</div>

Anyway, state is “Paused” when robot is paused and protective stop.  
“Resuming” refers to the state in which program is resumed from protective stop.
