ITcAdsServiceDuplex.GetTimeout

Gets the timeout for the associated TcAdsClient.

int GetTimeout ( 
    string netId, 
    int port 
);

Parameters

netId

NetID of the target AMS Router.

port

Port of the target AMS Router.

Return Value

The actual timeout value in milliseconds.

SOAP Error Faults

Type

Description

AdsErrorFault

The AdsErrorFault is returned if an AdsException is thrown by a TcAdsClient object in a method of the TwinCAT ADS WCF service.

AdsErrorErrorFault

The AdsErrorErrorFault is returned if an AdsErrorException is thrown by a TcAdsClient object in a method of the TwinCAT ADS WCF service.

AdsNotificationClientNotFoundErrorFault

The AdsNotificationClientNotFoundErrorFault is returned if a TcAdsClient object for AdsNotification through passing is not found in the NotificationClient cache of a wcf duplex context.

UnexpectedErrorFault

The UnexpectedErrorFault is returned if an unexpected Error occurs.

See Also

ITcAdsServiceDuplex Interface | ITcAdsServiceDuplex Interface | ITcAdsServiceCallbacks Interface