Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Robot not ready error (UR5 + Windows 10)

#1
Hi All.

When attempting to run my Python code on our UR5 robot, I get the following error:

Quote:C:\RoboDK\Python-Embedded>python C:\RoboDK\Python-Embedded\robodk_basics.py
Traceback (most recent call last):
  File "C:\RoboDK\Python-Embedded\robodk_basics.py", line 120, in <module>
    robot_program.RunCode()
  File "C:\RoboDK\Python-Embedded\lib\site-packages\robodk\robolink.py", line 6526, in RunCode
    self.link._check_status()
  File "C:\RoboDK\Python-Embedded\lib\site-packages\robodk\robolink.py", line 813, in _check_status
    raise Exception(self.LAST_STATUS_MESSAGE)
Exception: Robot is not ready

Further information:
  • The error only occurs under Windows. If I run the same code from a Linux PC it works as expected.
  • As can be seen from the error, I am running my Python file externally. Note that the issue occurs even if I drag it into the station tree and attempt to run it from there.
  • I am able to move the real UR5 around using the RoboDK GUI under Windows, so I am quite sure the issue is not related to the Windows firewall settings, as otherwise I would not be able to do so.
  • I am running version 5.7.4 under Windows 10.
  • Prior to running the Python file, I have manually connected to the robot from the RoboDK GUI (i.e. the connection bar is green).

Is anyone able to identify what I am doing wrong and/or suggest a solution to this issue?


Attached Files
.py   robodk_basics.py (Size: 934 bytes / Downloads: 3)
#2
I understand the issue happens when calling RunCode. Are you using the latest version on both?
Did you customize the progrobodk.script file? This is a file that allows you to customize the driver. The file is located in the bin folder of RoboDK. You should place the same file on both systems.

Can you share the connection log from the successful attempt on Linux and the failed attempt on Ubuntu?
Can you also share the error log from the Universal Robots controller?
#3
Hi Albert

Your reply is a bit confusing:
  • The code ran successfully using Debian (Linux) and failed under Windows 10
  • The error occurs when using RoboDK 5.7.x as well as the latest 5.8.x release
  • There is no progrobodk.script file in the bin directory under Windows OS

Not quite sure which log file you are after from UR5 so I have included the entire lot.


Attached Files
.zip   ur_2019350471_2024-09-09_08-58-47.zip (Size: 5.74 MB / Downloads: 1)
.txt   robodk_log_debian.txt (Size: 2.33 KB / Downloads: 1)
.txt   robodk_log_windows.txt (Size: 1.29 KB / Downloads: 1)
  




Users browsing this thread:
2 Guest(s)