The UA_MonitoredItemAddList of Library AsOpcUac delivers the timestamps of the Value changes over the struct UAMonitoredVariables Data types.
The problem here is that the name of an IEC Variable from type DATE AND TIME must be given. DT is restricted to the second (32 bits) and customer needs to track Value Changes Timestamps on the Opc Ua Server down to the milisecond (64 bits).
Strangely we can get Events down to the ms with UA_EventItemAdd (EventFields ReceiveTime can be given any array or structure of 64 bits)
but not for MonitoredItems value changes?
After RnD Investigation, the following statement came up:
B&R’s Automation Runtime IEC61131-3 implementation does not support 64bit datatypes (LONG_DATE_TIME / LDT etc.).
Hence, the FUB does not support LDT but only DT, which is specification-compliant since the specification allows this datatype to be vendor-specific.
The OpcUa Server in this use case is a third party one. Tracking value changes to a timestamp resolution beyond 1 sec is therefore not possible with current implementation of AsOpcUac.