s7-1500 time and date display in Citect via OPCua

Hello Everyone,

I would like to display the recorded date and time in my plc on a Citect popup. 

My PLC variable is LDT datatype, how do i communicate this correctly to Citect via OPCua. I know I will have to make some conversions, but which datatype do i need in the PLC and which datatype do i need in Citect ? Could you please help me with this. I can't find any good documentation about this.

Thank you very much in advance. 

Parents
  • If you wish to send the information as a single variable then the best way is to convert the value in the PLC to the date/time format Citect natively uses: I believe it is a 32-bit (long) unsigned integer that counts seconds since 1-1-1970 (UTC). If this conversion is too complex, you could also consider transfering the individual elements as separate variables (i.e. year, month, day, hour, minute, second) and use those items in Citect or combine them with a Cicode function you create.
Reply
  • If you wish to send the information as a single variable then the best way is to convert the value in the PLC to the date/time format Citect natively uses: I believe it is a 32-bit (long) unsigned integer that counts seconds since 1-1-1970 (UTC). If this conversion is too complex, you could also consider transfering the individual elements as separate variables (i.e. year, month, day, hour, minute, second) and use those items in Citect or combine them with a Cicode function you create.
Children
No Data