Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcMember type exposes the following members.
Occurs when the value of the member has changed.
C#
public event ValueChangedEventHandler Changed
Gets or sets a value indicating whether the member can be read.
C#
public virtual bool CanRead { get; set; }
Property Value
The value true, if the member can be read; otherwise the value false.
Gets or sets a value indicating whether the member can be written to.
C#
public virtual bool CanWrite { get; set; }
Property Value
The value true, if the member can be written to; otherwise the value false.
Retrieves the value of the member supported by the given instance
.
C#
public object GetValue(PlcObject instance)
Parameters
instance
PlcObject
The PlcObject from that the value of the member is to be retrieved.
Returns
The value of the member supported by the instance
.
Exceptions
The instance
is a null reference (Nothing in Visual Basic).
When implemented in a derived class, retrieves the value of the member supported by the given instance
.
C#
protected abstract object GetValueCore(PlcObject instance)
Parameters
instance
PlcObject
The PlcObject from that the value of the member is to be retrieved.
Returns
The value of the member supported by the instance
.
Retrieves a value indicating whether the member supported by the given instance
is associated with a value.
C#
public bool HasValue(PlcObject instance)
Parameters
instance
PlcObject
The PlcObject its member value is to be tested.
Returns
The value true, if a value is associated with the instance using this member; otherwise the value false.
Exceptions
The instance
is a null reference (Nothing in Visual Basic).
When implemented in a derived class, retrieves a value indicating whether the member supported by the given instance
is associated with a value.
C#
protected abstract bool HasValueCore(PlcObject instance)
Parameters
instance
PlcObject
The PlcObject its member value is to be tested.
Returns
The value true, if a value is associated with the instance using this member; otherwise the value false.
Retrieves the PlcMember as an absolute addressable PLC member.
C#
public abstract IPlcMemberInfo MakeAbsoluteMember(PlcIdentity identity)
Parameters
identity
PlcIdentity
The PlcIdentity to use to define the absolute location. This identity is used to define the basis starting from that the member is be located.
Returns
In case there IsAbsolute is equals true the reference to this member; otherwise a new instance of the member which refers to an absolute PlcType.
Exceptions
The identity
specified does not provide the necessary information required to address the type of data.
The identity
is a null reference (Nothing in Visual Basic).
Raises the Changed event.
C#
protected virtual void OnChanged(ValueChangedEventArgs e)
Parameters
The ValueChangedEventArgs that contains the event data.
When implemented in a derived class, relocates the member to the address
specified.
C#
protected abstract PlcMember RelocateCore(PlcAddress address)
Parameters
address
PlcAddress
The PlcAddress to that the member is to be relocated.
Returns
A new instance of the same type as this PLC member instance relocated to the address
specified.
Stores the value
of the member supported by the given instance
.
C#
public void SetValue(PlcObject instance, object value)
Parameters
instance
PlcObject
The PlcObject into that the value of the member is to be stored.
value
Object
The value to store.
Exceptions
The instance
is a null reference (Nothing in Visual Basic).
When implemented in a derived class, stores the value
of the member supported by the given instance
.
C#
protected abstract void SetValueCore(PlcObject instance, object value)
Parameters
instance
PlcObject
The PlcObject into that the value of the member is to be stored.
value
Object
The value to store.