Table of Contents

Class AnalogInputsTerminal<TInput>

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

Represents a base class for an analog input.

public abstract class AnalogInputsTerminal<TInput> : WCStateTerminalBase, INotifyPropertyChanged, ITerminal, IHasWCState where TInput : AnalogInput

Type Parameters

TInput

Type of the inputs.

Inheritance
AnalogInputsTerminal<TInput>
Implements
Derived
Inherited Members

Constructors

AnalogInputsTerminal(ushort)

Initializes a new instance of the AnalogInputsTerminal<TInput> class.

protected AnalogInputsTerminal(ushort inputsCount)

Parameters

inputsCount ushort

Number of input channels.

Properties

Inputs

Gets or sets the current inputs.

public virtual IReadOnlyList<TInput> Inputs { get; protected set; }

Property Value

IReadOnlyList<TInput>

Modules

Gets the ILisrtModules from the terminal, for example the input channels.

public override IEnumerable<ILisrtModule> Modules { get; }

Property Value

IEnumerable<ILisrtModule>

Methods

CreateInput(AdsVariable)

Creates a new input.

protected abstract TInput CreateInput(AdsVariable adsValueVar)

Parameters

adsValueVar AdsVariable

ADS variable containing value.

Returns

TInput

A new input.

CreateInputs(ushort)

Creates the input channels.

protected virtual IEnumerable<TInput> CreateInputs(ushort inputsCount)

Parameters

inputsCount ushort

Number of inputs.

Returns

IEnumerable<TInput>

The new inputs.