Page 1 of 1

System Time

Posted: Thu Feb 06, 2020 3:37 pm
by CNC_Machines
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

Re: System Time

Posted: Thu Feb 06, 2020 4:16 pm
by TomKerekes
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.

Re: System Time

Posted: Thu Feb 06, 2020 5:15 pm
by CNC_Machines
Great! Thanks Tom.

Re: System Time

Posted: Thu Feb 06, 2020 5:28 pm
by TomKerekes
Yes, double precision avoids so many nasty issues. :)