RTDE programming help for UR3e (beginner help)

Hi, I current have the UR3e, and am able to control it via the Teach Pendant. I have looked into the RTDE functionalities and would like to get this working so that I can code the movements of the robot through Python on my laptop, however I’m not completely sure where to get started. How do connect my robot to my laptop (I think it is via TCP/IP, but I’m not entirely sure how to actually do that)? And how would I be able to program some basic movements of the robot through Python?

This tutorials might help you.

Universal Robot RTDE tutorial #1 (Where to start the journey) - YouTube

1 Like

Thanks! I’m still very new to this and confused about how the actual connection is made. Would you be able to expand upon that? In the zip file from the UR website, there is a example_control_loop.py file, which contains ROBOT_HOST and ROBOT_PORT attributes. Is this all that is needed for the connection? Any help would be greatly appreciated.

Port and IP is enough from example_control_loop.py.
But also, You have to connect it from the Teaching Pendant.
Go to Hamburger Menu>>>Settings>>>Network>>>DHCP and apply.
Afterwards you’ll be connected. Possibly you will also need to upload license.
If you don’t connect the robot directly to the computer and you go via router, you have to go into router settings and open a port there.

Thanks for the information! When I try to run this after connecting the Teaching Pendant with DHCP, I get a Protective Stop error saying Fieldbus input disconnected. Any ideas as to what is causing this?

I’m not sure honestly, I have never had the same case before.
When I connected I also had several problems, but I don’t remember every step.
For the beginning I would recommend to upload license file in Robot Registration field, take the robot IP from cmd and send command to that IP.

You should enter real IP of the robot. FieldBus is not the interface you need.
Click on the menu button right top and open “About” window. It will display you actual IP address

So I would set this IP address as the static address in the Network settings?

This is address from the DHCP, but DHCP is configured to make it permanent.
You may configure static IP