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

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 if 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 if 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 if this instance is a TcComInterfacePointer. (Inherited from Instance.)

Symbol Class 29:

IsTypeGuid

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

Symbol Class 30:

Namespace

Gets the namespace name. (Inherited from Instance.)

Symbol Class 31:

NotificationSettings

Gets or sets the notification settings.

Symbol Class 32:

Parent

Gets the parent Symbol

Symbol Class 33:

Size

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

Symbol Class 34:

SubSymbolCount

Gets the number of SubSymbols

Symbol Class 35:

SubSymbols

Gets the SubSymbols of the ISymbol

Symbol Class 36:

TypeName

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

Methods

 

Name

Description

Symbol Class 37:

EnsureRights

Ensures that the AccessRights are matched.

Symbol Class 38:

Equals

Equals (Overrides Object.Equals(Object).)

Symbol Class 39:

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 40:

GetHashCode

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

Symbol Class 41:

GetType

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

Symbol Class 42:

MemberwiseClone

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

Symbol Class 43:

OnGetSize

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

Symbol Class 44:

OnReadRawValue

Handler function for reading the raw value

Symbol Class 45:

OnReadValue

Handler function for reading the dynamic value.

Symbol Class 46:

OnSetInstanceName

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

Symbol Class 47:

OnTryReadValue

Handler function for reading the dynamic value.

Symbol Class 48:

OnTryWriteValue

Handler function for writing the dynamic value

Symbol Class 49:

OnWriteRawValue

Handler function for writing the RawValue

Symbol Class 50:

OnWriteValue

Handler function for writing the dynamic value

Symbol Class 51:

ReadAnyValue(Type)

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

Symbol Class 52:

ReadAnyValue(Type, Int32)

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

Symbol Class 53:

ReadRawValue.

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

Symbol Class 54:

ReadRawValue(Int32)

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

Symbol Class 55:

ReadValue.

Reads the Value of the IValueSymbol

Symbol Class 56:

ReadValue(Int32)

Reads the Value of the IValueSymbol

Symbol Class 57:

SetContextMask

Sets the context mask. (Inherited from Instance.)

Symbol Class 58:

SetParent

Sets the parent symbol.

Symbol Class 59:

ToString

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

Symbol Class 60:

TryReadValue

Reads the Value of the IValueSymbol

Symbol Class 61:

TryWriteValue

Writes the Value of the IValueSymbol

Symbol Class 62:

UpdateAnyValue(Object.)

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

Symbol Class 63:

UpdateAnyValue(Object., Int32)

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

Symbol Class 64:

WriteRawValue(.Byte.)

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

Symbol Class 65:

WriteRawValue(.Byte., Int32)

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

Symbol Class 66:

WriteValue(Object)

Writes the Value of the IValueSymbol

Symbol Class 67:

WriteValue(Object, Int32)

Writes the Value of the IValueSymbol

Events

 

Name

Description

Symbol Class 68:

RawValueChanged

Occurs when the RawValue of the IValueSymbol has changed.

Symbol Class 69:

ValueChanged

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

Operators

 

Name

Description

Symbol Class 70:

Symbol Class 71:

Equality

Operator==

Symbol Class 72:

Symbol Class 73:

Inequality

Implements the != operator.

Fields

 

Name

Description

Symbol Class 74:

attributes

The attributes (Inherited from Instance.)

Extension Methods

 

Name

Description

Symbol Class 75:

PollValuesAnnotated(IObservable.Unit.)

Overloaded.

Polls the values as ValueChangedArgs sequence annotated value on trigger sequence (Defined by ValueSymbolExtensions.)

Symbol Class 76:

PollValuesAnnotated(TimeSpan)

Overloaded.

Polls the values as ValueChangedArgs sequence with a specified period time. (Defined by ValueSymbolExtensions.)

Symbol Class 77:

Symbol Class 78:

WhenValueChanged

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

Symbol Class 79:

Symbol Class 80:

WriteValues(IObservable.Object.)

Overloaded.

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

Symbol Class 81:

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 82:

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 83:

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

TwinCAT.Ads.TypeSystem.IAdsSymbol