IAdsSymbolicAccess Interface
Interface for symbolic ADS access (Read or Write)
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads.Abstractions (in
TwinCAT.Ads.Abstractions.dll) Version:
7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public interface IAdsSymbolicAccessThe IAdsSymbolicAccess type exposes the following members.
Methods
|
|
Name |
Description |
|---|---|---|
|
|
Clears the internal symbol / DataTypes cache. | |
|
|
Reads/Determines the DataType Inforrmation with the specifed name. | |
|
|
Reads/Determines the DataType of the specified type as an asynchronous operation. | |
|
|
Reads the symbol information about an individual variable in ADS devices. | |
|
|
Reads the symbol information object specified by the instance path as an asynchronous operation. | |
|
|
Reads the value of a symbol and returns the value as (boxed) object. | |
|
|
Reads the value of a symbol specified with its instance path and returns the value as boxed object. | |
|
|
Reads the value of a symbol specified with its instance path and returns the value as object of the specified type. | |
|
|
Reads the value of a symbol and returns it as an typed object. | |
|
|
Reads the value of a symbol and returns the value as specified type. | |
|
|
Reads the value of a symbol as an asynchronous operation and returns the value as an (boxed) object. | |
|
|
Reads the typed value of a symbol as an asynchronous operation. | |
|
|
Reads the value of a symbol as an asynchornous operation and returns the value of the specified type. | |
|
|
Reads the typed value of a symbol specified by the instance path as an asynchronous operation. | |
|
|
Tries to Read/Determine the DataType of the specified type. | |
|
|
Tries to read the symbol information object specified by the instance path. | |
|
|
Tries to read the value of a symbol and returns the value as boxed object. | |
|
|
Tries to the value of a symbol specified as instance path and returns the value as (boxed) object. | |
|
|
Reads the value of a symbol and returns the value as typed value. | |
|
|
Tries to reads the value of a symbol specified with instance path and returns the typed value. | |
|
|
Tries to write a (boxed) value to the symbol | |
|
|
Tries to write a (boxed) value to the symbol instance specified by its instance/symbol path. | |
|
|
Tries to write a value to the symbol. | |
|
|
Tries to Write a (typed) value to the symbol instance specified by its instance/symbol path. | |
|
|
Writes a (boxed) value to the symbol. | |
|
|
Writes a (boxed value) to the symbol instance specified by its instance/symbol path. | |
|
|
Writes a (typed) value to the symbol. | |
|
|
Writes a typed value to the symbol instance specified by its instance/symbol path. | |
|
|
Writes a (boxed) value to the symbol as an asynchronous operation. | |
|
|
Writes a (typed) value to the symbol as an asynchronous operation. | |
|
|
Writes a (typed) value to the symbol instance specified by its instance/symbol path as an asynchronous operation. |
Remarks
To convert the read ADS value to its appropriate .NET type or writing to ADS, the following rules take place:
- For primitive types including strings or arrays of primitives, no type parameter is necessary. A default marshalling to the most appropriate type will be done.
- If a primitive type (including primitive array or string) is given as type, the result value will be converted if possible to that type. If the value is not convertible, this method fails.
- If the type is complex (e.g. structs), the ADS value must be blittable to the specified type (same size, same binary layout), must be convertible by reflection (each field can be recognized via its name and their types are compatible/convertable) or a custom marshalling must be available.
For writing values:
- The used type is given by the .NET value type
- for Primitive types including strings or arrays of primitives, a default marshalling takes place.
- If a type parameter is part of the Write interface method, the given value will be converted to that type if possible. If the value is not convertible, this method fails.
- If the type is complex (e.g. structs), the ADS value must be blittable to the specified type (same size, same binary layout), must be convertible by reflection (each field can be recognized via its name and their types are compatible/convertable) or a custom marshalling must be implemented.
- If a string is passed as parameter, the method attempts to parse the string according to the ADS data type of the symbol.
- IAdsSymbolicAccess.CleanupSymbolTable Method
- IAdsSymbolicAccess.ReadDataType Method
- IAdsSymbolicAccess.ReadDataTypeAsync Method
- IAdsSymbolicAccess.ReadSymbol Method
- IAdsSymbolicAccess.ReadSymbolAsync Method
- IAdsSymbolicAccess.ReadValue Method (ISymbol)
- IAdsSymbolicAccess.ReadValue Method (String, Type)
- IAdsSymbolicAccess.ReadValue.T. Method (String)
- IAdsSymbolicAccess.ReadValue.T. Method (ISymbol)
- IAdsSymbolicAccess.ReadValueAsync Method (ISymbol, CancellationToken)
- IAdsSymbolicAccess.ReadValueAsync Method (String, Type, CancellationToken)
- IAdsSymbolicAccess.ReadValueAsync.T. Method (String, CancellationToken)
- IAdsSymbolicAccess.ReadValueAsync.T. Method (ISymbol, CancellationToken)
- IAdsSymbolicAccess.TryReadDataType Method
- IAdsSymbolicAccess.TryReadSymbol Method
- IAdsSymbolicAccess.TryReadValue Method (ISymbol, Object.)
- IAdsSymbolicAccess.TryReadValue Method (String, Type, Object.)
- IAdsSymbolicAccess.TryReadValue.T. Method (String, T.)
- IAdsSymbolicAccess.TryReadValue.T. Method (ISymbol, T.)
- IAdsSymbolicAccess.TryWriteValue Method (String, Object)
- IAdsSymbolicAccess.TryWriteValue Method (ISymbol, Object)
- IAdsSymbolicAccess.TryWriteValue.T. Method (String, T)
- IAdsSymbolicAccess.TryWriteValue.T. Method (ISymbol, T)
- IAdsSymbolicAccess.WriteValue Method (String, Object)
- IAdsSymbolicAccess.WriteValue Method (ISymbol, Object)
- IAdsSymbolicAccess.WriteValue.T. Method (String, T)
- IAdsSymbolicAccess.WriteValue.T. Method (ISymbol, T)
- IAdsSymbolicAccess.WriteValueAsync Method (ISymbol, Object, CancellationToken)
- IAdsSymbolicAccess.WriteValueAsync.T. Method (String, T, CancellationToken)
- IAdsSymbolicAccess.WriteValueAsync.T. Method (ISymbol, T, CancellationToken)