Class AdsIOMasterModule
Base for an IO master with ADS communication.
public abstract class AdsIOMasterModule : IOMasterModuleBase, ILisrtModule, IIOMaster, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView
- Inheritance
-
PropertyChangedBaseAdsIOMasterModule
- Implements
-
INotifyPropertyChangedEx
- Derived
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
- Extension Methods
Constructors
AdsIOMasterModule(string)
Initializes a new instance of the AdsIOMasterModule class.
protected AdsIOMasterModule(string name)
Parameters
name
stringThe 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
InitializationState
Gets or sets a value indicating whether the module is initialized.
public InitializationState InitializationState { get; protected set; }
Property Value
IsPollingEnabled
Gets a value indicating whether polling is enabled.
public bool IsPollingEnabled { get; }
Property Value
Port
Gets or sets the port.
[Configuration(27905, Description = "Usually 27905 or 27906")]
public int Port { get; set; }
Property Value
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