How to execute a Universal robot script?

We want to execute a universal robot script with just a line of code. But the problem is that we can not tell the universal robot to execute a script, only the contents of a script. Say we have a file called Surface_1.script and another file called mainprogram.script and in the mainprogram we just want to run: Surface_1.script. This is not possible, can you help out?

As far as I know this is not possible at the moment.

If it’s possible then it should be mentioned in the script manual.

Hi there,

What is your goal? You want to call some block af code, like a function?


Will this help? Or do you need something else?

If you like you can generate a script on your pc using any programming language you prefer and send this script to the UR.