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.
EgmClock message does not represent UNIX time on RobotStudio
The definition of EgmClock in proto/egm.proto is
message EgmClock // Time in seconds and microseconds since 1 Jan 1970
{
required uint64 sec = 1;
required uint64 usec = 2;
}Below are headers of EGM messages sent from RobotStudio on my system:
header {
seqno: 352216
tm: 28397221
mtype: MSGTYPE_DATA
}
feedBack {
joints {
joints: 0.00025089801056310534
joints: -0.010418600402772427
joints: 0.03861050307750702
joints: -0.0001342049945378676
joints: 45.01199722290039
joints: -0.0667094737291336
}
cartesian {
pos {
x: 1216.9378662109375
y: 0.0046911695972085
z: 1187.1817626953125
}
orient {
u0: 0.3823593258857727
u1: -0.0005403859540820122
u2: 0.9240135550498962
u3: -0.00022283525322563946
}
euler {
x: -179.93319209849528
y: 44.95977143802771
z: -179.90533858705996
}
}
time {
sec: 28397
usec: 216500
}
}
...
The time data sec: 28397 does not look like "time in seconds and microseconds since 1 Jan 1970".
This happens on RobotStudio only; with the real robot the timestamps are OK.
Is this a RobotStudio bug? If yes, where should I report it for it to be fixed?
Comments
-
28397 seconds = 0.32866898 days
Perhaps it starts counting once RobotStudio is launched?0 -
This is the response that I got from ABB support:
according to our support EGM is not supported by RS this is why You notice different behavior of EGM clock.
"...
I checked with RobotStudio R&D and they advised that RobotStudio doesn't do anything with EGM, so it is not a bug with RobotStudio, instead it is not designed to work with it.
...
"
It is surprising then that RobotStudio does execute EGM RAPID commands, and even does send EGM data.
0 -
The issue seems to be fixed in RobotStudio 21.2.9526.0 -- the timestamps look like UNIX time now.
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
- 368 IRC5
- 92 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