# Get Input/Output Value

**URL:** <https://forum.universal-robots.com/t/get-input-output-value/25474>\
**Category:** Technical Questions\
**Created:** [December 5, 2022, 4:10pm UTC](https://forum.universal-robots.com/t/get-input-output-value/25474 "2022-12-05T16:10:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PMonforte](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@PMonforte](https://forum.universal-robots.com/u/PMonforte)\
**Post date:** [December 5, 2022, 4:10pm UTC](https://forum.universal-robots.com/t/get-input-output-value/25474/1 "2022-12-05T16:10:59Z")

</div>

Greetings URCommunity,  
I am developing a C# app in which I would like to have a feedback from the robot on the state of inputs/outputs (i.e. to know every 2 seconds if the digital\_in(1) is 0 or 1). I’ve managed to get the Joint Positions as well as the Base coordinate, but I can’t seem to find anything for getting the value of an input or output. Any help is much appreciated.  
Best regards,  
Pedro Monforte

---

<div class="post-metadata">

**Author:** ![sko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/sko/32/573_2.png) [@sko](https://forum.universal-robots.com/u/sko)\
**Post date:** [December 13, 2022, 12:48pm UTC](https://forum.universal-robots.com/t/get-input-output-value/25474/2 "2022-12-13T12:48:36Z")

</div>

Hello @PMonforte

What interface are you currently using to get the joint positions and base coordinates?

sko

---

<div class="post-metadata">

**Author:** ![PMonforte](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@PMonforte](https://forum.universal-robots.com/u/PMonforte)\
**Post date:** [December 13, 2022, 5:25pm UTC](https://forum.universal-robots.com/t/get-input-output-value/25474/3 "2022-12-13T17:25:41Z")

</div>

Hi sko,  
I know I was not very specific in the question, but I am quite new to this and thus have some issues explaining myself more appropriately. I have uploaded an image with the code part from which I get the Jointdata. It is through port 30013 (Real-Time interface, I think)

 ![g](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/c/c17831dee979a73b2c792402138221bfa19bfab8.jpeg)

Any help is much appreciated  
Best regards,  
Pedro Monforte

---

<div class="post-metadata">

**Author:** ![anon32693620](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@anon32693620](https://forum.universal-robots.com/u/anon32693620)\
**Post date:** [December 13, 2022, 8:37pm UTC](https://forum.universal-robots.com/t/get-input-output-value/25474/4 "2022-12-13T20:37:32Z")

</div>

I believe you would just use values 86 (digital inputs) and 131 (digital outputs) similar to how you have done the rest. These would just come as a byte where each bit represents their respective Input/Output.

---

<div class="post-metadata">

**Author:** ![sko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/sko/32/573_2.png) [@sko](https://forum.universal-robots.com/u/sko)\
**Post date:** [December 16, 2022, 7:39am UTC](https://forum.universal-robots.com/t/get-input-output-value/25474/5 "2022-12-16T07:39:54Z")

</div>

Hello @PMonforte

Thank you for providing additional insights!

You can get a complete overview of our available interfaces and what data they hold in the correspondent [support article](https://www.universal-robots.com/articles/ur/interface-communication/remote-control-via-tcpip/).  
There you can also find further documentation on the exact data streamed.

---

<div class="post-metadata">

**Author:** ![androidflorent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/androidflorent/32/3314_2.png) [@androidflorent](https://forum.universal-robots.com/u/androidflorent)\
**Post date:** [January 22, 2025, 9:44am UTC](https://forum.universal-robots.com/t/get-input-output-value/25474/6 "2025-01-22T09:44:31Z")

</div>

RTDE is the interface recommended by UR for efficiently reading data, such as inputs and outputs.  
Then, since you’re in C#, if you want to go fast, you can take a look at this library, which does the connection handling and binary decoding for you, and offers you named RTDE objects of the right type in C#:

[https://underautomation.com/universal-robots/documentation/rtde](https://underautomation.com/universal-robots/documentation/rtde)
