# Real time interface and MODBUS/TCP connection at the same time

**URL:** <https://forum.universal-robots.com/t/real-time-interface-and-modbus-tcp-connection-at-the-same-time/1655>\
**Category:** Robot Communication\
**Created:** [February 21, 2018, 2:49pm UTC](https://forum.universal-robots.com/t/real-time-interface-and-modbus-tcp-connection-at-the-same-time/1655 "2018-02-21T14:49:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon86511138](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@anon86511138](https://forum.universal-robots.com/u/anon86511138)\
**Post date:** [February 21, 2018, 2:49pm UTC](https://forum.universal-robots.com/t/real-time-interface-and-modbus-tcp-connection-at-the-same-time/1655/1 "2018-02-21T14:49:59Z")

</div>

hey there,  
is it possible to have the ur communicate with some external Sensor over Modbus TCP and receive UrScript commands over the real time interface from a pc at the same time? There is only 1 Ethernet Port on the controller so would using a switch be enough to allow the robot to connect to the 2 devices as mentioned?

---

<div class="post-metadata">

**Author:** ![mmi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/mmi/32/691_2.png) [@mmi](https://forum.universal-robots.com/u/mmi)\
**Post date:** [February 23, 2018, 9:14am UTC](https://forum.universal-robots.com/t/real-time-interface-and-modbus-tcp-connection-at-the-same-time/1655/2 "2018-02-23T09:14:09Z")

</div>

That’s perfectly ok. CB3.1 has normal 1Gb ethernet interface.

---

<div class="post-metadata">

**Author:** ![anon86511138](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@anon86511138](https://forum.universal-robots.com/u/anon86511138)\
**Post date:** [February 23, 2018, 10:17am UTC](https://forum.universal-robots.com/t/real-time-interface-and-modbus-tcp-connection-at-the-same-time/1655/3 "2018-02-23T10:17:44Z")

</div>

is there any way to include the value read by the modbus compatible sensor directly into the real time interface default output struct so i can access the data from the pc ?

---

<div class="post-metadata">

**Author:** ![mmi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/mmi/32/691_2.png) [@mmi](https://forum.universal-robots.com/u/mmi)\
**Post date:** [February 23, 2018, 10:21am UTC](https://forum.universal-robots.com/t/real-time-interface-and-modbus-tcp-connection-at-the-same-time/1655/4 "2018-02-23T10:21:04Z")

</div>

You have to copy it inside the running program (ie thread) into suitable GP integer register.
