PlcDouble Members

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

PlcDouble(PlcDoubleType)

Initializes a new instance of the PlcDouble class using the specified type

C#

public PlcDouble(PlcDoubleType type)


Parameters

type PlcDoubleType

The PlcDoubleType of the new PlcDouble to which the PLC value belongs.


Exceptions

ArgumentNullException

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

PlcDouble(PlcDoubleType, Double)

Initializes a new instance of the PlcDouble class using the specified type and value.

C#

public PlcDouble(PlcDoubleType type, double value)


Parameters

type PlcDoubleType

The PlcDoubleType of the new PlcDouble to which the PLC value belongs.

value Double

The initial value of the new PlcDouble.


Exceptions

ArgumentNullException

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

PlcDouble(PlcDoubleType, PlcName)

Initializes a new instance of the PlcDouble class using the specified type and name.

C#

public PlcDouble(PlcDoubleType type, PlcName name)


Parameters

type PlcDoubleType

The PlcDoubleType of the new PlcDouble to which the PLC value belongs.

name PlcName

The name of the value.


Exceptions

ArgumentNullException

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

PlcDouble(PlcDoubleType, PlcName, Double)

Initializes a new instance of the PlcDouble class using the specified type, name and value.

C#

public PlcDouble(PlcDoubleType type, PlcName name, double value)


Parameters

type PlcDoubleType

The PlcDoubleType of the new PlcDouble to which the PLC value belongs.

name PlcName

The name of the value.

value Double

The initial value of the new PlcDouble.


Exceptions

ArgumentNullException

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

PlcDouble(PlcIdentity)

Initializes a new instance of the PlcDouble class using the specified identity

C#

public PlcDouble(PlcIdentity identity)


Parameters

identity PlcIdentity

The PlcIdentity of the new PlcDouble to which the PLC value belongs.


Exceptions

ArgumentException

The identity does not refer to the DWord.

ArgumentNullException

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

PlcDouble(PlcIdentity, Double)

Initializes a new instance of the PlcDouble class using the specified identity and value.

C#

public PlcDouble(PlcIdentity identity, double value)


Parameters

identity PlcIdentity

The PlcIdentity of the new PlcDouble to which the PLC value belongs.

value Double

The initial value of the new PlcDouble.


Exceptions

ArgumentException

The identity does not refer to the DWord.

ArgumentNullException

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

PlcDouble(PlcIdentity, PlcName)

Initializes a new instance of the PlcDouble class using the specified identity and name.

C#

public PlcDouble(PlcIdentity identity, PlcName name)


Parameters

identity PlcIdentity

The PlcIdentity of the new PlcDouble to which the PLC value belongs.

name PlcName

The name of the value.


Exceptions

ArgumentException

The identity does not refer to the DWord.

ArgumentNullException

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

PlcDouble(PlcIdentity, PlcName, Double)

Initializes a new instance of the PlcDouble class using the specified identity, name and value.

C#

public PlcDouble(PlcIdentity identity, PlcName name, double value)


Parameters

identity PlcIdentity

The PlcIdentity of the new PlcDouble to which the PLC value belongs.

name PlcName

The name of the value.

value Double

The initial value of the new PlcDouble.


Exceptions

ArgumentException

The identity does not refer to the DWord.

ArgumentNullException

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

GetValueCore(PlcDeviceConnection)

Retrieves the current value of the PLC value from a IPlcDevice using the connection specified.

C#

protected override double GetValueCore(PlcDeviceConnection connection)


Parameters

connection PlcDeviceConnection

The PlcDeviceConnection from that the data is to be retrieved.


Returns

Double

The current value of the PLC value.



Exceptions

InvalidOperationException

The connection is in Faulted state and cannot longer be opened.

ObjectDisposedException

The connection has been disposed of.

RelocateCore(PlcAddress)

Relocates the value to the address specified.

C#

protected override IPlcValue RelocateCore(PlcAddress address)


Parameters

address PlcAddress

The PlcAddress to that the value is to be relocated.


Returns

IPlcValue

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

SetValueCore(PlcDeviceConnection, Double)

Stores the value in the IPlcDevice assigned to the connection specified.

C#

protected override void SetValueCore(PlcDeviceConnection connection, double value)


Parameters

connection PlcDeviceConnection

The PlcDeviceConnection to use to store the value.

value Double

The value to be stored.



Exceptions

InvalidOperationException

The connection is in Faulted state and cannot longer be opened.

ObjectDisposedException

The connection has been disposed of.