Symbol Class
Symbol class
Inheritance Hierarchy
System.Object
  TwinCAT.Ads.TypeSystem.Instance
    TwinCAT.Ads.TypeSystem.Symbol
      TwinCAT.Ads.TypeSystem.UnionInstance
Namespace:  TwinCAT.Ads.TypeSystem
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 6.0.328+39e3229
Syntax
C#
public class Symbol : Instance, IEquatable<Symbol>,
IValueSymbol, IValueRawSymbol, IHierarchicalSymbol, ISymbol, IAttributedInstance,
IInstance, IBitSize, IValueAnySymbol, IValueAccessorProvider, ISymbolFactoryServicesProvider,
IAdsSymbol, IProcessImageAddress, IContextMaskProvider
The Symbol type exposes the following members.
Properties
| 
                   
  | 
                   Name  | 
                   Description  | 
|---|---|---|
| 
                   
                      | 
                   Gets the access rights.  | |
| 
                   
                      | 
                   Gets the Type Attributes. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets the size of this Instance in bits. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets the (aligned) size of of the Type/Instance in Bytes (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets the the DataTypeCategory of the Instance. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets the comment. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets the connection that produces values for this IValueSymbol  | |
| 
                   
                      | 
                   Gets the context mask of this instance. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets the IDataType of the IInstance. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets a value indicating whether this instance has a value. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets the AmsAddress of the Process Image  | |
| 
                   
                      | 
                   Gets the index group of the Symbol  | |
| 
                   
                      | 
                   Gets the index offset of the Symbol  | |
| 
                   
                      | 
                   Gets the name of the instance (without periods (.) (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets the relative / absolute access path to the instance (with periods (.)) (Overrides Instance.InstancePath.)  | |
| 
                   
                      | 
                   Gets a value indicating whether this instance is not basing on a full DataType but instead of some sort of bit mapping (Inherited from Instance.)  | |
| 
                   
                      | 
                   Indicates that the Size of the Object is Byte aligned (BitSize % 8 == 0) (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets a value indicating whether the Symbols datatype is a Container type.  | |
| 
                   
                      | 
                   Gets or sets a value indicating whether an ancestor is a dereferenced Pointer  | |
| 
                   
                      | 
                   Gets or sets a value indicating whether an ancestor is a dereferenced Reference  | |
| 
                   
                      | 
                   Indicates that this instance is persistent. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets a value indicating whether this instance is reference. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets a value indicating whether this instance is primitive.  | |
| 
                   
                      | 
                   Indicates that this instance is read only. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets a value indicating whether this instance is recursive.  | |
| 
                   
                      | 
                   Gets a value indicating whether this instance is reference. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets a value indicating whether this IInstance is static. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Indicates that this instance is a TcComInterfacePointer. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Indicates that this instance has set TypeGuid flag. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets a value indicating whether this instance is virtual.  | |
| 
                   
                      | 
                   Gets the namespace name. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets or sets the notification settings.  | |
| 
                   
                      | 
                   Gets the parent Symbol  | |
| 
                   
                      | 
                   Gets the size of the IDataType in bytes or Bits dependant on IsBitType (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets the number of SubSymbols  | |
| 
                   
                      | 
                   Gets the SubSymbols of the ISymbol  | |
| 
                   
                      | 
                   Gets the name of the DataType that is used for this IInstance. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Gets the value encoding.  | 
Methods
| 
                   
  | 
                   Name  | 
                   Description  | 
|---|---|---|
| 
                   
                      | 
                   Ensures that the AccessRights are matched.  | |
| 
                   
                      | 
                   Equalses the specified inst.  | |
| 
                   
                      | 
                   Equals (Overrides Object.Equals(Object).)  | |
| 
                   
                      | 
                   Equalses the specified inst.  | |
| 
                   
                      | 
                   Finalize  | 
                   Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)  | 
| 
                   
                      | 
                   Gets the HashCode of the Address (Overrides Object.GetHashCode..)  | |
| 
                   
                      | 
                   GetType  | 
                   Gets the Type of the current instance. (Inherited from Object.)  | 
| 
                   
                      | 
                   MemberwiseClone  | 
                   Creates a shallow copy of the current Object. (Inherited from Object.)  | 
| 
                   
                      | 
                   Handler function getting the size of the Instance (Inherited from Instance.)  | |
| 
                   
                      | 
                   Handler function for reading the raw value  | |
| 
                   
                      | 
                   Handler function for reading the raw value  | |
| 
                   
                      | 
                   Handler function for reading the dynamic value.  | |
| 
                   
                      | 
                   Handler function for reading the dynamic value.  | |
| 
                   
                      | 
                   Sets a new InstanceName InstancePath (Overrides Instance.OnSetInstanceName(String).)  | |
| 
                   
                      | 
                   Handler function for reading the dynamic value.  | |
| 
                   
                      | 
                   Handler function for writing the dynamic value  | |
| 
                   
                      | 
                   Handler function for writing the RawValue  | |
| 
                   
                      | 
                   Handler function Writing the raw value asynchronously.  | |
| 
                   
                      | 
                   Handler function for writing the dynamic value  | |
| 
                   
                      | 
                   Handler function for writing the dynamic value  | |
| 
                   
                      | 
                   Reads the value of this Value into a new created instance of the managed type  | |
| 
                   
                      | 
                   Reads the value of this Value into a new created instance of the managed type  | |
| 
                   
                      | 
                   Reads the value of this Value into a new created instance of the managed type  | |
| 
                   
                      | 
                   Reads the value of this Value into a new created instance of the managed type  | |
| 
                   
                      | 
                   Reads the (AnyType) value asynchronously.  | |
| 
                   
                      | 
                   Read any value as an asynchronous operation.  | |
| 
                   
                      | 
                   Reads the raw value of the IValueSymbol (Ads Read / Write)  | |
| 
                   
                      | 
                   Reads the raw value of the IValueSymbol (Ads Read / Write)  | |
| 
                   
                      | 
                   Reads the raw value of the IValueSymbol (Ads Read / Write) asynchronously.  | |
| 
                   
                      | 
                   Reads the Value of the IValueSymbol  | |
| 
                   
                      | 
                   Reads the Value of the IValueSymbol  | |
| 
                   
                      | 
                   Reads the Value of the IValueSymbol asynchronously.  | |
| 
                   
                      | 
                   Sets the type attributes (Inherited from Instance.)  | |
| 
                   
                      | 
                   Sets the context mask. (Inherited from Instance.)  | |
| 
                   
                      | 
                   Sets the parent symbol.  | |
| 
                   
                      | 
                   Returns a String that represents this instance. (Overrides Instance.ToString..)  | |
| 
                   
                      | 
                   Reads the Value of the IValueSymbol  | |
| 
                   
                      | 
                   Writes the Value of the IValueSymbol  | |
| 
                   
                      | 
                   Reads the value of this Value into the specified managed value.  | |
| 
                   
                      | 
                   Reads the value of this Value into the specified managed value.  | |
| 
                   
                      | 
                   Writes the raw value of the IValueSymbol (Ads Read / Write)  | |
| 
                   
                      | 
                   Writes the raw value of the IValueSymbol (Ads Read / Write)  | |
| 
                   
                      | 
                   Writes the raw value of the IValueSymbol (Ads Read / Write)  | |
| 
                   
                      | 
                   Writes the Value of the IValueSymbol  | |
| 
                   
                      | 
                   Writes the Value of the IValueSymbol  | |
| 
                   
                      | 
                   Writes the Value of the IValueSymbol  | 
Events
| 
                   
  | 
                   Name  | 
                   Description  | 
|---|---|---|
| 
                   
                      | 
                   Occurs when the RawValue of the IValueSymbol has changed.  | |
| 
                   
                      | 
                   Occurs when the (Primitive) value of the IValueSymbol has changed.  | 
Extension Methods
| 
                   
  | 
                   Name  | 
                   Description  | 
|---|---|---|
| 
                   
                      | 
                   Overloaded. Poll symbol values on trigger signals. (Defined by ValueSymbolExtensions.)  | |
| 
                   
                     
                      | 
                   Overloaded. Polls the symbol as value sequence of object values with a specified period time. (Defined by ValueSymbolExtensions.)  | |
| 
                   
                      | 
                   Overloaded. Polls symbol values on trigger signals. (Defined by ValueSymbolExtensions.)  | |
| 
                   
                     
                      | 
                   Overloaded. Polls the symbol as value sequence of object values with a specified period time. (Defined by ValueSymbolExtensions.)  | |
| 
                   
                      | 
                   Overloaded. Poll symbol values as a value sequence on trigger signals (typed) (Defined by ValueSymbolExtensions.)  | |
| 
                   
                     
                      | 
                   Overloaded. Polls the symbol as value sequence of object values with a specified period time (typed) (Defined by ValueSymbolExtensions.)  | |
| 
                   
                     
                      | 
                   PollValues.T.(IObservable.Unit., Func.ResultReadValueAccess2.IValueSymbol, Object., T.)  | 
                   Overloaded. Poll symbol values on trigger signals (typed) (Defined by ValueSymbolExtensions.)  | 
| 
                   
                      | 
                   Overloaded. Poll symbol values on trigger signals (typed) (Defined by ValueSymbolExtensions.)  | |
| 
                   
                      | 
                   Overloaded. Polls the symbol as value sequence of object values with a specified period time (typed) (Defined by ValueSymbolExtensions.)  | |
| 
                   
                      | 
                   Overloaded. Poll symbol values as a sequence of annotated results (Value + ErrorCode) (Defined by ValueSymbolExtensions.)  | |
| 
                   
                      | 
                   Overloaded. Poll symbol values with communication return codes. (Defined by ValueSymbolExtensions.)  | |
| 
                   
                      | 
                   Indicates, that the Instance value includes process memory data, that cannot be read in one memory block. (Defined by DataTypeExtension.)  | |
| 
                   
                     
                      | 
                   Gets an observable sequence when the value of the IValueSymbol has changed. (Defined by ValueSymbolExtensions.)  | |
| 
                   
                     
                      | 
                   Overloaded. Subscribes the IValueSymbol to an observable sequence of values and writes them to the IValueSymbol. (Defined by ValueSymbolExtensions.)  | |
| 
                   
                      | 
                   Overloaded. Subscribes the IValueSymbol to an observable sequence of values and writes them to the IValueSymbol. (Defined by ValueSymbolExtensions.)  | |
| 
                   
                      | 
                   Overloaded. Subscribes the IValueSymbol to an observable sequence of values and writes them to the IValueSymbol. (Defined by ValueSymbolExtensions.)  | |
| 
                   
                      | 
                   WriteValues(IObservable.Object., Action.Exception., CancellationToken)  | 
                   Overloaded. Subscribes the IValueSymbol to an observable sequence of values and writes them to the IValueSymbol. (Defined by ValueSymbolExtensions.)  | 
Remarks
A Symbol is a (named) memory object within the Process Image with a fixed address indicated by Index Group and Index Offset. Symbols can optionally be addressed by instance path and are bound to a specific DataType.
Reference
TwinCAT.Ads.TypeSystem Namespace
TwinCAT.Ads.TypeSystem.Instance
TwinCAT.TypeSystem.IValueSymbol
TwinCAT.TypeSystem.IValueAnySymbol
TwinCAT.TypeSystem.IValueAccessorProvider
TwinCAT.TypeSystem.ISymbolFactoryServicesProvider
TwinCAT.TypeSystem.IHierarchicalSymbol
ISymbolValueChangeNotify
TwinCAT.Ads.TypeSystem.IContextMaskProvider
IInstanceInternal
ISymbolInternal