Suffix DT
- Last UpdatedJun 03, 2020
- 1 minute read
All items with the following data formats and suffix DT (Date and Time) are converted from DT into a message and back to store a value in the range of 1990-1-1-0:00:00.000 to 2089-12-31-23:59:59.999."
-
Byte
-
Char
This is an 8-byte value (although declared as "byte") that contains both the date and time. In the client, you see a string such as: 1999-12-13-07:06:05.888. The construction is a BCD interpretation. This means that the value in the memory of the PLC (seen as a hex value) represents directly the single "parts" of the string above.
The example above looks like the following in the memory:
0x9912130706058880
The last character ("0" in this example) is not used in this string, but represents the day of the week. If a DT item is poked, the server writes the correct day of the week to the PLC.