Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The IPlcValue<T> interface defines the following members.
Occurs when the value of the Value property has changed.
C#
event ValueChangedEventHandler<T> Changed
Gets or sets the value assigned to the PLC value.
C#
T Value { get; set; }
Property Value
The T
value assigned to the PLC value.
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
The current value of the PLC value.
Exceptions
The device
is a null reference (Nothing in Visual Basic).
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
The current value of the PLC value.
Exceptions
The connection
is a null reference (Nothing in Visual Basic).
The connection
is in Faulted state and cannot longer be opened.
The connection
has been disposed of.
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
The value
is invalid. It either does not fall within an expected value range or its type is not supported by the IPlcValue.
The device
is a null reference (Nothing in Visual Basic).
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
The value
is invalid. It either does not fall within an expected value range or its type is not supported by the IPlcValue.
The connection
is a null reference (Nothing in Visual Basic).
The connection
is in Faulted state and cannot longer be opened.
The connection
has been disposed of.