AdsDeviceNotificationReq

The method AdsAddDeviceNotificationReq permits to send an ADS device notification, to inform an ADS device. The AdsDeviceNotificationInd will be called on the counterpart.

Syntax

int    AdsDeviceNotificationReq( AmsAddr& rAddr, ULONG invokeId, ULONG cbLength, AdsNotificationStream notifications[] );

Parameters

rAddr: (type: AmsAddr&) [in] structure with NetId and port number of the ADS server.

invokeId: (type: ULONG) [in] handle of the command, which is sent. The InvokeId is specified from the source device and serves to identify the commands.

nResult: (type: ULONG) [in] contains result of the device notification indication.

notifications[]: (type: AdsNotificationStream) [in] contains information of the device notification(s).

Return value

Type: int

ADS Return Code - see AdsStatuscodes.