Universal Robots Forum

Determining e-Series vs CB series when UR Cap is loading

Would like to have one urcap file that works well with both. Using html and need different html files for the UI to render decently between the two platforms.

I read this: https://plus.universal-robots.com/media/1810566/urcap_tutorial_html.pdf

Problem seems to be that the getHTML() method get’s called before the createInstallationNode() method and the createInstallationNode() method is where we get the URCapAPI that allows me access to the getSoftwareVersion() method.

Is there another way to get the software version in the getHTML() method or another best practice that allows one HTML based urcap to work well in CB and e-Series robots?

Thanks!

Hi,

it is possible to use the api provide in the service class of the URCap to read out the major version of the SW. The command would be:

URCapAPIFacade.getSystemAPI().getSoftwareVersion().getMajorVersion()
Depending on the result you can either load the eSeries or CB Series Version.

You can take a look at the Localization-URCap Sample for reference.

2 Likes

Thanks! That’s exactly what I needed!! That and Java 8 for the CB platform.

Thanks,

Al.

2 Likes