PlcInt64Array Members

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

PlcInt64Array(PlcIdentity, Int32)

Initializes a new instance of the PlcInt64Array class using the specified identity and length.

C#

public PlcInt64Array(PlcIdentity identity, int length)


Parameters

identity PlcIdentity

The PlcIdentity of the new PlcInt64Array to which the PLC array belongs.

length Int32

The array length used to store the array values of the PlcInt64Array.


Exceptions

ArgumentException

The identity does not refer to the LWord.

ArgumentNullException

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

ArgumentOutOfRangeException

The length is out of the bounds defined by MinLength and MaxLength.

PlcInt64Array(PlcIdentity, Int64[])

Initializes a new instance of the PlcInt64Array class using the specified identity and values.

C#

public PlcInt64Array(PlcIdentity identity, params long[] values)


Parameters

identity PlcIdentity

The PlcIdentity of the new PlcInt64Array to which the PLC array belongs.

values Int64[]

The initial values of the new PlcInt64Array.


Exceptions

ArgumentException

The identity does not refer to the LWord.

ArgumentNullException

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

PlcInt64Array(PlcIdentity, PlcName, Int32)

Initializes a new instance of the PlcInt64Array class using the specified identity, name and length.

C#

public PlcInt64Array(PlcIdentity identity, PlcName name, int length)


Parameters

identity PlcIdentity

The PlcIdentity of the new PlcInt64Array to which the PLC array belongs.

name PlcName

The name of the array represented.

length Int32

The array length used to store the array values of the PlcInt64Array.


Exceptions

ArgumentException

The identity does not refer to the LWord.

ArgumentNullException

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

ArgumentOutOfRangeException

The length is out of the bounds defined by MinLength and MaxLength.

PlcInt64Array(PlcIdentity, PlcName, Int64[])

Initializes a new instance of the PlcInt64Array class using the specified identity, name and values.

C#

public PlcInt64Array(PlcIdentity identity, PlcName name, params long[] values)


Parameters

identity PlcIdentity

The PlcIdentity of the new PlcInt64Array to which the PLC array belongs.

name PlcName

The name of the array represented.

values Int64[]

The initial values of the new PlcInt64Array.


Exceptions

ArgumentException

The identity does not refer to the LWord.

ArgumentNullException

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

PlcInt64Array(PlcInt64ArrayType)

Initializes a new instance of the PlcInt64Array class using the specified type.

C#

public PlcInt64Array(PlcInt64ArrayType type)


Parameters

type PlcInt64ArrayType

The PlcInt64ArrayType of the new PlcInt64Array to which the PLC array belongs.


Exceptions

ArgumentNullException

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

PlcInt64Array(PlcInt64ArrayType, Int64[])

Initializes a new instance of the PlcInt64Array class using the specified type and values.

C#

public PlcInt64Array(PlcInt64ArrayType type, params long[] values)


Parameters

type PlcInt64ArrayType

The PlcInt64ArrayType of the new PlcInt64Array to which the PLC array belongs.

values Int64[]

The initial values of the new PlcInt64Array.


Exceptions

ArgumentNullException

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

PlcInt64Array(PlcInt64ArrayType, PlcName, Int64[])

Initializes a new instance of the PlcInt64Array class using the specified type, name and values.

C#

public PlcInt64Array(PlcInt64ArrayType type, PlcName name, params long[] values)


Parameters

type PlcInt64ArrayType

The PlcInt64ArrayType of the new PlcInt64Array to which the PLC array belongs.

name PlcName

The name of the array represented.

values Int64[]

The initial values of the new PlcInt64Array.


Exceptions

ArgumentNullException

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

GetElementCore(Int32)

Retrieves the PlcInt64 at the specified index.

C#

protected override PlcInt64 GetElementCore(int index)


Parameters

index Int32

The zero-based index of the element to get.


Returns

PlcInt64

The PlcInt64 at the specified index.

GetValueCore(PlcDeviceConnection)

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

C#

protected override long[] GetValueCore(PlcDeviceConnection connection)


Parameters

connection PlcDeviceConnection

The PlcDeviceConnection from that the data is to be retrieved.


Returns

Int64[]

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, Int64[])

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

C#

protected override void SetValueCore(PlcDeviceConnection connection, long[] value)


Parameters

connection PlcDeviceConnection

The PlcDeviceConnection to use to store the value.

value Int64[]

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.