PLC concepts
5.4 Data types
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
129
DTL (Date and Time Long) data type uses a12 byte structure that saves information on date
and time. You can define DTL data in either the Temp memory of a block or in a DB. A value
for all components must be entered in the "Start value" column of the DB editor.
Table 5- 33 Size and range for DTL
12 Clock and calendar
Year-Month-
Day:Hour:Minute:
Min.: DTL#1970-01-01-00:00:00.0
Max.: DTL#2554-12-31-23:59:59.999 999
999
DTL#2008-12-16-
20:30:20.250
Each component of the DTL contains a different data type and range of values. The data
type of a specified value must match the data type of the corresponding components.
Table 5- 34 Elements of the DTL structure
0 Year UINT 1970 to 2554
1
1
Nanoseconds UDINT 0 to 999 999 999
The format Year-Month-Day:Hour:Minute:
Second.Nanosecond does not include the weekday.