Hi, first of all, sorry if this is a newbie problem, but I’ve researched for quite a few days and found no working solution
I am having a hard time establishing an Ethernet/IP connection between my UR3 and my computer, I am just using an Ethernet cable to directly connect the PC and the UR3.
My objective is to use this connection to send commands through to the UR3 and also to read data from the robot. I am planning to do this on python. I have tried to follow severel guides but to no avail, I am pretty sure that the mistakes I am making are when defining the adresses in the UR3.
I always tried to establish the connection with my Wi-Fi off as it was told in many articles. I don’t know if it helps but when I connect the Ethernet cable a not identified network would appear in my computer with the IP 192.168.73.50 (is that supossed to be my DNS server?)
The last setup I tried is the suggested in this guide, I know it is a guide meant for the UR3e but I am up to trying anything at this point really.
The code I am using (in python) to test the connection is as follows:
import socket
import time
HOST = "192.168.1.100"
PORT = 30002
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
s.send(("set_digital_out(1,True)" + "\n").encode('utf8'))
time.sleep(2)
s.send(("movej([0, 0, 0, 0, 0, 0, a=1, v=1])" + "\n").encode('utf8'))
s.close()
I really am not well versed in networks so I don’t really know what adresses I need to change to work with my project or if I need to do something on my PC. I did verify that the IP of the UR3 is set to the one that’s in the image, but I don’t know if I am supposed to use the same subnet mask/gateway/DNS server. Thank you for reading