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.116+a71ced3

Syntax

C#

public class Symbol : Instance, IValueSymbol, 
    IValueRawSymbol, IHierarchicalSymbol, ISymbol, IAttributedInstance, IInstance, 
    IBitSize, IValueAnySymbol, IValueAccessorProvider, ISymbolFactoryServicesProvider, IAdsSymbol, 
    IProcessImageAddress, IContextMaskProvider

The Symbol type exposes the following members.

Properties

 

Name

Description

Symbol Class 1:

AccessRights

Gets the access rights.

Symbol Class 2:

Attributes

Gets the Type Attributes. (Inherited from Instance.)

Symbol Class 3:

BitSize

Gets the size of this Instance in bits. (Inherited from Instance.)

Symbol Class 4:

ByteSize

Gets the (aligned) size of of the Type/Instance in Bytes (Inherited from Instance.)

Symbol Class 5:

Category

Gets the the DataTypeCategory of the Instance. (Inherited from Instance.)

Symbol Class 6:

Comment

Gets the comment. (Inherited from Instance.)

Symbol Class 7:

Connection

Gets the connection that produces values for this IValueSymbol

Symbol Class 8:

ContextMask

Gets the context mask of this instance. (Inherited from Instance.)

Symbol Class 9:

DataType

Gets the IDataType of the IInstance. (Inherited from Instance.)

Symbol Class 10:

HasValue

Gets a value indicating whether this instance has a value. (Inherited from Instance.)

Symbol Class 11:

ImageBaseAddress

Gets the AmsAddress of the Process Image

Symbol Class 12:

IndexGroup

Gets the index group of the Symbol

Symbol Class 13:

IndexOffset

Gets the index offset of the Symbol

Symbol Class 14:

InstanceName

Gets the name of the instance (without periods (.) (Inherited from Instance.)

Symbol Class 15:

InstancePath

Gets the relative / absolute access path to the instance (with periods (.)) (Overrides Instance.InstancePath.)

Symbol Class 16:

IsBitType

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.)

Symbol Class 17:

IsByteAligned

Indicates that the Size of the Object is Byte aligned (BitSize % 8 == 0) (Inherited from Instance.)

Symbol Class 18:

IsContainerType

Gets a value indicating whether the Symbols datatype is a Container type.

Symbol Class 19:

IsDereferencedPointer

Gets or sets a value indicating whether an ancestor is a dereferenced Pointer

Symbol Class 20:

IsDereferencedReference

Gets or sets a value indicating whether an ancestor is a dereferenced Reference

Symbol Class 21:

IsPersistent

Indicates that this instance is persistent. (Inherited from Instance.)

Symbol Class 22:

IsPointer

Gets a value indicating whether this instance is reference. (Inherited from Instance.)

Symbol Class 23:

IsPrimitiveType

Gets a value indicating whether this instance is primitive.

Symbol Class 24:

IsReadOnly

Indicates that this instance is read only. (Inherited from Instance.)

Symbol Class 25:

IsRecursive

Gets a value indicating whether this instance is recursive.

Symbol Class 26:

IsReference

Gets a value indicating whether this instance is reference. (Inherited from Instance.)

Symbol Class 27:

IsStatic

Gets a value indicating whether this IInstance is static. (Inherited from Instance.)

Symbol Class 28:

IsTcComInterfacePointer

Indicates that this instance is a TcComInterfacePointer. (Inherited from Instance.)

Symbol Class 29:

IsTypeGuid

Indicates that this instance has set TypeGuid flag. (Inherited from Instance.)

Symbol Class 30:

IsVirtual

Gets a value indicating whether this instance is virtual.

Symbol Class 31:

Namespace

Gets the namespace name. (Inherited from Instance.)

Symbol Class 32:

NotificationSettings

Gets or sets the notification settings.

Symbol Class 33:

Parent

Gets the parent Symbol

Symbol Class 34:

Size

Gets the size of the IDataType in bytes or Bits dependant on IsBitType (Inherited from Instance.)

Symbol Class 35:

SubSymbolCount

Gets the number of SubSymbols

Symbol Class 36:

SubSymbols

Gets the SubSymbols of the ISymbol

Symbol Class 37:

TypeName

Gets the name of the DataType that is used for this IInstance. (Inherited from Instance.)

Symbol Class 38:

ValueEncoding

Gets the value encoding.

Methods

 

Name

Description

Symbol Class 39:

EnsureRights

Ensures that the AccessRights are matched.

Symbol Class 40:

Equals

Equals (Overrides Object.Equals(Object).)

Symbol Class 41:

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Symbol Class 42:

GetHashCode

Gets the HashCode of the Address (Overrides Object.GetHashCode..)

Symbol Class 43:

GetType

Gets the Type of the current instance. (Inherited from Object.)

Symbol Class 44:

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Symbol Class 45:

OnGetSize

Handler function getting the size of the Instance (Inherited from Instance.)

Symbol Class 46:

OnReadRawValue

Handler function for reading the raw value

Symbol Class 47:

OnReadRawValueAsync

Handler function for reading the raw value

Symbol Class 48:

OnReadValue

Handler function for reading the dynamic value.

Symbol Class 49:

OnReadValueAsync

Handler function for reading the dynamic value.

Symbol Class 50:

OnSetInstanceName

Sets a new InstanceName InstancePath (Overrides Instance.OnSetInstanceName(String).)

Symbol Class 51:

OnTryReadValue

Handler function for reading the dynamic value.

Symbol Class 52:

OnTryWriteValue

Handler function for writing the dynamic value

Symbol Class 53:

OnWriteRawValue

Handler function for writing the RawValue

Symbol Class 54:

OnWriteRawValueAsync

Handler function Writing the raw value asynchronously.

Symbol Class 55:

OnWriteValue

Handler function for writing the dynamic value

Symbol Class 56:

OnWriteValueAsync

Handler function for writing the dynamic value

Symbol Class 57:

ReadAnyValue(Type)

Reads the value of this Value into a new created instance of the managed type

Symbol Class 58:

ReadAnyValue(Type, Int32)

Reads the value of this Value into a new created instance of the managed type

Symbol Class 59:

ReadAnyValueAsync

Reads the (AnyType) value asynchronously.

Symbol Class 60:

ReadRawValue.

Reads the raw value of the IValueSymbol (Ads Read / Write)

Symbol Class 61:

ReadRawValue(Int32)

Reads the raw value of the IValueSymbol (Ads Read / Write)

Symbol Class 62:

ReadRawValueAsync

Reads the raw value of the IValueSymbol (Ads Read / Write) asynchronously.

Symbol Class 63:

ReadValue.

Reads the Value of the IValueSymbol

Symbol Class 64:

ReadValue(Int32)

Reads the Value of the IValueSymbol

Symbol Class 65:

ReadValueAsync

Reads the Value of the IValueSymbol asynchronously.

Symbol Class 66:

SetAttributes

Sets the type attributes (Inherited from Instance.)

Symbol Class 67:

SetContextMask

Sets the context mask. (Inherited from Instance.)

Symbol Class 68:

SetParent

Sets the parent symbol.

Symbol Class 69:

ToString

Returns a String that represents this instance. (Overrides Instance.ToString..)

Symbol Class 70:

TryReadValue

Reads the Value of the IValueSymbol

Symbol Class 71:

TryWriteValue

Writes the Value of the IValueSymbol

Symbol Class 72:

UpdateAnyValue(Object.)

Reads the value of this Value into the specified managed value.

Symbol Class 73:

UpdateAnyValue(Object., Int32)

Reads the value of this Value into the specified managed value.

Symbol Class 74:

WriteRawValue(.Byte.)

Writes the raw value of the IValueSymbol (Ads Read / Write)

Symbol Class 75:

WriteRawValue(.Byte., Int32)

Writes the raw value of the IValueSymbol (Ads Read / Write)

Symbol Class 76:

WriteRawValueAsync

Writes the raw value of the IValueSymbol (Ads Read / Write)

Symbol Class 77:

WriteValue(Object)

Writes the Value of the IValueSymbol

Symbol Class 78:

WriteValue(Object, Int32)

Writes the Value of the IValueSymbol

Symbol Class 79:

WriteValueAsync

Writes the Value of the IValueSymbol

Events

 

Name

Description

Symbol Class 80:

RawValueChanged

Occurs when the RawValue of the IValueSymbol has changed.

Symbol Class 81:

ValueChanged

Occurs when the (Primitive) value of the IValueSymbol has changed.

Operators

 

Name

Description

Symbol Class 82:

Symbol Class 83:

Equality

Operator==

Symbol Class 84:

Symbol Class 85:

Inequality

Implements the != operator.

Fields

 

Name

Description

Symbol Class 86:

syncObject

Synchronization object

Extension Methods

 

Name

Description

Symbol Class 87:

PollValues(IObservable.Unit.)

Overloaded.

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

Symbol Class 88:

Symbol Class 89:

PollValues(TimeSpan)

Overloaded.

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

Symbol Class 90:

PollValues(IObservable.Unit., Boolean)

Overloaded.

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

Symbol Class 91:

Symbol Class 92:

PollValues(TimeSpan, Boolean)

Overloaded.

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

Symbol Class 93:

PollValues2(IObservable.Unit.)

Overloaded.

Poll symbol values with communication return codes. (Defined by ValueSymbolExtensions.)

Symbol Class 94:

PollValues2(TimeSpan)

Overloaded.

Poll symbol values with communication return codes. (Defined by ValueSymbolExtensions.)

Symbol Class 95:

Symbol Class 96:

WhenValueChanged

Gets an observable sequence when the value of the IValueSymbol has changed. (Defined by ValueSymbolExtensions.)

Symbol Class 97:

Symbol Class 98:

WriteValues(IObservable.Object.)

Overloaded.

Subscribes the IValueSymbol to an observable sequence of values and writes them to the IValueSymbol. (Defined by ValueSymbolExtensions.)

Symbol Class 99:

WriteValues(IObservable.Object., Action.Exception.)

Overloaded.

Subscribes the IValueSymbol to an observable sequence of values and writes them to the IValueSymbol. (Defined by ValueSymbolExtensions.)

Symbol Class 100:

WriteValues(IObservable.Object., CancellationToken)

Overloaded.

Subscribes the IValueSymbol to an observable sequence of values and writes them to the IValueSymbol. (Defined by ValueSymbolExtensions.)

Symbol Class 101:

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

TwinCAT.Ads.TypeSystem.IAdsSymbol