IAdsConnection Interface
ADS Connection interface
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 4.3.0.0
Syntax
C#
public interface IAdsConnection : IConnection,
IConnectionStateProvider, IAdsNotifications, IAdsAnyAccess, IAdsHandleAccess, ITcAdsRpcInvoke
VB
Public Interface IAdsConnection
Inherits IConnection, IConnectionStateProvider, IAdsNotifications, IAdsAnyAccess,
IAdsHandleAccess, ITcAdsRpcInvoke
The IAdsConnection type exposes the following members.
Properties
|
Name |
Description |
---|---|---|
|
Gets the AmsAddress of the ADS server. | |
|
Get the AmsAddress of the ADS client. | |
|
Gets the current Connection state of the IConnectionStateProvider (Inherited from IConnectionStateProvider.) | |
|
Gets the Connection Identifier . (Inherited from IConnection.) | |
|
Gets a value indicating whether the local ADS port was opened successfully. It does not indicate if the target port is available. Use the method ReadState to determine if the target port is available. (Inherited from IConnection.) | |
|
Gets a value indicating whether the ADS client is connected to a ADS Server on the local computer. | |
|
Gets the session that initiated this IConnection (Inherited from IConnection.) | |
|
Gets the timeout (in milliseconds) (Inherited from IConnection.) |
Methods
|
Name |
Description |
---|---|---|
|
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.) |
|
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.) |
|
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.) |
|
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.) |
|
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.) |
|
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.) |
|
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.) |
|
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.) |
|
Closes this IConnection (Inherited from IConnection.) | |
|
(Re)Connects the IConnection when disconnected. (Inherited from IConnection.) | |
|
Generates a unique handle for an ADS variable. (Inherited from IAdsHandleAccess.) | |
|
Deletes an existing notification. (Inherited from IAdsNotifications.) | |
|
Releases the handle of a ADS variable again. (Inherited from IAdsHandleAccess.) | |
|
Disconnects this IConnection. (Inherited from IConnection.) | |
|
Invokes the specified RPC Method (Inherited from ITcAdsRpcInvoke.) | |
|
Invokes the specified RPC Method (Inherited from ITcAdsRpcInvoke.) | |
|
Invokes the specified RPC Method (Inherited from ITcAdsRpcInvoke.) | |
|
Invokes the specified RPC Method. (Inherited from ITcAdsRpcInvoke.) | |
|
Reads data synchronously from an ADS device and writes it to the given stream. (Inherited from IAdsHandleAccess.) | |
|
Reads data synchronously from an ADS device and writes it to the given stream. (Inherited from IAdsHandleAccess.) | |
|
Reads data synchronously from an ADS device and writes it to an object. (Inherited from IAdsAnyAccess.) | |
|
Reads data synchronously from an ADS device and writes it to an object. (Inherited from IAdsAnyAccess.) | |
|
Reads data synchronously from an ADS device and writes it to an object. (Inherited from IAdsAnyAccess.) | |
|
Reads data synchronously from an ADS device and writes it to an object. (Inherited from IAdsAnyAccess.) | |
|
Reads the string. (Inherited from IAdsAnyAccess.) | |
|
Reads the string (Inherited from IAdsAnyAccess.) | |
|
Reads the identification and version number of an ADS server. | |
|
Writes data synchronously to an ADS device and then Reads data from this device. (Inherited from IAdsHandleAccess.) | |
|
Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event. (Inherited from IAdsNotifications.) | |
|
Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event. (Inherited from IAdsNotifications.) | |
|
Deletes an existing notification. (Inherited from IAdsNotifications.) | |
|
Invokes the specified RPC Method (Inherited from ITcAdsRpcInvoke.) | |
|
Invokes the specified RPC Method (Inherited from ITcAdsRpcInvoke.) | |
|
Invokes the specified RPC Method (Inherited from ITcAdsRpcInvoke.) | |
|
Invokes the specified RPC Method. (Inherited from ITcAdsRpcInvoke.) | |
|
Reads data synchronously from an ADS device and writes it to the given stream. (Inherited from IAdsHandleAccess.) | |
|
Writes data synchronously to an ADS device and then Reads data from this device. (Inherited from IAdsHandleAccess.) | |
|
Writes data synchronously to an ADS device. (Inherited from IAdsHandleAccess.) | |
|
Writes data synchronously to an ADS device. (Inherited from IAdsHandleAccess.) | |
|
Writes data synchronously to an ADS device. (Inherited from IAdsHandleAccess.) | |
|
Writes an object synchronously to an ADS device. (Inherited from IAdsAnyAccess.) | |
|
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.) | |
|
Writes an object synchronously to an ADS device. (Inherited from IAdsAnyAccess.) | |
|
Writes an object synchronously to an ADS device. (Inherited from IAdsAnyAccess.) |
Events
|
Name |
Description |
---|---|---|
|
Occurs when the ADS device sends a notification to the client. (Inherited from IAdsNotifications.) | |
|
Occurs when a exception has occurred during notification management. (Inherited from IAdsNotifications.) | |
|
Occurs when the ADS devices sends a notification to the client. (Inherited from IAdsNotifications.) | |
|
Occurs when connection status of the IConnectionStateProvider has been changed. (Inherited from IConnectionStateProvider.) |
Extension Methods
|
Name |
Description |
---|---|---|
|
Overloaded. Gets an observable sequence of AdsStates via Polling. (Defined by AdsClientExtensions.) | |
|
Overloaded. Gets an observable sequence of AdsStates via Polling. (Defined by AdsClientExtensions.) | |
|
Overloaded. Polls the symbol values on timepoints where the polling observable streams data / triggers (Defined by AnyTypeExtensions.) | |
|
Overloaded. Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.) | |
|
Overloaded. Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.) | |
|
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.) |
|
Overloaded. Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.) | |
|
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.) |
|
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.) |
|
Overloaded. Polls the symbol values on timepoints where the polling observable streams data / triggers (Defined by AnyTypeExtensions.) | |
|
Overloaded. Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.) | |
|
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.) |
|
Overloaded. Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.) | |
|
Overloaded. Polls the symbol values on time points where the polling observable streams data / triggers (Defined by AnyTypeExtensions.) | |
|
Overloaded. Polls the symbol as value sequence of object values with a specified period time. (Defined by AnyTypeExtensions.) | |
|
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.) |
|
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.) |
|
Overloaded. Gets an observable sequence of Notifications. (Defined by AdsClientExtensions.) | |
|
Overloaded. Gets an observable sequence of Notification objects. (Defined by AdsClientExtensions.) | |
|
Overloaded. Gets an observable sequence of Notifications. (Defined by AdsClientExtensions.) | |
|
Overloaded. Gets an observable sequence of Notification objects. (Defined by AdsClientExtensions.) | |
|
Observable sequence of Values driven by ADS Notifications on the specified symbol. (Defined by ValueSymbolExtensions.) | |
|
Overloaded. Writes the sequence of values to the symbol specified by the instance path. (Defined by AnyTypeExtensions.) | |
|
Overloaded. Writes the sequence of values to the symbol specified by the instance path. (Defined by AnyTypeExtensions.) |
Remarks
The ADS connection interface represents the the logical point-to-point exception between Client and Server within an ADS Session.