SetRtc#

When the robot is powered on, its internal clock starts at the date at which the robot image was built. Each time you connect to the robot via the MecaPortal, the internal clock of the robot is automatically adjusted to UTC. Other than connecting to the robot using the MecaPortal, another solution is to send the SetRtc command to the robot (from the PLC or any application controlling the robot), if you want all timestamps in the robot’s log files to be with respect to UTC. Note, however, that this command does not affect the timestamps of the data sent over the monitoring and control ports, which are with respect to an internal monotonic microseconds timer that cannot be reset.

Syntax#

SetRtc(t)

Arguments#

  • t: Epoch time as defined in Unix (i.e., number of seconds since 00:00:00 UTC January 1, 1970).

Default values#

The default settings are applied whenever the robot is power cycled (rebooted).

By default, the epoch time corresponds to the date at which the robot image was built.

Usage restrictions#

This command can be executed in any robot state.

Cyclic protocols#

In cyclic protocols, the SetRtc command is represented by the HostTime data. See Section 4.4.4 for more details.