Symbol Class
Symbol class
Inheritance Hierarchy
System.Object
TwinCAT.Ads.TypeSystem.Instance
TwinCAT.Ads.TypeSystem.Symbol
Namespace: TwinCAT.Ads.TypeSystem
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 4.3.0.0
Syntax
C#
public class Symbol : Instance, IValueSymbol3,
IValueSymbol2, IValueSymbol, IValueRawSymbol, ISymbol, IAttributedInstance,
IInstance, IBitSize, IValueAnySymbol, IAdsSymbol, IProcessImageAddress
VB
Public Class Symbol
Inherits Instance
Implements IValueSymbol3, IValueSymbol2, IValueSymbol, IValueRawSymbol,
ISymbol, IAttributedInstance, IInstance, IBitSize, IValueAnySymbol,
IAdsSymbol, IProcessImageAddress
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 if 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 if 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 if this instance is a TcComInterfacePointer. (Inherited from Instance.) | |
|
Indicates if this instance has set TypeGuid flag. (Inherited from Instance.) | |
|
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.) |
Methods
|
Name |
Description |
---|---|---|
|
Ensures that the AccessRights are matched. | |
|
Equals (Overrides Object.Equals(Object).) | |
|
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..) | |
|
Gets the Type of the current instance. (Inherited from Object.) | |
|
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 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 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 raw value of the IValueSymbol (Ads Read / Write) | |
|
Reads the raw value of the IValueSymbol (Ads Read / Write) | |
|
Reads the Value of the IValueSymbol | |
|
Reads the Value of the IValueSymbol | |
|
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 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. Polls the values as ValueChangedArgs sequence annotated value on trigger sequence (Defined by ValueSymbolExtensions.) | |
|
Overloaded. Polls the values as ValueChangedArgs sequence with a specified period time. (Defined by ValueSymbolExtensions.) | |
|
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
IValueAccessorProvider
ISymbolFactoryServicesProvider
IHierarchicalSymbol
ISymbolValueChangeNotify
IContextMaskProvider
IInstanceInternal
ISymbolInternal