Table of Contents

Class SafetyGroup

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

Represents a TwinSAFE group.

public class SafetyGroup : PropertyChangedBase, INotifyPropertyChangedEx, ILisrtModule, INotifyPropertyChanged, IHasServiceView
Inheritance
PropertyChangedBase
SafetyGroup
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

SafetyGroup(string, string)

Initializes a new instance of the SafetyGroup class.

public SafetyGroup(string moduleName, string groupName)

Parameters

moduleName string

The name of the module.

groupName string

The name of the group. Must be equal to th name defined in TwinSAFE.

Properties

DisableErrorMessages

Gets or sets a value indicating whether the error messages should be hidden.

public bool DisableErrorMessages { get; set; }

Property Value

bool

Enabled

Gets or sets a value indicating whether the ILisrtModule instance is enabled.

public bool Enabled { get; set; }

Property Value

bool

GroupName

Gets the name of the TwinSAFE group.

public string GroupName { get; }

Property Value

string

HasCommunicationError

Gets a value indicating whether one of the connections has a communication error.

public bool HasCommunicationError { get; }

Property Value

bool

HasError

Gets a value indicating whether the group has an error.

public bool HasError { get; }

Property Value

bool

HasFunctionBlockError

Gets a value indicating whether one of the function blocks has an error.

public bool HasFunctionBlockError { get; }

Property Value

bool

HasOtherError

Gets a value indicating whether the group has an other error.

public bool HasOtherError { get; }

Property Value

bool

Icon

Gets the icon.

public Uri Icon { get; }

Property Value

Uri

IsRunning

Gets a value indicating whether the group is running.

public bool IsRunning { get; }

Property Value

bool

Name

Gets the name (key).

public string Name { get; }

Property Value

string

Parent

Gets or sets the parent module.

public ILisrtModule Parent { get; set; }

Property Value

ILisrtModule

TreeItem

Gets the view model for the module.

public ITreeItem TreeItem { get; }

Property Value

ITreeItem

Methods

AcknowledgeError()

Acknowledges an error.

public void AcknowledgeError()

CreateServiceViewModel()

Creates the service view model.

protected virtual IDocument CreateServiceViewModel()

Returns

IDocument

The service view model.

RegisterAlias(SafetyGroupAliasBase)

Registers an additional alias.

public void RegisterAlias(SafetyGroupAliasBase alias)

Parameters

alias SafetyGroupAliasBase

Alias to register.

Exceptions

ArgumentNullException

Thrown when alias is null.

RegisterAliases()

Registers the additional aliases.

protected virtual void RegisterAliases()

Run()

Runs the group.

public void Run()

ShowServiceView()

Shows the service view.

public void ShowServiceView()

Stop()

Stops the group.

public void Stop()