IAdsConnection Methods

The IAdsConnection type exposes the following members.

Methods

 

Name

Description

IAdsConnection Methods 1:

AddDeviceNotification(String, AdsStream, AdsTransMode, Int32, Int32, Object)

Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event. (Inherited from IAdsNotifications.)

IAdsConnection Methods 2:

AddDeviceNotification(UInt32, UInt32, AdsStream, AdsTransMode, Int32, Int32, Object)

Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event. (Inherited from IAdsNotifications.)

IAdsConnection Methods 3:

AddDeviceNotification(String, AdsStream, Int32, Int32, AdsTransMode, Int32, Int32, Object)

Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event. (Inherited from IAdsNotifications.)

IAdsConnection Methods 4:

AddDeviceNotification(UInt32, UInt32, AdsStream, Int32, Int32, AdsTransMode, Int32, Int32, Object)

Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event. (Inherited from IAdsNotifications.)

IAdsConnection Methods 5:

AddDeviceNotificationEx(String, AdsTransMode, Int32, Int32, Object, Type)

Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event. (Inherited from IAdsNotifications.)

IAdsConnection Methods 6:

AddDeviceNotificationEx(String, AdsTransMode, Int32, Int32, Object, Type, .Int32.)

Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event. (Inherited from IAdsNotifications.)

IAdsConnection Methods 7:

AddDeviceNotificationEx(UInt32, UInt32, AdsTransMode, Int32, Int32, Object, Type)

Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event. (Inherited from IAdsNotifications.)

IAdsConnection Methods 8:

AddDeviceNotificationEx(UInt32, UInt32, AdsTransMode, Int32, Int32, Object, Type, .Int32.)

Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event. If type is a string type, the first element of the parameter args specifies the number of characters of the string. If type is an array type, the number of elements for each dimension has to be specified in the parameter args. At the moment only 1 dimensional Arrays are supported. (Inherited from IAdsNotifications.)

IAdsConnection Methods 9:

Close

Closes this IConnection (Inherited from IConnection.)

IAdsConnection Methods 10:

Connect

(Re)Connects the IConnection when disconnected. (Inherited from IConnection.)

IAdsConnection Methods 11:

CreateVariableHandle

Generates a unique handle for an ADS variable. (Inherited from IAdsHandleAccess.)

IAdsConnection Methods 12:

DeleteDeviceNotification

Deletes an existing notification. (Inherited from IAdsNotifications.)

IAdsConnection Methods 13:

DeleteVariableHandle

Releases the handle of a ADS variable again. (Inherited from IAdsHandleAccess.)

IAdsConnection Methods 14:

Disconnect

Disconnects this IConnection. (Inherited from IConnection.)

IAdsConnection Methods 15:

InvokeRpcMethod(String, Int32, .Object.)

Invokes the specified RPC Method (Inherited from ITcAdsRpcInvoke.)

IAdsConnection Methods 16:

InvokeRpcMethod(String, String, .Object.)

Invokes the specified RPC Method (Inherited from ITcAdsRpcInvoke.)

IAdsConnection Methods 17:

InvokeRpcMethod(ITcAdsSymbol, Int32, .Object.)

Invokes the specified RPC Method (Inherited from ITcAdsRpcInvoke.)

IAdsConnection Methods 18:

InvokeRpcMethod(ITcAdsSymbol, String, .Object.)

Invokes the specified RPC Method. (Inherited from ITcAdsRpcInvoke.)

IAdsConnection Methods 19:

Read(Int32, AdsStream)

Reads data synchronously from an ADS device and writes it to the given stream. (Inherited from IAdsHandleAccess.)

IAdsConnection Methods 20:

Read(Int32, AdsStream, Int32, Int32)

Reads data synchronously from an ADS device and writes it to the given stream. (Inherited from IAdsHandleAccess.)

IAdsConnection Methods 21:

ReadAny(Int32, Type)

Reads data synchronously from an ADS device and writes it to an object. (Inherited from IAdsAnyAccess.)

IAdsConnection Methods 22:

ReadAny(Int32, Type, .Int32.)

Reads data synchronously from an ADS device and writes it to an object. (Inherited from IAdsAnyAccess.)

IAdsConnection Methods 23:

ReadAny(UInt32, UInt32, Type)

Reads data synchronously from an ADS device and writes it to an object. (Inherited from IAdsAnyAccess.)

IAdsConnection Methods 24:

ReadAny(UInt32, UInt32, Type, .Int32.)

Reads data synchronously from an ADS device and writes it to an object. (Inherited from IAdsAnyAccess.)

IAdsConnection Methods 25:

ReadAnyString(Int32, Int32, Encoding)

Reads the string. (Inherited from IAdsAnyAccess.)

IAdsConnection Methods 26:

ReadAnyString(UInt32, UInt32, Int32, Encoding)

Reads the string (Inherited from IAdsAnyAccess.)

IAdsConnection Methods 27:

ReadDeviceInfo

Reads the identification and version number of an ADS server.

IAdsConnection Methods 28:

ReadWrite

Writes data synchronously to an ADS device and then Reads data from this device. (Inherited from IAdsHandleAccess.)

IAdsConnection Methods 29:

TryAddDeviceNotification

Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event. (Inherited from IAdsNotifications.)

IAdsConnection Methods 30:

TryAddDeviceNotificationEx

Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event. (Inherited from IAdsNotifications.)

IAdsConnection Methods 31:

TryDeleteDeviceNotification

Deletes an existing notification. (Inherited from IAdsNotifications.)

IAdsConnection Methods 32:

TryInvokeRpcMethod(String, Int32, .Object., Object.)

Invokes the specified RPC Method (Inherited from ITcAdsRpcInvoke.)

IAdsConnection Methods 33:

TryInvokeRpcMethod(String, String, .Object., Object.)

Invokes the specified RPC Method (Inherited from ITcAdsRpcInvoke.)

IAdsConnection Methods 34:

TryInvokeRpcMethod(ITcAdsSymbol, Int32, .Object., Object.)

Invokes the specified RPC Method (Inherited from ITcAdsRpcInvoke.)

IAdsConnection Methods 35:

TryInvokeRpcMethod(ITcAdsSymbol, String, .Object., Object.)

Invokes the specified RPC Method. (Inherited from ITcAdsRpcInvoke.)

IAdsConnection Methods 36:

TryRead

Reads data synchronously from an ADS device and writes it to the given stream. (Inherited from IAdsHandleAccess.)

IAdsConnection Methods 37:

TryReadWrite

Writes data synchronously to an ADS device and then Reads data from this device. (Inherited from IAdsHandleAccess.)

IAdsConnection Methods 38:

TryWrite

Writes data synchronously to an ADS device. (Inherited from IAdsHandleAccess.)

IAdsConnection Methods 39:

Write(Int32, AdsStream)

Writes data synchronously to an ADS device. (Inherited from IAdsHandleAccess.)

IAdsConnection Methods 40:

Write(Int32, AdsStream, Int32, Int32)

Writes data synchronously to an ADS device. (Inherited from IAdsHandleAccess.)

IAdsConnection Methods 41:

WriteAny(Int32, Object)

Writes an object synchronously to an ADS device. (Inherited from IAdsAnyAccess.)

IAdsConnection Methods 42:

WriteAny(Int32, Object, .Int32.)

Writes an object synchronously to an ADS device. If the Type of the object to be written is a string type, the first element of parameter args specifies the number of characters of the string. (Inherited from IAdsAnyAccess.)

IAdsConnection Methods 43:

WriteAny(UInt32, UInt32, Object)

Writes an object synchronously to an ADS device. (Inherited from IAdsAnyAccess.)

IAdsConnection Methods 44:

WriteAny(UInt32, UInt32, Object, .Int32.)

Writes an object synchronously to an ADS device. (Inherited from IAdsAnyAccess.)

Extension Methods

 

Name

Description

IAdsConnection Methods 45:

IAdsConnection Methods 46:

PollAdsState(IObservable.Unit.)

Overloaded.

Gets an observable sequence of AdsStates via Polling. (Defined by AdsClientExtensions.)

IAdsConnection Methods 47:

IAdsConnection Methods 48:

PollAdsState(TimeSpan)

Overloaded.

Gets an observable sequence of AdsStates via Polling. (Defined by AdsClientExtensions.)

IAdsConnection Methods 49:

PollValues(String, Type, IObservable.Unit.)

Overloaded.

Polls the symbol values on timepoints where the polling observable streams data / triggers (Defined by AnyTypeExtensions.)

IAdsConnection Methods 50:

PollValues(String, Type, TimeSpan)

Overloaded.

Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.)

IAdsConnection Methods 51:

PollValues(String, Type, .Int32., TimeSpan)

Overloaded.

Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.)

IAdsConnection Methods 52:

PollValues(String, Type, IObservable.Unit., Func.Exception, Object.)

Overloaded.

Polls the symbol values on timepoints where the polling observable streams data / triggers (Defined by AnyTypeExtensions.)

IAdsConnection Methods 53:

PollValues(String, Type, TimeSpan, Func.Exception, Object.)

Overloaded.

Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.)

IAdsConnection Methods 54:

PollValues(String, Type, .Int32., IObservable.Unit., Func.Exception, Object.)

Overloaded.

Polls the symbol values on time points where the polling observable streams data / triggers (Defined by AnyTypeExtensions.)

IAdsConnection Methods 55:

PollValues(String, Type, .Int32., TimeSpan, Func.Exception, Object.)

Overloaded.

Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.)

IAdsConnection Methods 56:

PollValues.T.(String, IObservable.Unit.)

Overloaded.

Polls the symbol values on timepoints where the polling observable streams data / triggers (Defined by AnyTypeExtensions.)

IAdsConnection Methods 57:

PollValues.T.(String, TimeSpan)

Overloaded.

Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.)

IAdsConnection Methods 58:

PollValues.T.(String, IObservable.Unit., Func.Exception, T.)

Overloaded.

Polls the symbol values on timepoints where the polling observable streams data / triggers (Defined by AnyTypeExtensions.)

IAdsConnection Methods 59:

PollValues.T.(String, TimeSpan, Func.Exception, T.)

Overloaded.

Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.)

IAdsConnection Methods 60:

PollValues.T.(String, .Int32., IObservable.Unit.)

Overloaded.

Polls the symbol values on time points where the polling observable streams data / triggers (Defined by AnyTypeExtensions.)

IAdsConnection Methods 61:

IAdsConnection Methods 62:

PollValues.T.(String, .Int32., TimeSpan)

Overloaded.

Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.)

IAdsConnection Methods 63:

PollValues.T.(String, .Int32., IObservable.Unit., Func.Exception, T.)

Overloaded.

Polls the symbol values on timepoints where the polling observable streams data / triggers (Defined by AnyTypeExtensions.)

IAdsConnection Methods 64:

IAdsConnection Methods 65:

PollValues.T.(String, .Int32., TimeSpan, Func.Exception, T.)

Overloaded.

Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.)

IAdsConnection Methods 66:

WhenNotification(ISymbol)

Overloaded.

Gets an observable sequence of Notifications. (Defined by AdsClientExtensions.)

IAdsConnection Methods 67:

IAdsConnection Methods 68:

WhenNotification(ISymbolCollection)

Overloaded.

Gets an observable sequence of Notification objects. (Defined by AdsClientExtensions.)

IAdsConnection Methods 69:

WhenNotification(ISymbol, NotificationSettings)

Overloaded.

Gets an observable sequence of Notifications. (Defined by AdsClientExtensions.)

IAdsConnection Methods 70:

IAdsConnection Methods 71:

WhenNotification(ISymbolCollection, NotificationSettings)

Overloaded.

Gets an observable sequence of Notification objects. (Defined by AdsClientExtensions.)

IAdsConnection Methods 72:

IAdsConnection Methods 73:

WhenValueChanged

Observable sequence of Values driven by ADS Notifications on the specified symbol. (Defined by ValueSymbolExtensions.)

IAdsConnection Methods 74:

IAdsConnection Methods 75:

WriteValues.T.(String, IObservable.T.)

Overloaded.

Writes the sequence of values to the symbol specified by the instance path. (Defined by AnyTypeExtensions.)

IAdsConnection Methods 76:

IAdsConnection Methods 77:

WriteValues.T.(String, IObservable.T., Action.Exception.)

Overloaded.

Writes the sequence of values to the symbol specified by the instance path. (Defined by AnyTypeExtensions.)

Reference

IAdsConnection Interface

TwinCAT.Ads Namespace