Convert URScript to .urp program

Hello,
I am using a UR16e robot. From the teach pendant, I can extract both URScript files and .urp program files. I want to modify the extracted URScript file and then load it onto the robot as a .urp program file, as the robot can only execute .urp files. How can I achieve this?

There might be some converter out there that I’m not aware of, but you CAN execute the URScript directly, it just takes a little legwork sometimes. If you start a blank program on the pendent and insert a Script node, you can change the input type to “File” and then just load the Script file you’ve edited and saved.

Now, you don’t get the luxury of actually seeing what lines of code are getting executed, so troubleshooting is a nightmare and I wouldn’t personally recommend it, but it’s your call. In addition to that, you’ll likely need to strip out anything that is related to the installation, as Polyscope will write all of that again when you hit play, and it could easily bark at you about having duplicate variable names and things. You’d want the script to be JUST the program code.

1 Like

This topic came up some time ago, and the position was that the .urp extension format is not available to the public.
You can see here how to open a .urp file, which works as some sort of XML file, but this format tends to change overtime.
I would go with the URScrupt approach suggested by @eric.feldmann

1 Like

Thank you for the help.