There are two ways to do it, set up a socket server or xmlrpc server on your computer. Then within URScript you would request a value and then assign the return to a variable. XMLrpc is definitely more performant than socket commands. Also it's only one command to ask and receive a value. With a socket server you'd have to request the value you want then listen for the return with a separate command.
If you need more specifics on how to implement let me know and I can setup a simple demo when I'm home tomorrow.
Hi!
I would like to know how to get data (e.g a X/Y Variable position from a sensor outside the robot) via TCP into the robotic program?
In general this is described here:
http://www.zacobria.com/universal-robots-zacobria-forum-hints-tips-how-to/script-tcp-socket-test/
But I don't feel like to remake this huge program within the PolyScope GUI. Lets say for testing I just want to send a variable from my computer (e.g via Python) to the robot that I can check their value within the "Variables" tab. In a second step I want to make the robot move to positions given by the variables.
I was succsellful in sending complete move commands to the robot via Python but I want to use the advantage of the GUI which means easy programming but insert changes from the computer.
Thanks,
Hans