I had a problem with the input variable AnyDateTime of the FB DataLogger, because I don’t know how to generate the structure of the time, which is indicated in the help like this: Structure if data and time is used from external. public struct DL_udtDateTime { public bool xUseExtDateTime; public Int16 iYear; public Int16 iMonth; public Int16 iDay; public Int16 iHour; public Int16 iMinute; public Int16 iSecond; public Int16 iMillisecond; } But I do not understand if this is written in structured text, I could do this for blocks? this problem arose because I connect the PLCNEXT to Proficloud and I have to configure it with the time zone utc-03, this makes that if I leave the time at 10:00 for example, when I generate the datalogger will appear the records with the time 13:00, because it takes the UTC-00 time, I would appreciate if you could explain me how to create the variable to define the time
I understand that you also sent this same question directly to the developers of the DataLogger library through the PLCnext Store. That is definitely the quickest way to get help on Store apps. For others who have a similar problem, here is a summary of the answer: [quote]To be able to use an external time it is necessary to create your own structure as User Defined Datatype, as described in the manual. Then you are able to create and connect to a variable of this type.[/quote]