AdsAddDeviceNotificationReq
The AdsAddDeviceNotificationReq method enables the sending an ADS add device notification command to add a device notification to an ADS device. AdsAddDeviceNotificationCon is called when the response is received.
Syntax
int AdsAddDeviceNotificationReq( AmsAddr& rAddr, ULONG invokeId, ULONG indexGroup, ULONG indexOffset,
AdsNotificationAttrib noteAttrib); Parameter
Name | Type | Description |
|---|---|---|
rAddr | AmsAddr& | [in] Structure with NetId and port number of the ADS server. |
invokeId | ULONG | [in] Handle of the command, which was sent. The InvokeId is specified by the source device and is used for the identification of the commands. |
indexGroup | ULONG | [in] contains the index group number (32-bit, unsigned) of the requested ADS service. |
indexOffset | ULONG | [in] contains the index offset number (32-bit, unsigned) of the requested ADS service. |
noteAttrib | AdsNotificationAttrib | [in] contains the specification of the notification parameters (cbLength, TransMode, MaxDelay). |
Return value