Explainer
Why WinCC RT Professional V11 shows decimals for S7-1200 DTL tags
Short answer
WinCC RT Professional V11 SP2 has no I/O field format that interprets an S7-1200 DTL structure, so the field shows the raw byte values as decimals. Convert the DTL to one STRING[20] per timestamp in an SCL block and display that, or split it into six integer fields when the panel must lay out each part separately.

On this page
An S7-1200 DTL tag bound to an I/O field on WinCC Runtime Professional V11 SP2 shows decimal numbers instead of a date because that runtime has no display format that interprets the 12-byte DTL structure. Every format in the field's display-format list treats the tag as a scalar or a raw byte string, so you get the payload as numbers. The fix is to make the PLC do the formatting: convert each DTL into a STRING in an SCL block and display the string, or split the structure into six integer tags when you need per-field layout control.
What a DTL actually contains #
The DTL data type on the S7-1200 and S7-1500 is a 12-byte predefined structure for date and time. Its components are YEAR (a 16-bit unsigned value), then single bytes for MONTH (1 to 12), DAY (1 to 31), weekday (1 = Sunday to 7 = Saturday), HOUR (0 to 23), MINUTE (0 to 59), SECOND (0 to 59), and a 32-bit nanosecond value (0 to 999,999,999). The system time instructions such as RD_SYS_T write into a DTL, which is why event logs on the S7-1200 tend to accumulate DTL tags.
The weekday is always part of the structure. If your operator screen should not show it, the conversion on the PLC side simply leaves it out; there is no runtime setting in V11 SP2 that suppresses one component of a raw structure.
Why every display format fails #
The I/O field in WinCC RT Professional offers decimal, binary, octal and hexadecimal formats plus date, time and string formats. On a DTL tag:
- The numeric formats show the first bytes of the structure as plain integers, which is the decimal garbage you see.
- The date and time formats expect a scalar tag (for example a DATE or TIME_OF_DAY value), not a 12-byte structure, so they misread the bytes.
- The string format is correct only when the PLC tag already is a STRING.
The date format specification that later WinCC versions document for RT Professional, with placeholders such as day, month and year built into the format string, does not exist for DTL structures in V11 SP2. That is a runtime capability gap, not a wiring or addressing mistake, and no service pack of V11 changes it. Later WinCC versions ship a date/time field object with a configurable format specification that interprets date/time tags directly.
Design A: one string per timestamp (recommended) #
Write an SCL function block that reads the DTL and builds a STRING[20] in the layout you want, for example day dot month dot year, space, hours colon minutes colon seconds, with leading zeros added for values below 10. The block concatenates each component converted from its integer value into the string, inserting the separator characters between them, and skips the weekday entirely.
The output is a PLC STRING tag that WinCC RT Professional displays in one I/O field set to the string format. Each timestamp then costs one HMI tag. The trade-off is that the string is display-only: the operator cannot type a time into it. If operators must set times from the panel, keep a separate writable tag for the input and let the control program move it into the DTL with the write-system-time instruction.
Design B: six integer fields per timestamp #
Split the DTL into six integer tags on the PLC (year, month, day, hour, minute, second), bind six I/O fields per timestamp, and set each field's format to decimal with a leading-zero pattern, 00 for the five small values and 0000 for the year. This keeps every component numeric and individually placeable, which suits screens where the date parts must sit in fixed table columns. It also drops the weekday, since you simply do not map that byte. The cost is tag count and screen clutter: six tags and six objects per timestamp instead of one.
Sizing the tag count for a 16-event, 6-timestamp log #
The reader's case is a log that records when each of 16 process steps started, completed and loaded, plus three more events, so each of 16 events carries 6 timestamps.
- Inputs: 16 events, 6 timestamps per event (the log design), one tag per timestamp for Design A, six tags per timestamp for Design B.
- Rule: total HMI tags equals events times timestamps times tags per timestamp.
- Design A arithmetic: 16 x 6 = 96 timestamps, 96 x 1 = 96 HMI tags.
- Design B arithmetic: 96 timestamps x 6 fields = 576 HMI tags.
Decision: at 96 versus 576 tags for the same log, build the SCL string conversion and use Design A. Reserve Design B for the few screens where the timestamp must align with numeric table columns or the operator edits a single component such as the minute; for those screens only, map the six integers for that one timestamp.
How to verify the fix on the bench #
Before you trust the new tags on the line, prove the conversion on an isolated bench: write a test DTL from the PLC system clock with RD_SYS_T, run the string block, and check the HMI field against the CPU's actual time, including a value below 10 for month, day, hour, minute and second to confirm the leading zeros. Change the CPU clock and confirm the displayed string follows at the tag's update cycle. Only then point the block at the real event-log data blocks.
If the same project will later move to a PC-based operator station at the machine, the runtime runs on industrial panel PCs rather than the old terminal; the tag design above carries over unchanged, since it depends only on the PLC-side string, not on the station hardware.
For the underlying diagnostics when the runtime cannot see the controller at all, the connection-side checks in S7-1200 shows link lights but TIA Portal cannot connect come before any tag-format work.
Questions asked
Why does the same DTL tag display correctly on a Comfort panel but not on the PC runtime?
The panel runtimes (WinCC RT Advanced on KTP and Comfort panels) ship a date/time field type that understands the DTL structure; WinCC RT Professional V11 SP2 does not, and that is why it displays two tags cleanly on a KTP1000 while the PC runtime shows decimals. It is a missing format in the V11 PC runtime, not a communication fault.
Is there a TIA Portal service pack that fixes this?
The behavior comes from the format set the V11 runtime offers, and no service pack of V11 adds a DTL-aware output format. If you want a native date/time field on a PC station, move to a later WinCC version, where the runtime's date/time field format specification interprets date/time tags directly.
Can the operator still set a time from the panel with the string approach?
No. A STRING field is read-only in practice, so operator time entry needs a separate path: bind a Date/Time field or individual numeric fields to a writable DTL tag on the PLC and write it with WR_SYS_T in the control program, keeping the display string separate from the input tags.
How many HMI tags does the string approach save for a 16-event log?
Each event needs 6 timestamps, so a 16-event log has 96 timestamps. As strings that is 96 HMI tags; as separate year, month, day, hour, minute and second fields it would be 576 tags (96 times 6). The string design cuts the tag count by 480 and keeps one field per timestamp on screen.


