Hi All.
I am attempting to use RoboDK to control a UR5 robot in online mode from a Windows 10 PC and continue to run into problems that do not appear when running in offline mode.
I have a main.py script that imports several modules, initalises the connection to RoboDK, sets the run mode etc. When I attempt to run main when online I get the following error:
Note that across all of my modules there are several thousand lines of code, and it has been structured per best Python programming practice. This is somewhat different to the note in the Generate Program online documentation which states:
Further, I prefer not to add my Python modules to the station tree due to previous issues with RoboDK making temporary copies of files etc etc.
Can someone (Albert?) please provide guidance on how to resolve the current issue. As discussed in previous threads, if I run my code from a Linux PC (using the Linux version of RoboDK etc etc) then everything works exactly the same online as offline. Finally, note that when running code on the robot, the log is full of messages of the type:
I am attempting to use RoboDK to control a UR5 robot in online mode from a Windows 10 PC and continue to run into problems that do not appear when running in offline mode.
I have a main.py script that imports several modules, initalises the connection to RoboDK, sets the run mode etc. When I attempt to run main when online I get the following error:
Code:
C:\RoboDK\Python-Embedded>python C:\Users\Admin\Documents\robot_barista\src\robot_barista\main.py 3 -r online
Retain frames and targets?
============ meta-task: prep ============
------------ rounding off ------------
[TASK 1000]: Reset simulation
Traceback (most recent call last):
File "C:\Users\Admin\Documents\robot_barista\src\robot_barista\main.py", line 447, in <module>
tks.run_tasks([
File "C:\Users\Admin\Documents\robot_barista\src\robot_barista\tasks.py", line 190, in run_tasks
getattr(Tasks, method)(self)
File "C:\Users\Admin\Documents\robot_barista\src\robot_barista\tasks.py", line 290, in tks_1
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
Note that across all of my modules there are several thousand lines of code, and it has been structured per best Python programming practice. This is somewhat different to the note in the Generate Program online documentation which states:
Quote:It is best practice for some robot controllers to integrate the generated program and required subprograms with same program file.
Further, I prefer not to add my Python modules to the station tree due to previous issues with RoboDK making temporary copies of files etc etc.
Can someone (Albert?) please provide guidance on how to resolve the current issue. As discussed in previous threads, if I run my code from a Linux PC (using the Linux version of RoboDK etc etc) then everything works exactly the same online as offline. Finally, note that when running code on the robot, the log is full of messages of the type:
Code:
socket_read_binary_integer: timeout