System Time

Moderators: TomKerekes, dynomotion

Post Reply
CNC_Machines
Posts: 60
Joined: Fri Apr 27, 2018 10:43 pm

System Time

Post by CNC_Machines » Thu Feb 06, 2020 3:37 pm

Greetings,

I am wondering what happens when a KFlop is left on for a very long time. Specifically, does the function Time_sec() run into any problems. For example, lets say a machine hasnt been rebooted for several months. Will this function max out when it runs out of memory? Is there a way to zero it out again without rebooting the machine?

Thanks,

Scott

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: System Time

Post by TomKerekes » Thu Feb 06, 2020 4:16 pm

Hi Scott,

That shouldn’t be an issue. Time_sec() is a double precision floating point value with 52 bits of precision (more than 16 digits). And so will still be accurate to a microsecond after a hundred years. Counting doesn’t consume memory.
Regards,

Tom Kerekes
Dynomotion, Inc.

CNC_Machines
Posts: 60
Joined: Fri Apr 27, 2018 10:43 pm

Re: System Time

Post by CNC_Machines » Thu Feb 06, 2020 5:15 pm

Great! Thanks Tom.

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: System Time

Post by TomKerekes » Thu Feb 06, 2020 5:28 pm

Yes, double precision avoids so many nasty issues. :)
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply