• Articles
  • API reference
  • Previous Versions
Show / Hide Table of Contents
  • Connector
    • Vortex.Adapters.Connector.Tc3
      • AdsConnector
      • AdsConnector.OnAdsStateChangeDelegate
      • LiveClient
      • OnlineSymbolRetriever
      • OnlineVariableInfo
      • OnlineVariableInfo.SymbolLoaderSettings
      • ReportingConsole
      • ReportingConsole.UpdateStartUpDelegate
    • Vortex.Adapters.Connector.Tc3.Adapter
      • ConnectorFactory
      • SymbolLoadingMode
      • SymbolLoadMethod
      • Tc3ConnectorAdapter
    • Vortex.Adapters.Connector.Tc3.AdsExceptionsHandling
      • ExceptionHandler
    • Vortex.Adapters.Connector.Tc3.AdsValueTypes
      • AdsBit
      • AdsBool
      • AdsByte
      • AdsDate
      • AdsDateTime
      • AdsDInt
      • AdsDWord
      • AdsInt
      • AdsLInt
      • AdsLReal
      • AdsLTime
      • AdsLWord
      • AdsReal
      • AdsSInt
      • AdsString
      • AdsTime
      • AdsTimeOfDay
      • AdsUDInt
      • AdsUInt
      • AdsULInt
      • AdsUSInt
      • AdsWord
      • AdsWString
      • ClientSymbol
      • IAdsBaseType
    • Vortex.Adapters.Connector.Tc3Adapter.Adapter
      • NamespaceDoc
    • Vortex.Connector
      • CommStateEnum
      • ConnectorAdapter
      • DataExchangeStatusEnum
      • DummyConnector
      • DummyConnectorFactory
      • EnumeratorDiscriminatorAttribute
      • IConnector
      • IConnectorFactory
      • IgnoreReflectionAttribute
      • InterpolatedAncestor
      • InvalidLicenseConnector
      • InvalidLicenseConnectorAdapter
      • InvalidLicenseConnectorFactory
      • IPlain
      • ITwinController
      • ITwinObject
      • ITwinPrimitive
      • IValueTag
      • IValueTagExtensions
      • IValueTagInfo
      • IVortexElement
      • IVortexObject
      • IVortexObjectExtensions
      • IVortexOnlineObject
      • IVortexShadowObject
      • NamespaceDoc
      • RootVortexerObject
      • StringInterpolator
      • TypeComplexityEnum
    • Vortex.Connector.Attributes
      • AssemblyPlcCounterPart
      • CompilerOmissionGroups
      • CompilerOmitsAttribute
      • ReadOnlyAttribute
      • TypeMetaDescriptorAttribute
    • Vortex.Connector.Identity
      • IVortexIdentity
      • MemberByIdentityAttribute
      • NullVortexIdentity
      • VortexIdentityProvider
    • Vortex.Connector.LibraryDescriptors
      • TypeMetaData
    • Vortex.Connector.ValueTypes
      • NamespaceDoc
      • OnlinerBaseType
      • OnlinerBaseType.ValueChangeDelegate
      • OnlinerBaseType<T>
      • OnlinerBit
      • OnlinerBool
      • OnlinerByte
      • OnlinerDate
      • OnlinerDateTime
      • OnlinerDInt
      • OnlinerDWord
      • OnlinerInt
      • OnlinerLInt
      • OnlinerLReal
      • OnlinerLTime
      • OnlinerLWord
      • OnlinerReal
      • OnlinerSInt
      • OnlinerString
      • OnlinerTime
      • OnlinerTimeOfDay
      • OnlinerUDInt
      • OnlinerUInt
      • OnlinerULInt
      • OnlinerUSInt
      • OnlinerWord
      • OnlinerWString
      • ReadWriteAccess
      • ValueChangedEventArgs
      • ValueChangedEventHandlerDelegate
    • Vortex.Connector.ValueTypes.Online
      • IOnline<T>
      • IOnlineBit
      • IOnlineBool
      • IOnlineByte
      • IOnlineDate
      • IOnlineDateTime
      • IOnlineDInt
      • IOnlineDWord
      • IOnlineInt
      • IOnlineLInt
      • IOnlineLReal
      • IOnlineLTime
      • IOnlineLWord
      • IOnlineReal
      • IOnlineSInt
      • IOnlineString
      • IOnlineTime
      • IOnlineTimeOfDay
      • IOnlineUDInt
      • IOnlineUInt
      • IOnlineULInt
      • IOnlineUSInt
      • IOnlineWord
      • IOnlineWString
      • NamespaceDoc
    • Vortex.Connector.ValueTypes.Shadows
      • IShadow<T>
      • IShadowBit
      • IShadowBool
      • IShadowByte
      • IShadowDate
      • IShadowDateTime
      • IShadowDInt
      • IShadowDWord
      • IShadowInt
      • IShadowLInt
      • IShadowLReal
      • IShadowLTime
      • IShadowLWord
      • IShadowReal
      • IShadowSInt
      • IShadowString
      • IShadowTime
      • IShadowTimeOfDay
      • IShadowUDInt
      • IShadowUInt
      • IShadowULInt
      • IShadowUSInt
      • IShadowWord
      • IShadowWString
      • NamespaceDoc
    • Vortex.Connector.ValueValidation
      • BitValueValidationRule
      • BoolValueValidationRule
      • ByteValueValidationRule
      • DateTimeValueValidationRule
      • DateValueValidationRule
      • DintValueValidationRule
      • DWordValueValidationRule
      • IntValueValidationRule
      • IValueBoundaries<T>
      • LIntValueValidationRule
      • LRealValueValidationRule
      • LTimeValueValidationRule
      • LWordValueValidationRule
      • NamespaceDoc
      • OnlinerValidationRule<T>
      • RealValueValidationRule
      • SIntValueValidationRule
      • StringValueValidationRule
      • TimeOfDayValueValidationRule
      • TimeValueValidationRule
      • UDIntValueValidationRule
      • UIntValueValidationRule
      • ULIntValueValidationRule
      • USintValueValidationRule
      • ValidationResult
      • WordValueValidationRule
      • WStringValueValidationRule
    • Vortex.Localizations
      • IdentifierValidator
      • LocalizableItem
      • Localizables
      • LocalizationHelper
      • LocalizerDictionary
  • Presentation
    • Vortex.Presentation.Controls.Wpf
      • DateTimePickerBox
      • MultiConverter
      • TimePickerBaseBox
      • TimeTextBoxBaseBox
    • Vortex.Presentation.Controls.Wpf.Enumerators
      • EnumeratorContainer
      • EnumeratorContainerControlSlimView
      • EnumeratorContainerControlSlimViewModel
      • EnumeratorContainerControlView
      • EnumeratorContainerControlViewModel
      • EnumeratorContainerDisplaySlimView
      • EnumeratorContainerDisplaySlimViewModel
      • EnumeratorContainerDisplayView
      • EnumeratorContainerDisplayViewModel
      • EnumeratorContainerShadowControlSlimView
      • EnumeratorContainerShadowControlSlimViewModel
      • EnumeratorContainerShadowControlView
      • EnumeratorContainerShadowControlViewModel
      • EnumeratorContainerShadowDisplaySlimView
      • EnumeratorContainerShadowDisplaySlimViewModel
      • EnumeratorContainerShadowDisplayView
      • EnumeratorContainerShadowDisplayViewModel
      • EnumeratorContainerViewModel
      • EnumToIntConverter
    • Vortex.Presentation.Controls.Wpf.Extension
      • AttributeStringFormatExtensions
      • DateTimePicker
    • Vortex.Presentation.Controls.Wpf.OnlineControl
      • OnlineControlCheckBox
      • OnlineControlCheckBoxValue
      • OnlineControlDate
      • OnlineControlDateTime
      • OnlineControlLTime
      • OnlineControlTextBox
      • OnlineControlTextBoxValue
      • OnlineControlTime
      • OnlineControlTimeOfDay
      • OnlineControlTimeTextBox
    • Vortex.Presentation.Controls.Wpf.OnlineControls
      • OnlineControlSlimCheckBox
      • OnlineControlSlimCheckBoxValue
      • OnlineControlSlimDate
      • OnlineControlSlimDateTime
      • OnlineControlSlimLTime
      • OnlineControlSlimTextBox
      • OnlineControlSlimTextBoxValue
      • OnlineControlSlimTime
      • OnlineControlSlimTimeOfDay
    • Vortex.Presentation.Controls.Wpf.OnlineDisplay
      • OnlineDisplayCheckBox
      • OnlineDisplayTextBox
      • OnlineDisplayTextBoxValue
      • OnlineDisplayTimeTextBox
    • Vortex.Presentation.Controls.Wpf.ShadowControl
      • ShadowControlCheckBox
      • ShadowControlCheckBoxValue
      • ShadowControlDate
      • ShadowControlDateTime
      • ShadowControlLTime
      • ShadowControlTextBox
      • ShadowControlTextBoxValue
      • ShadowControlTime
      • ShadowControlTimeOfDay
      • ShadowControlTimeTextBox
    • Vortex.Presentation.Controls.Wpf.ShadowDisplay
      • ShadowDisplayCheckBox
      • ShadowDisplayTextBox
      • ShadowDisplayTextBoxValue
      • ShadowDisplayTimeTextBox
    • Vortex.Presentation.Controls.Wpf.Shared.Base
      • TimeAndDateConverterFactory
    • Vortex.Presentation.ControlSlims.Wpf
      • MultiConverter
    • Vortex.Presentation.ControlSlims.Wpf.OnlineDisplaySlim
      • OnlineDisplaySlimCheckBox
      • OnlineDisplaySlimTextBox
      • OnlineDisplaySlimTextBoxValue
      • OnlineDisplaySlimTimeTextBox
    • Vortex.Presentation.ControlSlims.Wpf.ShadowControlSlim
      • ShadowControlSlimCheckBox
      • ShadowControlSlimCheckBoxValue
      • ShadowControlSlimDate
      • ShadowControlSlimDateTime
      • ShadowControlSlimLTime
      • ShadowControlSlimTextBox
      • ShadowControlSlimTextBoxValue
      • ShadowControlSlimTime
      • ShadowControlSlimTimeOfDay
    • Vortex.Presentation.ControlSlims.Wpf.ShadowDisplaySlim
      • ShadowDisplaySlimCheckBox
      • ShadowDisplaySlimTextBox
      • ShadowDisplaySlimTextBoxValue
      • ShadowDisplaySlimTimeTextBox
    • Vortex.Presentation.Styling.Wpf
      • VortexResources
    • Vortex.Presentation.Styling.Wpf.Assist
      • DataGridAssist
    • Vortex.Presentation.Wpf
      • ActionRunner
      • ActionRunner.UserApprovedActionDelegate
      • BindableBase
      • ConsoleWriter
      • ConsoleWriterEventArgs
      • ContentOpeningMode
      • CreatorFailureDisplayBox
      • DateFormatConverter
      • DateTimeFormatConverter
      • EnumeratorHelper
      • EnumHelper
      • EnumToCollectionConverter
      • INavigable
      • LazyRenderer
      • MenuControlsHelper
      • MenuControlView
      • MenuControlViewModel
      • MenuControlViewTestViewModel
      • MenuRenderableControlViewModel
      • MvvmVisualState
      • NavCommand
      • NavigableRenderableViewModelBase
      • NavigableViewModelBase
      • PresentationHelper
      • RelayCommand
      • RelayCommand<T>
      • RenderableAssemblyAttribute
      • RenderableContentControl
      • RenderableContentDelayedControl
      • RenderableViewModel
      • RenderContentConverter
      • RenderContentDelayedConverter
      • Renderer
      • Renderer.BaseTypeProperies
      • Renderer.ComponentsCacheItem
      • ReportingLevel
      • SelectedButtonConverter
      • StartUpWindow
      • TestView
      • TimeFormatConverter
      • TooManyObjectsToRenderException
      • ValueDescription
      • WpfLayoutProvider
    • Vortex.Presentation.Wpf.Converters
      • BaseConverter
      • BaseMultiConverter
      • CapitalizeConverter

Class AdsConnector

Ads connector.

Inheritance
System.Object
RootVortexerObject
IConnector
AdsConnector
Implements
IVortexObject
ITwinObject
IVortexElement
System.IDisposable
System.ComponentModel.INotifyPropertyChanged
Inherited Members
IConnector._logger
IConnector.Logger
IConnector._commState
IConnector._cyclicRwDuration
IConnector._DataExchangeStatus
IConnector._loadingSymbol
IConnector._rwCycleCount
IConnector._startUpTime
IConnector.readWriteCycleDealy
IConnector.Online
IConnector.IdentityProvider
IConnector.RwCycleCount
IConnector.CyclicRwDuration
IConnector.StartUpTime
IConnector.MonitorConnector
IConnector.CommState
IConnector.LoadingSymbol
IConnector.ReadWriteCycleDelay
IConnector.DataExchangeStatus
IConnector.PropertyChanged
IConnector.CreateSymbol(String, String)
IConnector.NotifyPropertyChanged(String)
IConnector.SubscribeAllEditValueObserver(OnlinerBaseType.ValueChangeDelegate)
IConnector.isRwLoopSuspended
IConnector.IsRwLoopSuspended
IConnector.WriteProtectionSuspended
RootVortexerObject.SymbolTail
RootVortexerObject.GetSymbolTail()
RootVortexerObject.AttributeName
RootVortexerObject.Symbol
RootVortexerObject.HumanReadable
RootVortexerObject.GetChildren()
RootVortexerObject.Children
RootVortexerObject.Kids
RootVortexerObject.GetParent()
RootVortexerObject.AddChild(IVortexObject)
RootVortexerObject._valueTags
RootVortexerObject.ValueTags
RootVortexerObject.Identity
RootVortexerObject.GetValueTags()
RootVortexerObject.AddValueTag(IValueTag)
RootVortexerObject.GetConnector()
RootVortexerObject.AddKid(IVortexElement)
RootVortexerObject.GetKids()
Namespace: Vortex.Adapters.Connector.Tc3
Assembly: Vortex.Adapters.Connector.Tc3.dll
Syntax
class AdsConnector : IConnector, IVortexObject, ITwinObject, IVortexElement, IDisposable, INotifyPropertyChanged

Constructors

AdsConnector()

Initializes a new instance of the AdsConnector class.

Declaration
public AdsConnector()

AdsConnector(Object[])

Initializes new instance of AdsConnector

Declaration
public AdsConnector(object[] parameters)
Parameters
Type Name Description
System.Object[] parameters

Connection parameters

Fields

_justBuilt

Declaration
bool _justBuilt
Field Value
Type Description
System.Boolean

_onlineVariables

Declaration
IAdsBaseType[] _onlineVariables
Field Value
Type Description
IAdsBaseType[]

chunk_size

Declaration
readonly int chunk_size
Field Value
Type Description
System.Int32

HasAdsSymbolVersionChanged

Declaration
bool HasAdsSymbolVersionChanged
Field Value
Type Description
System.Boolean

liveClient

Declaration
readonly LiveClient liveClient
Field Value
Type Description
LiveClient

onlineTagToObjectLinks

Declaration
List<IAdsBaseType> onlineTagToObjectLinks
Field Value
Type Description
System.Collections.Generic.List<IAdsBaseType>

qr

Declaration
IQueryable<IAdsBaseType> qr
Field Value
Type Description
System.Linq.IQueryable<IAdsBaseType>

readSumMutex

Declaration
volatile object readSumMutex
Field Value
Type Description
System.Object

rwopsAction

Declaration
Action rwopsAction
Field Value
Type Description
System.Action

writeSumMutex

Declaration
volatile object writeSumMutex
Field Value
Type Description
System.Object

Properties

AMSID

Declaration
public string AMSID { get; }
Property Value
Type Description
System.String

Client

Gets the client.

Declaration
LiveClient Client
{
}
Property Value
Type Description
LiveClient

DoNotStartReportingConsole

Gets or sets a value indicating whether start reporting console.

Declaration
public bool DoNotStartReportingConsole { get; set; }
Property Value
Type Description
System.Boolean

Do not start reporting console when true.

ErrorCount

Declaration
public override int ErrorCount { get; set; }
Property Value
Type Description
System.Int32
Overrides
IConnector.ErrorCount

LoadingStatus

Gets or sets the loading status.

Declaration
public static string LoadingStatus { get; set; }
Property Value
Type Description
System.String

The loading status.

Name

Gets or sets the name of this connector.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

The name of the connector.

NetId

Gets the net id.

Declaration
public string NetId { get; }
Property Value
Type Description
System.String

The net id.

OnlineTags

Declaration
public override IEnumerable<IValueTag> OnlineTags { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<IValueTag>
Overrides
IConnector.OnlineTags

OnlineVariables

Declaration
IAdsBaseType[] OnlineVariables
{
}
Property Value
Type Description
IAdsBaseType[]

PreventSynchronousAccess

Declaration
bool PreventSynchronousAccess
{
}
Property Value
Type Description
System.Boolean

SrvPort

Gets the server port.

Declaration
public int SrvPort { get; }
Property Value
Type Description
System.Int32

The server port.

SymbolLoadingMode

Gets or sets symbol loading mode.

Declaration
public SymbolLoadingMode SymbolLoadingMode { get; set; }
Property Value
Type Description
SymbolLoadingMode

SymbolLoadMethod

Get or sets symbol loading method.

Declaration
public SymbolLoadMethod SymbolLoadMethod { get; set; }
Property Value
Type Description
SymbolLoadMethod

Timeout

Gets or sets a value indicating whether synchronous access should be suspended. Typically this value should be set to true during extensive reflection operation when synchronous access to the controller is not required. Suspending synchronous access considerably improves performance. N.B. Suspended synchronous access bypasses all synchronous read and write operations with no further warning.

Declaration
public int Timeout { get; set; }
Property Value
Type Description
System.Int32

Synchronous access is suspended.

Methods

AddTagLink(IAdsBaseType)

Declaration
void AddTagLink(IAdsBaseType variable)
Parameters
Type Name Description
IAdsBaseType variable

AdsClient_AdsStateChanged(Object, AdsStateChangedEventArgs)

Declaration
void AdsClient_AdsStateChanged(object sender, AdsStateChangedEventArgs e)
Parameters
Type Name Description
System.Object sender
TwinCAT.Ads.AdsStateChangedEventArgs e

AdsClient_AdsSymbolVersionChanged(Object, EventArgs)

Declaration
void AdsClient_AdsSymbolVersionChanged(object sender, EventArgs e)
Parameters
Type Name Description
System.Object sender
System.EventArgs e

BuildAndStart()

Declaration
public override IConnector BuildAndStart()
Returns
Type Description
IConnector
Overrides
IConnector.BuildAndStart()

ConnectToController(String, Int32)

Creates connection.

Declaration
protected void ConnectToController(string netId, int srvPort)
Parameters
Type Name Description
System.String netId

The net id.

System.Int32 srvPort

The server port.

CyclicRead()

Reads online variables required to be read.

Declaration
protected void CyclicRead()

CyclicWrite()

Writes modified online variables.

Declaration
protected void CyclicWrite()

CyclicWriteRead()

Write read operation.

Declaration
protected void CyclicWriteRead()

Dispose()

The dispose.

Declaration
public void Dispose()

InitializeConnector()

Initializes connector for on line operations.

Declaration
void InitializeConnector()

InvalidateSymbols()

Declaration
void InvalidateSymbols()

InvokeRpc(String, String, Object[])

Declaration
public override object InvokeRpc(string symbolPath, string methodName, object[] params)
Parameters
Type Name Description
System.String symbolPath
System.String methodName
System.Object[] params
Returns
Type Description
System.Object
Overrides
IConnector.InvokeRpc(String, String, Object[])

ReadBatch(IEnumerable<IValueTag>)

Declaration
public override void ReadBatch(IEnumerable<IValueTag> valueTags)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IValueTag> valueTags
Overrides
IConnector.ReadBatch(IEnumerable<IValueTag>)

ReadFully(Stream)

Declaration
public static byte[] ReadFully(Stream input)
Parameters
Type Name Description
System.IO.Stream input
Returns
Type Description
System.Byte[]

ReadSum(IEnumerable<IAdsBaseType>)

The read sum non extended types from current Ads connection.

Declaration
void ReadSum(IEnumerable<IAdsBaseType> tags)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IAdsBaseType> tags

Online tags to be read.

ReloadConnector()

Declaration
public override void ReloadConnector()
Overrides
IConnector.ReloadConnector()

SetAllToCyclicReading()

Sets all online variables to cyclic reading.

Declaration
[Obsolete]
public void SetAllToCyclicReading()

SplitIntoChunks<T>(IEnumerable<T>, Int32)

Declaration
static IEnumerable<IEnumerable<T>> SplitIntoChunks<T>(IEnumerable<T> source, int chunkSize)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> source
System.Int32 chunkSize
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<T>>
Type Parameters
Name Description
T

StartReadWriteOps()

Starts cyclical read write operation on this connector.

Declaration
protected void StartReadWriteOps()

WriteBatch(IEnumerable<IValueTag>)

Declaration
public override void WriteBatch(IEnumerable<IValueTag> valueTags)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IValueTag> valueTags
Overrides
IConnector.WriteBatch(IEnumerable<IValueTag>)

WriteSum(IEnumerable<IAdsBaseType>)

Writes non extended online variables.

Declaration
void WriteSum(IEnumerable<IAdsBaseType> tags)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IAdsBaseType> tags

Online tags to be written.

Implements

IVortexObject
ITwinObject
IVortexElement
System.IDisposable
System.ComponentModel.INotifyPropertyChanged

Extension Methods

ExceptionHandler.Post(AdsConnector, Exception, String)
IValueTagExtensions.Cast<T>(T, Object)
In This Article
Back to top

Generated by DocFX | Developed with ❤ at MTS - putting the heart into manufacturing.