Internet PLC Forum
General => Technical support => Topic started by: cdenk on January 15, 2007, 11:28:10 AM
-
Is there a single variable accessible by Trilogi for the date/time, like in Excel when formated number? Would like to be able to measure time periods just by subtracting one from the other without having to generate the number or worry about roll overs.
-
There is no built in single variable for the RTC. But you can assemble one yourself to fit the purpose. i.e. write a custom function which every second would take the values of TIME[1], TIME[2] and TIME[3] as well as DATE[n] and combine into a single 32-bit number. This number can then be used by other custom functions to achieve what you mentioned.