Internet PLC Forum

General => Technical support => Topic started by: ccdubs on October 25, 2008, 12:55:15 PM

Title: Time and Date
Post by: ccdubs on October 25, 2008, 12:55:15 PM
I notice that the time and date values of the PLC are shown in the online monitoring window.

How can I access these for setting up some funtions to run at certain times of the day?

Also can the PLC time be set using a custom function. This would allow me to reset the time remotely?
Title: Re:Time and Date
Post by: support on October 25, 2008, 01:50:24 PM
Definitely. You can use the DATE[1], DATE[1] and DATE[3] and DATE[4] variables for reading/setting the date and TIME[1], TIME[2] and TIME[3] variables for reading/setting the time (hour, minute, second) from within the custom function. Please refer to the chapter "TBASIC Statements, Functions and Variable" regarding the definition of these variables.

You can set the date/time remotely via the TRiLOGI software or by activating some custom functions to set it from within the custom function.