Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The IPlcValue interface defines the following members.
Gets or sets the value assigned to the PLC value.
C#
object Value { get; set; }
Property Value
The value assigned to the PLC value.
Retrieves the current value of the PLC value from the device
specified.
C#
object 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#
object 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.
Determines whether the provided value is accepted for the type of PLC value through basic type checking and also potentially if it is within the allowed range of value for that type.
C#
bool IsValidValue(object value)
Parameters
value
Object
The value to check.
Returns
The value true, if the specified value
is acceptable and is of the correct type or a derived type; otherwise the value false.
Stores the Value in the device
specified.
C#
void SetValue(IPlcDevice device)
Parameters
device
IPlcDevice
The IPlcDevice in that the data is to be stored.
Exceptions
The device
is a null reference (Nothing in Visual Basic).
Stores the value
in the device
specified.
C#
void SetValue(IPlcDevice device, object value)
Parameters
device
IPlcDevice
The IPlcDevice in that the data is to be stored.
value
Object
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)
Parameters
connection
PlcDeviceConnection
The PlcDeviceConnection to use to store the 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 IPlcDevice assigned to the connection
specified.
C#
void SetValue(PlcDeviceConnection connection, object value)
Parameters
connection
PlcDeviceConnection
The PlcDeviceConnection to use to store the value
.
value
Object
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.