PlcByte Members

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

PlcByte(PlcByteType)

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

C#

public PlcByte(PlcByteType type)


Parameters

type PlcByteType

The PlcByteType of the new PlcByte to which the PLC value belongs.


Exceptions

ArgumentNullException

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

PlcByte(PlcByteType, Byte)

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

C#

public PlcByte(PlcByteType type, byte value)


Parameters

type PlcByteType

The PlcByteType of the new PlcByte to which the PLC value belongs.

value Byte

The initial value of the new PlcByte.


Exceptions

ArgumentNullException

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

PlcByte(PlcByteType, PlcName)

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

C#

public PlcByte(PlcByteType type, PlcName name)


Parameters

type PlcByteType

The PlcByteType of the new PlcByte 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).

PlcByte(PlcByteType, PlcName, Byte)

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

C#

public PlcByte(PlcByteType type, PlcName name, byte value)


Parameters

type PlcByteType

The PlcByteType of the new PlcByte to which the PLC value belongs.

name PlcName

The name of the value.

value Byte

The initial value of the new PlcByte.


Exceptions

ArgumentNullException

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

PlcByte(PlcIdentity)

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

C#

public PlcByte(PlcIdentity identity)


Parameters

identity PlcIdentity

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


Exceptions

ArgumentException

The identity does not refer to the Byte.

ArgumentNullException

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

PlcByte(PlcIdentity, Byte)

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

C#

public PlcByte(PlcIdentity identity, byte value)


Parameters

identity PlcIdentity

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

value Byte

The initial value of the new PlcByte.


Exceptions

ArgumentException

The identity does not refer to the Byte.

ArgumentNullException

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

PlcByte(PlcIdentity, PlcName)

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

C#

public PlcByte(PlcIdentity identity, PlcName name)


Parameters

identity PlcIdentity

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

name PlcName

The name of the value.


Exceptions

ArgumentException

The identity does not refer to the Byte.

ArgumentNullException

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

PlcByte(PlcIdentity, PlcName, Byte)

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

C#

public PlcByte(PlcIdentity identity, PlcName name, byte value)


Parameters

identity PlcIdentity

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

name PlcName

The name of the value.

value Byte

The initial value of the new PlcByte.


Exceptions

ArgumentException

The identity does not refer to the Byte.

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 byte GetValueCore(PlcDeviceConnection connection)


Parameters

connection PlcDeviceConnection

The PlcDeviceConnection from that the data is to be retrieved.


Returns

Byte

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, Byte)

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

C#

protected override void SetValueCore(PlcDeviceConnection connection, byte value)


Parameters

connection PlcDeviceConnection

The PlcDeviceConnection to use to store the value.

value Byte

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.