Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcBooleanArray type exposes the following members.
Initializes a new instance of the PlcBooleanArray class using the specified type
.
C#
public PlcBooleanArray(PlcBooleanArrayType type)
Parameters
type
PlcBooleanArrayType
The PlcBooleanArrayType of the new PlcBooleanArray to which the PLC array belongs.
Exceptions
The type
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the PlcBooleanArray class using the specified type
and values
.
C#
public PlcBooleanArray(PlcBooleanArrayType type, params bool[] values)
Parameters
type
PlcBooleanArrayType
The PlcBooleanArrayType of the new PlcBooleanArray to which the PLC array belongs.
values
Boolean[]
The initial values of the new PlcBooleanArray.
Exceptions
The type
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the PlcBooleanArray class using the specified type
, name
and values
.
C#
public PlcBooleanArray(PlcBooleanArrayType type, PlcName name, params bool[] values)
Parameters
type
PlcBooleanArrayType
The PlcBooleanArrayType of the new PlcBooleanArray to which the PLC array belongs.
name
PlcName
The name of the array represented.
values
Boolean[]
The initial values of the new PlcBooleanArray.
Exceptions
The type
or name
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the PlcBooleanArray class using the specified identity
and values
.
C#
public PlcBooleanArray(PlcIdentity identity, params bool[] values)
Parameters
identity
PlcIdentity
The PlcIdentity of the new PlcBooleanArray to which the PLC array belongs.
values
Boolean[]
The initial values of the new PlcBooleanArray.
Exceptions
The identity
does not refer to the Bit.
The identity
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the PlcBooleanArray class using the specified identity
and length
.
C#
public PlcBooleanArray(PlcIdentity identity, int length)
Parameters
identity
PlcIdentity
The PlcIdentity of the new PlcBooleanArray to which the PLC array belongs.
length
Int32
The array length used to store the array values of the PlcBooleanArray.
Exceptions
The identity
does not refer to the Bit.
The identity
is a null reference (Nothing in Visual Basic).
The length
is out of the bounds defined by MinLength and MaxLength.
Initializes a new instance of the PlcBooleanArray class using the specified identity
, name
and values
.
C#
public PlcBooleanArray(PlcIdentity identity, PlcName name, params bool[] values)
Parameters
identity
PlcIdentity
The PlcIdentity of the new PlcBooleanArray to which the PLC array belongs.
name
PlcName
The name of the array represented.
values
Boolean[]
The initial values of the new PlcBooleanArray.
Exceptions
The identity
does not refer to the Bit.
The identity
or name
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the PlcBooleanArray class using the specified identity
, name
and length
.
C#
public PlcBooleanArray(PlcIdentity identity, PlcName name, int length)
Parameters
identity
PlcIdentity
The PlcIdentity of the new PlcBooleanArray 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 PlcBooleanArray.
Exceptions
The identity
does not refer to the Bit.
The identity
or name
is a null reference (Nothing in Visual Basic).
The length
is out of the bounds defined by MinLength and MaxLength.
Retrieves the PlcBoolean at the specified index.
C#
protected override PlcBoolean GetElementCore(int index)
Parameters
index
Int32
The zero-based index of the element to get.
Returns
The PlcBoolean at the specified index.
Retrieves the current value of the PLC value from a IPlcDevice using the connection
specified.
C#
protected override bool[] GetValueCore(PlcDeviceConnection connection)
Parameters
connection
PlcDeviceConnection
The PlcDeviceConnection from that the data is to be retrieved.
Returns
Boolean[]
The current value of the PLC value.
Exceptions
The connection
is in Faulted state and cannot longer be opened.
The connection
has been disposed of.
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
A new instance of the same type as this PLC value instance relocated to the address
specified.
Stores the value
in the IPlcDevice assigned to the connection
specified.
C#
protected override void SetValueCore(PlcDeviceConnection connection, bool[] value)
Parameters
connection
PlcDeviceConnection
The PlcDeviceConnection to use to store the value
.
value
Boolean[]
The value to be stored.
Exceptions
The connection
is in Faulted state and cannot longer be opened.
The connection
has been disposed of.