Universal Robots Forum

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!