IPlcValue<T> Members

Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The IPlcValue<T> interface defines the following members.

Changed

Occurs when the value of the Value property has changed.

C#

event ValueChangedEventHandler<T> Changed

Value

Gets or sets the value assigned to the PLC value.

C#

T Value { get; set; }


Property Value

T

The T value assigned to the PLC value.

GetValue(IPlcDevice)

Retrieves the current value of the PLC value from the device specified.

C#

T GetValue(IPlcDevice device)


Parameters

device IPlcDevice

The IPlcDevice from that the data is to be retrieved.


Returns

T

The current value of the PLC value.



Exceptions

ArgumentNullException

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

GetValue(PlcDeviceConnection)

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

C#

T GetValue(PlcDeviceConnection connection)


Parameters

connection PlcDeviceConnection

The PlcDeviceConnection from that the data is to be retrieved.


Returns

T

The current value of the PLC value.



Exceptions

ArgumentNullException

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

InvalidOperationException

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

ObjectDisposedException

The connection has been disposed of.

SetValue(IPlcDevice, T)

Stores the value in the device specified.

C#

void SetValue(IPlcDevice device, T value)


Parameters

device IPlcDevice

The IPlcDevice in that the data is to be stored.

value T

The value to be stored.



Exceptions

ArgumentException

The value is invalid. It either does not fall within an expected value range or its type is not supported by the IPlcValue.

ArgumentNullException

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

SetValue(PlcDeviceConnection, T)

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

C#

void SetValue(PlcDeviceConnection connection, T value)


Parameters

connection PlcDeviceConnection

The PlcDeviceConnection to use to store the value.

value T

The value to be stored.



Exceptions

ArgumentException

The value is invalid. It either does not fall within an expected value range or its type is not supported by the IPlcValue.

ArgumentNullException

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

InvalidOperationException

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

ObjectDisposedException

The connection has been disposed of.