Hi,
I am trying to set a TCP(server/client) connection between an UR robot and red-node but it seems that I don't know what I'm doing.
The robot routine is fairly simple. It opens a socket (TCP client) and checks that there is someone listing (it this case SocketTest Server application). If there is someone listening, the data is sent. If there is nobody listening is loop until someone is.
ie:robot routine:
open≔socket_open("127.0.0.1",21)
Loop open≟ False
open≔socket_open("127.0.0.1",21)
socket_send_string(DATA)
(see https://www.universal-robots.com/articles/ur-articles/tcpip-socket-communication-via-urscript/)
This works well with SocketTest (server); but when I try to use node-red's TCP nodes I have no luck establishing connection--and I really don't know why. I tried several of the online examples, but maybe I'm missing something. Any help would be great!
THX