Skip to content
  • There are no suggestions because the search field is empty.

Consuming DTL in TOP Server (S7-1200)

How does TOP Server read DTL addresses from an S7-1200?

DTL is not compatible with any of the native Date/Time datatypes that are supported by TOP Server. The individual elements of the structure can be retrieved from the S7-1200 and reconstituted by the client retrieving the data from TOP Server.
 

DTL Data Type and Syntax

The S7-1200 PLC contains a data type named DTL (Date Time Long).
The DTL can be subscribed as a string (VT_BSTR), which provides the full range and resolution of 1 nanosecond, or as a date and time (VT_DATE), which provides the full range but with the highest
resolution of 1 second. The DTL data type in the PLC is a 12-byte structure with the following format:
 
Byte(s) Field Name Data Type Value Range
0,1 Year UINT 1970 - 2554
2 Month USINT 1 - 12
3 Day USINT 1 - 31
4 Weekday USINT 1(Sunday) - 7(Saturday)
5 Hour USINT 0 - 23
6 Minute USINT 0 - 59
7 Seconds USINT 0 - 59
8,9,10,11 Nanoseconds UDINT 0 - 999,999,999