Forum Migration Notice
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Nano or microseconds current time using IoT Data Gateway
Hi,
I using the MQTT publisher with the IoT Data Gateway option, and I need to associate a timestamp to each message. I am currently using {{Now}}, but there might be discrepancies between the controller time and the gateway time, which is more visible when using RobotStudio (simulation), since sometimes the simulation speed might not be real-time, particularly for computationally heavy simulations.
I'd rather use the controller time ({{DateTime}} or {{UtcDateTime}}, however these are only second-based, the microseconds (or nanoseconds) part is always 0, which is a far too low resolution for what I need.
Any advice on how could I get the controller time with higher resolution?
Thanks and best regards,
Hugo Costelha
I using the MQTT publisher with the IoT Data Gateway option, and I need to associate a timestamp to each message. I am currently using {{Now}}, but there might be discrepancies between the controller time and the gateway time, which is more visible when using RobotStudio (simulation), since sometimes the simulation speed might not be real-time, particularly for computationally heavy simulations.
I'd rather use the controller time ({{DateTime}} or {{UtcDateTime}}, however these are only second-based, the microseconds (or nanoseconds) part is always 0, which is a far too low resolution for what I need.
Any advice on how could I get the controller time with higher resolution?
Thanks and best regards,
Hugo Costelha
Tagged:
0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 367 IRC5
- 91 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings