PlcValue<T> Class

Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll

Represents an abstract implementation of the IPlcValue´1 interface.

C#

public abstract class PlcValue<T> : IPlcValue<T>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize


Inheritance Object › PlcValue<T>


Derived


Implements IPlcValue<T>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize

Name Description
PlcValue`1(PlcType) Initializes a new instance of the PlcValue´1 class using the specified type.
PlcValue`1(PlcType, PlcName) Initializes a new instance of the PlcValue´1 class using the specified type and name.
PlcValue`1(PlcType, PlcName, 0) Initializes a new instance of the PlcValue´1 class using the specified type, name and value.
PlcValue`1(PlcType, 0) Initializes a new instance of the PlcValue´1 class using the specified type and value.
Name Description
Changed Occurs when the value of the Value property has changed.
Name Description
Description Gets or sets more meaningful information about the value and its usage than only using the Name property.
IsInitializing Gets a value indicating whether the instance is in initializing mode.
Name Gets the name of the value represented.
Status Gets the status information provided by the software driver related to the value.
Tag Gets or sets the object that contains additional user data about the value.
Type Gets the type of value represented by the PLC value.
Value Gets or sets the value assigned to the PLC value.
Name Description
BeginInitCore When implemented in a derived class; signals the PlcValue´1 that initialization is started.
EndInitCore When implemented in a derived class; signals the PlcValue´1 that initialization is completed.
GetInstanceValue Retrieves the value assigned to the PLC value.
GetValue(IPlcDevice) Retrieves the current value of the PLC value from the device specified.
GetValue(PlcDeviceConnection) Retrieves the current value of the PLC value from a IPlcDevice using the connection specified.
GetValueCore(PlcDeviceConnection) Retrieves the current value of the PLC value from a IPlcDevice using the connection specified.
IsValidType(Object) Determines whether a specified value is acceptable for this PlcValue´1.
IsValidValue(Object) 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.
OnChanged(ValueChangedEventArgs) Raises the Changed event.
OnChanged(ValueChangedEventArgs) Raises the Changed event.
RaiseChanged(0, 0) Raises the Changed and Changed events.
Relocate(Int32) Relocates the PlcValue´1 using the specified offset. The original PlcValue´1 remains unmodified.
Relocate(Int32, Int32) Relocates the PlcValue´1 using the specified offset. The original PlcValue´1 remains unmodified.
Relocate(Int32, Int32, Int32) Relocates the PlcValue´1 using the specified offset. The original PlcValue´1 remains unmodified.
Relocate(PlcAddress) Relocates the PlcValue´1 using the specified address. The original PlcValue´1 remains unmodified.
RelocateCore(PlcAddress) When implemented in a derived class, relocates the value to the address specified.
SetInstanceValue(0) Applies the value to the PLC value.
SetValue(IPlcDevice) Stores the Value in the device specified.
SetValue(IPlcDevice, 0) Stores the value in the device specified.
SetValue(PlcDeviceConnection) Stores the Value in the IPlcDevice assigned to the connection specified.
SetValue(PlcDeviceConnection, 0) Stores the value in the IPlcDevice assigned to the connection specified.
SetValueCore(PlcDeviceConnection, 0) Stores the value in the IPlcDevice assigned to the connection specified.
ToString Converts the value to its string representation.
ValidateValue(Object) Validates the specified value whether it can be assigned to this PlcValue´1.
Name Description
op_Explicit(PlcValue) Converts a PlcValue´1 to an object of the type T.