URCap Sample: Get Controller Time in URScript

Get Controller Time in URScript

Description of functionality:
This URCap is in functionality very similar to the XML-RPC Math sample. However instead of contributing an XML-RPC daemon to expand math functionality, this URCap enables the user through URScript to access the controller time (respectively as year, month, date, hour, etc.) via an XML-RPC call to a Python daemon.
Script functions to read these values over URScript are added to the Functions list in the Expression Editor.

What topics are covered:
XML-RPC, daemon, Python, controller clock, time, Expression Editor, script functions

Find it on Github!

1 Like

Hi @jbm ,

I have a UR10 with 3.15 software and I am trying to install your URCap.
The installation was successful and the system sees it correctly. Unfortunately, I don’t have any new features added to the function list, neither in the script nor in the assigment.
After installation, of course, I restarted the robot.

Help me, please.

Thanks,
Michał

Hi @m.wozniak89
There is an Instalation Node added by the URCap.
You need to select the checkbox in this to add the script functions to the Functions-list.

Now I see :).

Thank you very much, everything is fine.

Thanks for this, it is pretty amazing. Is there a channel to learn the intricacies that went to make this URCap?

Hello. Is there an updated UR CAP? I’m currently using 1.0.0… Was just wondering if there us an updated version.