# When communicating with python-urx 3.5, there is still a delay. What's the problem

**URL:** <https://forum.universal-robots.com/t/when-communicating-with-python-urx-3-5-there-is-still-a-delay-whats-the-problem/17676>\
**Category:** Robot Communication\
**Created:** [November 18, 2021, 9:52am UTC](https://forum.universal-robots.com/t/when-communicating-with-python-urx-3-5-there-is-still-a-delay-whats-the-problem/17676 "2021-11-18T09:52:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon62377786](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@anon62377786](https://forum.universal-robots.com/u/anon62377786)\
**Post date:** [November 18, 2021, 9:52am UTC](https://forum.universal-robots.com/t/when-communicating-with-python-urx-3-5-there-is-still-a-delay-whats-the-problem/17676/1 "2021-11-18T09:52:33Z")

</div>

urx.urrobot.RobotException: Goal not reached but no program has been running for 5 seconds. dist is 0.049986025435063766, threshold is 0.039996845948998494, target is [-0.14482926 -0.30244145 0.50537851 0.26114389 3.1118598 -0.02745581], current pose is [-0.14483246457180995, -0.30244258900071636, 0.45539258969714447, 0.26125436683863307, 3.111797943232082, -0.027527518798631107]

---

<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:** [November 18, 2021, 9:55am UTC](https://forum.universal-robots.com/t/when-communicating-with-python-urx-3-5-there-is-still-a-delay-whats-the-problem/17676/2 "2021-11-18T09:55:25Z")

</div>

Hello @anon62377786 ,

can you provide further intel about your setup and program used? From the information you have provided it is not quite clear to me what you are trying to do.

---

<div class="post-metadata">

**Author:** ![anon62377786](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@anon62377786](https://forum.universal-robots.com/u/anon62377786)\
**Post date:** [November 22, 2021, 2:03am UTC](https://forum.universal-robots.com/t/when-communicating-with-python-urx-3-5-there-is-still-a-delay-whats-the-problem/17676/3 "2021-11-22T02:03:01Z")

</div>

I use Python urx to control ur5e robot, but there will be the error I mentioned above. Is it a version problem? Do you know why? thank you!

---

<div class="post-metadata">

**Author:** ![anon62377786](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@anon62377786](https://forum.universal-robots.com/u/anon62377786)\
**Post date:** [November 22, 2021, 2:05am UTC](https://forum.universal-robots.com/t/when-communicating-with-python-urx-3-5-there-is-still-a-delay-whats-the-problem/17676/4 "2021-11-22T02:05:44Z")

</div>

## This is my program

import urx  
import logging

if **name** == “ **main** ”:  
logging.basicConfig(level=logging.WARN)

```
rob = urx.Robot("172.16.17.6")
#rob = urx.Robot("localhost")
# rob.set_tcp((0,0,0,0,0,0))
rob.set_tcp((-0.145,-0.302,0.055,0.261,3.112,-0.027))

rob.set_payload(0.5, (0,0,0))
try:
    l = 0.05
    v = 0.05
    a = 0.3
    pose = rob.getl()
    print("robot tcp is at: ", pose)
    print("absolute move in base coordinate ")
    pose[2] += l
    rob.movel(pose, acc=a, vel=v)
    print("relative move in base coordinate ")
    rob.translate((0, 0, -l), acc=a, vel=v)
    print("relative move back and forth in tool coordinate")
    rob.translate_tool((0, 0, -l), acc=a, vel=v)
    rob.translate_tool((0, 0, l), acc=a, vel=v)
finally:
    rob.close()

```
