Universal Robots Forum

Reading data from a txt file

Hello, i wanted to know if it’s possible to read data from a txt file.
We used a comparator from Sylvac to measure the pieces and we want to use SylCom to export the data in the cobot and read the data in this txt file ?

We think to use URScript but we don’t know how it’s work.

Thanks for reading this post
Have a nice day :slight_smile:

You could run an XMLRPC server on or off the robot that reads your file and formats it for the robot to request by function call.

URscript does not support this functionality directly. You would have to create your own xmlrpc server process to do this for you and pass the data back to the robot program.