Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Timeout error when running robot.MoveJ in simulation mode (MacOS)
I'm trying to run a command on the simulator software and i'm getting a timeout error:

The code:
import robolink as rlk  # API to communicate with RoboDK for simulation and offline/online programming
import robodk as rdk  # Robotics toolbox for industrial robots

from robolink.robolink import RUNMODE_SIMULATE, Robolink

RUN_MODE = RUNMODE_SIMULATE  # Simulation behavior (simulate, or run on robot)

# Any interaction with RoboDK must be done through RDK:
RDK = Robolink()

robot = RDK.ItemUserPick('Select a robot', rlk.ITEM_TYPE_ROBOT)
if not robot.Valid():
   raise Exception('No robot selected or available')

home_target = RDK.Item("Home", rlk.ITEM_TYPE_TARGET)

The error:

Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "<path>/venv/lib/python3.7/site-packages/robolink/", line 4861, in MoveJ, self, 1, blocking)
 File "<path>/venv/lib/python3.7/site-packages/robolink/", line 952, in _moveX
 File "<path>/venv/lib/python3.7/site-packages/robolink/", line 680, in _check_status
   status = self._rec_int()
 File "<path>/venv/lib/python3.7/site-packages/robolink/", line 857, in _rec_int
   buffer = self.COM.recv(4)
socket.timeout: timed out

I verified, and i'm running in simulation mode, and i do get a response from
and from other commands that are not movement commands.

Any idea? I'll be happily providing more information. Thanks!
Can you provide the RoboDK project file?
(04-10-2020, 11:05 AM)Albert Wrote: Can you provide the RoboDK project file?

Thanks for getting back to me - for some reason i didn't get a notification :|

Here is a minimized version of the RoboDK project file.

Attached Files
.rdk   20200411_for_forum_question.rdk (Size: 928.32 KB / Downloads: 98)

Users browsing this thread:
1 Guest(s)