Hi,Am using UR3 e series controller.PC, Gripper and Robot all connected through socket using different IP address and ports.In my robot program, if i open the PC socket, then my Gripper socket will get disconnected and my gripper lost its grip on the object.i cannot use "Socket_close", it will close all the sockets so again my gripper will lose the job.i do not know what am missing.
Hi I'm curious about the problem you're facing. I'm new to UR and programming as well. Are you using the PC to send commands to the UR controller?
Are you using the PC to send commands to the UR controller? yes1. PC =socket_open("IP", Port)2. Grip =socket_open("IP", Port)when i open the PC socket, my grip socket gets disconnected and my gripper drops the object. The object is lens and very fragile.
Are you using same port numbers for both or does it have to be different? Sorry but I'm curious to why you would be using a PC for controlling UR. Wouldn't uploading a script at its teach pendant easier?
Yes different ports. Am not controlling UR through PC. PC send the Motion commands to UR. robot coordinates are saved in excel sheet in csv format. 1. PC send X, Y and Z co ordinates to robot using C#2. Robot Receives via socket and move to the particular position.3. Then robot Give (Open or close) commands to Gripper to pick and place the object.Problem is Robot to gripper socket connection. 1. when i use socket_close commands both sockets are closing.2. when i open PC socket my gripper socket is getting closed. and gripper drops the jobHope it is clear now
Is that in URScript? If so, you need to add the third argument and name the sockets. Then you can send data to the named socket and close the named socket.
I have tried by naming the sockets. also In Variables tab, Gripper socket remains true but still it gets disconnected when open PC socket.i cannot understand why the gripper socket getting disconnected when opening an another socket having different names, IP and Ports.
Not sure either, in the past we had multiple sockets open, sometimes 3 or 4, and never experienced that. Also, the socket variable will not change when the socket closes as it’s not connected to the socket. It’s just the return value from the socket open command saying whether the socket opened or not. Allows you to loop the socket until opened. Can you send a screen screen shot of your code?
when the glue dispense program runs, my gripper socket getting disconnected.Is there any way to prevent it?
Yes, add a name to the socket command. Socket_open(host, port, name)socket_open(host2,port2,name2)socket_send_string(string,name)socket_send_string(string,name2)By not providing a unique name at open the default name is used and so when you open the other socket it overwrites the original socket that was opened.
Hi,
Am using UR3 e series controller.
PC, Gripper and Robot all connected through socket using different IP address and ports.
In my robot program, if i open the PC socket, then my Gripper socket will get disconnected and my gripper lost its grip on the object.
i cannot use "Socket_close", it will close all the sockets so again my gripper will lose the job.
i do not know what am missing.