Table of Contents

Class AdsIOMasterModule

Namespace
Loehnert.Lisrt.IO.Beckhoff.Ads
Assembly
Loehnert.Lisrt.IO.Beckhoff.dll

Base for an IO master with ADS communication.

public abstract class AdsIOMasterModule : IOMasterModuleBase, ILisrtModule, IIOMaster, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView
Inheritance
PropertyChangedBase
AdsIOMasterModule
Implements
INotifyPropertyChangedEx
Derived
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged
Extension Methods

Constructors

AdsIOMasterModule(string)

Initializes a new instance of the AdsIOMasterModule class.

protected AdsIOMasterModule(string name)

Parameters

name string

The name of the module.

Properties

AmsNetID

Gets or sets the net ID.

[Configuration("", Description = "Format x.x.x.x.x.x")]
public string AmsNetID { get; set; }

Property Value

string

InitializationState

Gets or sets a value indicating whether the module is initialized.

public InitializationState InitializationState { get; protected set; }

Property Value

InitializationState

IsPollingEnabled

Gets a value indicating whether polling is enabled.

public bool IsPollingEnabled { get; }

Property Value

bool

Port

Gets or sets the port.

[Configuration(27905, Description = "Usually 27905 or 27906")]
public int Port { get; set; }

Property Value

int

Methods

Exit()

Exits the object.

public virtual void Exit()

Initialize()

Initializes the object.

public virtual void Initialize()

ShowServiceView()

Shows the service window.

public void ShowServiceView()

ThrowInvalidOperationExceptionIfNotInitialized()

Throws an invalid operation exception if InitializationState is neither Initialized nor IsInitializing.

protected void ThrowInvalidOperationExceptionIfNotInitialized()

WriteAllVariables()

Writes all write variables.

protected void WriteAllVariables()

Events

ReadVariablesUpdated

Occurs when all ReadVariables are updated.

public event EventHandler ReadVariablesUpdated

Event Type

EventHandler