ITcAdsServiceDuplex.AddBufferedDeviceNotification1
Connects a variable to the associated TcAdsClient. The notification will be passed through the ITcAdsServiceCallbaks.AdsNotification method if the ITcAdsServiceDuplex .SubscibeAdsNotificationEvent method was called successfully.
int AddBufferedDeviceNotification1(
string netId,
int port,
string variableName,
int length,
AdsTransMode transMode,
int cycleTime,
int maxDelay,
int maxValues,
object userData
);
Parameters | |
maxValues | This values defines when a buffered notification is fired. |
userData | This object can be used to store user specific data. |
Return Value
The handle of the notification.
SOAP Error Faults
Type | Description |
---|---|
The AdsErrorFault is returned if an AdsException is thrown by a TcAdsClient object in a method of the TwinCAT ADS WCF service. | |
The AdsErrorErrorFault is returned if an AdsErrorException is thrown by a TcAdsClient object in a method of the TwinCAT ADS WCF service. | |
The ArgumentErrorFault is returned if there is a failure in an argument of a method. | |
The UnexpectedErrorFault is returned if an unexpected Error occurs. |