09-05-2024, 11:18 PM
Hi All.
When attempting to run my Python code on our UR5 robot, I get the following error:
Further information:
Is anyone able to identify what I am doing wrong and/or suggest a solution to this issue?
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?