ITcAdsServiceDuplex

The ITcAdsServiceDuplex interface provides access to the features which are available with the duplex endpoints of the TwinCAT Ads WCF Service.

Methods and Properties

ITcAdsServiceDuplex Methods

Description

SubscribeAdsNotificationEvent

Subscribes to the AdsNotificationEventHandler of the associated TcAdsClient. Callbacks will be passed through the ITcAdsServiceCallbaks.AdsNotification method.

SubscribeAdsNotificationErrorEvent

Subscribes to the AdsNotificationErrorEventHandler of the associated TcAdsClient. Callbacks will be passed through the ITcAdsServiceCallbaks.AdsNotificationError method.

SubscribeAdsStateChangedEvent

Subscribes to the AdsStateChangedEventHandler of the associated TcAdsClient. Callbacks will be passed through the ITcAdsServiceCallbaks.AdsStateChanged method.

SubscribeAdsSymbolVersionChangedEvent

Subscribes to the AdsSymbolVersionChangedEventHandler of the associated TcAdsClient. Callbacks will be passed through the ITcAdsServiceCallbaks.AdsSymbolVersionChanged method.

SubscribeAmsRouterNotificationEvent

Subscribes to the AmsRouterNotificationEventHandler of the associated TcAdsClient. Callbacks will be passed through the ITcAdsServiceCallbaks.AmsRouterNotification method.

AddDeviceNotification1

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.

AddDeviceNotification2

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.

AddDeviceNotification3

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.

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.

AddBufferedDeviceNotification2

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.

AddBufferedDeviceNotification3

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.

DeleteDeviceNotification

Deletes an existing notification.

GetTimeout

Gets the timeout for the associated TcAdsClient.

SetTimeout

Sets the timeout for the associated TcAdsClient.

Read1

Reads data from an ADS device and writes it to the given byte array reference.

Read2

Reads data from an ADS device and writes it to the given byte array reference.

Read3

Reads data from an ADS device and writes it to the given byte array reference.

ReadDeviceInfo

Reads the identification and version number of an ADS server.

ReadState

Reads the ADS status and the device status from an ADS server.

ReadWrite1

Writes data to an ADS device and then reads data from this device.

ReadWrite2

Writes data to an ADS device and then reads data from this device.

ReadWrite3

Writes data to an ADS device and then reads data from this device.

ReadWrite4

Writes data to an ADS device and then reads data from this device.

TryReadState

Reads the ADS status and the device status from an ADS server. Unlike the ReadState method this method does not call an exception on failure.
Instead an AdsErrorCode is returned. If the return value is equal to AdsErrorCode.NoError the call was successfull.

Write1

Writes data to an ADS device.

Write2

Writes data to an ADS device.

Write3

Writes data to an ADS device.

Write4

Writes data to an ADS device.

Write5

Writes data to an ADS device.

Write6

Writes data to an ADS device.

Write7

Writes data to an ADS device.

Write8

Writes data to an ADS device.

WriteControl1

Changes the ADS status and the device status of an ADS server.

WriteControl2

Writes the passed object value to the specified ADS symbol.The parameter type must have the same layout as the ADS symbol.