Read local date and time
how can i compare between local date and time with other Date and time variable i made (DL) the PLC type is AC 700F freelance
how can i make the local date time in variable to used it to reset all the value ?
when (29-12-2015)my local date time >= (3-3-2016) my variable date time i made
then variable out will be high
Voted best answer
As Csanchez replied, first you need to set time synchronization. Then you can use system variable "XXX.DateTime" where XXX is resource name. In Csanchez answer you can see in image PS1.DateTime variable similar system variable will be available in variable list with datatype DT that you can use with function greater then equal to for time datatype and achieve solution you want.
Also remember you can extract date and time value separately from this variable using datatype converter (Converter > DT converter) and note that you need to follow date and time variable format.
Date+time value : DT#1994-02-14-10:00:00.00
Time value : T#22s T#3m30s T#14m7s .
Hope that helps.
You should enable the time sincronization parameter for digivis, using Digivis configure option.
in this way you have CPU time sincronized with your computer time.
also be sure to disable windows sincronization parameter.
and then you cand do one Set system time in comisioning mode