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 nano seconds, 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

AdsNotificationSample

ADS Device Notification 1:

Data field

Size

Description

Notification Handle

4 bytes

Notification handle.

Sample Size

4 bytes

Size of the data area in bytes.

Data

n bytes

Data.

ADS Device Notification 2:

Single notification

If the handle has become invalid, a notification without data is sent once as a note.