Skip to content

LifeGuardingEventArgs Class

Argument type for the LifeGuardingEvent: the producer-side (NMT slave) life guarding of CiA 301 §7.2.8.3.2.1, driven by 100Ch (guard time) and 100Dh (life time factor) of this node's object dictionary.

public sealed class LifeGuardingEventArgs : System.EventArgs

Inheritance Object → EventArgs → LifeGuardingEventArgs

Constructors

LifeGuardingEventArgs(LifeGuardingState, TimeSpan, byte) Constructor

Constructs a new event.

public LifeGuardingEventArgs(CanKit.Pro.CANopen.LifeGuardingState state, System.TimeSpan guardTime, byte lifeTimeFactor);

Parameters

state LifeGuardingState

guardTime TimeSpan

lifeTimeFactor Byte

Properties

LifeGuardingEventArgs.GuardTime Property

The guard time (100Ch) in effect when the event was raised.

public System.TimeSpan GuardTime { get; }

Property Value

TimeSpan

LifeGuardingEventArgs.LifeTimeFactor Property

The life time factor (100Dh) in effect when the event was raised.

public byte LifeTimeFactor { get; }

Property Value

Byte

LifeGuardingEventArgs.State Property

Whether the remote error occurred or was resolved.

public CanKit.Pro.CANopen.LifeGuardingState State { get; }

Property Value

LifeGuardingState