ADS Device Notification
Data will carry forward independently from an ADS device to a Client.
Request
The data which are transferred at the Device Notification are multiple nested into one another. The Notification Stream contains an array with elements of type AdsStampHeader. This array again contains elements of type AdsNotificationSample.
AdsNotificationStream
Data array |
Size |
Description |
---|---|---|
Length |
4 bytes |
Size of data in byte. |
Stamps |
4 bytes |
Number of elements of type AdsStampHeader |
AdsStampHeader |
n bytes |
Array with elements of type AdsStampHeader |
AdsStampHeader
Data array | Size | Description |
---|---|---|
TimeStamp | 8 bytes | The timestamp is coded after the Windows FILETIME format. I.e. the value contains the number of the 100-nanosecond intervals, which passed since 1.1.1601. In addition, the local time change is not considered. Thus the time stamp is present as universal Coordinated time (UTC). |
Samples | 4 bytes | Number of elements of type AdsNotificationSample |
AdsNotificationSample | n bytes | Array with elements of type AdsNotificationSample |
AdsNotificationSample
Data array | Size | Description |
---|---|---|
Notification Handle | 4 Bytes | Handle of notification. |
Sample Size | 4 Bytes | Size of data range in bytes. |
Data | n Bytes | Data |
If your handle becomes invalid, one notification without data will be send once as advice. |