DTL clamp
- Last UpdatedJul 29, 2024
- 1 minute read
Any DTL value being read from or poked to the PLC that has a year field less than the minimum or greater than the maximum year results in the date and time being clamped as follows:
For Canonical VT_BSTR:
Year < 1970 = 1970-01-01-00:00:00.000000000
Year > 2554 = 2554-12-31-23:59:59.999999999
For Canonical VT_DATE:
Year < 1970 = 1970-01-01-00:00:00
Year > 2554 = 2554-12-31-23:59:59
If any other field, month, day, hour, min, second, or nanosecond is less than the minimum or greater than the maximum, it results in a rejected poke or read. Also, an uncertain quality results for subscribed tags.
This applies to the syntax of all DTL names.