Class TPLCNumber
Unit
Declaration
type TPLCNumber = class(TPLCTag)
Description
Base class of numeric tags.
:
Hierarchy
Overview
Fields
FEnableMin:Boolean; |
|
FEnableMax:Boolean; |
|
FMinLimit:Double; |
|
FMaxLimit:Double; |
|
PScaleProcessor:TScaleProcessor; |
|
PValueRaw:Double; |
Methods
function GetValueAsText(Prefix, Sufix, Format: UTF8String; FormatDateTimeOptions:TFormatDateTimeOptions=[]): UTF8String; virtual; |
|
procedure AsyncNotifyChange(data:Pointer); override; |
|
function GetValueChangeData: Pointer; override; |
|
procedure ReleaseChangeData(data: Pointer); override; |
|
function GetValue:Double; virtual; |
|
function GetValueRaw:Double; virtual; abstract; |
|
procedure SetValue(Value:Double); virtual; |
|
procedure SetValueRaw(Value:Double); virtual; abstract; |
|
procedure SetScaleProcessor(sp:TScaleProcessor); |
|
procedure SetMinLimit(v:Double); |
|
procedure SetMaxLimit(v:Double); |
|
procedure Write; overload; virtual; |
|
procedure ScanWrite; overload; virtual; |
|
procedure RemoveScaleProcessor; |
Properties
property EnableMinValue: Boolean read FEnableMin write FEnableMin stored true; |
|
property EnableMaxValue: Boolean read FEnableMax write FEnableMax stored true; |
|
property MinValue: Double read FMinLimit write SetMinLimit; |
|
property MaxValue: Double read FMaxLimit write SetMaxLimit; |
|
property Value: Double read GetValue write SetValue; |
|
property ValueRaw: Double read PValueRaw write SetValueRaw; |
|
property ScaleProcessor: TScaleProcessor read PScaleProcessor write SetScaleProcessor; |
|
property OnValueChange stored false; |
|
property OnValueChangeFirst; |
|
property OnValueChangeLast; |
|
property OnAsyncValueChange; |
Description
Fields
FEnableMin:Boolean; |
|
: Stores if must be checked the minimum and maximum limits. |
FEnableMax:Boolean; |
|
: Stores if must be checked the minimum and maximum limits. |
FMinLimit:Double; |
|
: Stores the minimum and maximum limits. |
FMaxLimit:Double; |
|
: Stores the minimum and maximum limits. |
PScaleProcessor:TScaleProcessor; |
|
: Store the scales linked with the tag. |
PValueRaw:Double; |
|
: Stores the raw value (without scales). |
Methods
function GetValueAsText(Prefix, Sufix, Format: UTF8String; FormatDateTimeOptions:TFormatDateTimeOptions=[]): UTF8String; virtual; |
|
: ; See also |
procedure AsyncNotifyChange(data:Pointer); override; |
|
: See also |
function GetValueChangeData: Pointer; override; |
|
: See also |
procedure ReleaseChangeData(data: Pointer); override; |
|
: See also |
function GetValue:Double; virtual; |
|
: Returns the value processed by the linked scales or the value raw. |
function GetValueRaw:Double; virtual; abstract; |
|
: Returns the raw value. |
procedure SetValueRaw(Value:Double); virtual; abstract; |
|
: Write the raw value on device. Parameters
|
procedure SetScaleProcessor(sp:TScaleProcessor); |
|
: Sets the new scales sequence. Parameters
See also |
procedure SetMinLimit(v:Double); |
|
: set the minimum limit. |
procedure SetMaxLimit(v:Double); |
|
: sets the maximum limit. |
procedure Write; overload; virtual; |
|
: See also |
procedure ScanWrite; overload; virtual; |
|
: See also |
procedure RemoveScaleProcessor; |
|
: Removes the scales sequence, it's being destroyed. |
Properties
property EnableMinValue: Boolean read FEnableMin write FEnableMin stored true; |
|
: Enables/disables the minimum limit. |
property EnableMaxValue: Boolean read FEnableMax write FEnableMax stored true; |
|
: Enables/disables the maximum limit. |
property MinValue: Double read FMinLimit write SetMinLimit; |
|
: Minimum value acceptable if the minimum limit is enabled. |
property MaxValue: Double read FMaxLimit write SetMaxLimit; |
|
: Maximum value acceptable if the maximum limit is enabled. |
property Value: Double read GetValue write SetValue; |
|
: Tag Value processed by the scales. |
property ValueRaw: Double read PValueRaw write SetValueRaw; |
|
: Raw value of the tag. |
property ScaleProcessor: TScaleProcessor read PScaleProcessor write SetScaleProcessor; |
|
: Scale sequence of tag. |
property OnValueChange stored false; |
|
: Event called when the value of tag changes. Called AFTER updates all dependent components. |
property OnValueChangeFirst; |
|
: Event called when the value of tag changes. Called BEFORE updates all dependent components. |
property OnValueChangeLast; |
|
: Event called when the value of tag changes. Called AFTER updates all dependent components. |
property OnAsyncValueChange; |
|
: Asynchronous event called when the tag value changes. |
Author
- Fabio Luis Girardi [email protected]
Generated by PasDoc 0.14.0.