PlcValueMember Members

Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcValueMember type exposes the following members.

PlcValueMember(PlcName, IPlcValue)

Initializes a new instance of the PlcValueMember class using the name and value specified.

C#

public PlcValueMember(PlcName name, IPlcValue value)


Parameters

name PlcName

The name of the member.

value IPlcValue

The IPlcValue to be represented.


Exceptions

ArgumentNullException

The name or value is a null reference (Nothing in Visual Basic).

Value

Gets the value represented by the member.

C#

public IPlcValue Value { get; }


Property Value

IPlcValue

The IPlcValue represented by the member.

GetValueCore(PlcObject)

Retrieves the value of the member supported by the given instance.

C#

protected override object GetValueCore(PlcObject instance)


Parameters

instance PlcObject

The PlcObject from that the value of the member is to be retrieved.


Returns

Object

The value of the member supported by the instance.

HasValueCore(PlcObject)

Retrieves a value indicating whether the member supported by the given instance is associated with a value.

C#

protected override bool HasValueCore(PlcObject instance)


Parameters

instance PlcObject

The PlcObject its member value is to be tested.


Returns

Boolean

The value true, if a value is associated with the instance using this member; otherwise the value false.

MakeAbsoluteMember(PlcIdentity)

Retrieves the PlcValueMember as an absolute addressable PLC member.

C#

public override 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

IPlcMemberInfo

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

ArgumentException

The identity specified does not provide the necessary information required to address the type of data.

ArgumentNullException

The identity is a null reference (Nothing in Visual Basic).

RelocateCore(PlcAddress)

Relocates the member to the address specified.

C#

protected override PlcMember RelocateCore(PlcAddress address)


Parameters

address PlcAddress

The PlcAddress to that the member is to be relocated.


Returns

PlcMember

A new instance of the same type as this PLC member instance relocated to the address specified.

SetValueCore(PlcObject, Object)

Stores the value of the member supported by the given instance.

C#

protected override 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.

ToString()

Returns a string that represents the PlcValueMember.

C#

public override string ToString()


Returns

String

A string that represents the PlcValueMember.