pascalSCADA OPM: PLCNumber: Class TPLCNumber

Pascal SCADA OPM

Class TPLCNumber

Unit

PLCNumber

Declaration

type TPLCNumber = class(TPLCTag)

Description

Base class of numeric tags.

:

Hierarchy

Overview

Fields

Protected FEnableMin:Boolean;
Protected FEnableMax:Boolean;
Protected FMinLimit:Double;
Protected FMaxLimit:Double;
Protected PScaleProcessor:TScaleProcessor;
Protected PValueRaw:Double;

Methods

Protected function GetValueAsText(Prefix, Sufix, Format: UTF8String; FormatDateTimeOptions:TFormatDateTimeOptions=[]): UTF8String; virtual;
Protected procedure AsyncNotifyChange(data:Pointer); override;
Protected function GetValueChangeData: Pointer; override;
Protected procedure ReleaseChangeData(data: Pointer); override;
Protected function GetValue:Double; virtual;
Protected function GetValueRaw:Double; virtual; abstract;
Protected procedure SetValue(Value:Double); virtual;
Protected procedure SetValueRaw(Value:Double); virtual; abstract;
Protected procedure SetScaleProcessor(sp:TScaleProcessor);
Protected procedure SetMinLimit(v:Double);
Protected procedure SetMaxLimit(v:Double);
Public procedure Write; overload; virtual;
Public procedure ScanWrite; overload; virtual;
Public procedure RemoveScaleProcessor;

Properties

Protected property EnableMinValue: Boolean read FEnableMin write FEnableMin stored true;
Protected property EnableMaxValue: Boolean read FEnableMax write FEnableMax stored true;
Protected property MinValue: Double read FMinLimit write SetMinLimit;
Protected property MaxValue: Double read FMaxLimit write SetMaxLimit;
Public property Value: Double read GetValue write SetValue;
Public property ValueRaw: Double read PValueRaw write SetValueRaw;
Published property ScaleProcessor: TScaleProcessor read PScaleProcessor write SetScaleProcessor;
Published property OnValueChange stored false;
Published property OnValueChangeFirst;
Published property OnValueChangeLast;
Published property OnAsyncValueChange;

Description

Fields

Protected FEnableMin:Boolean;

: Stores if must be checked the minimum and maximum limits.

Protected FEnableMax:Boolean;

: Stores if must be checked the minimum and maximum limits.

Protected FMinLimit:Double;

: Stores the minimum and maximum limits.

Protected FMaxLimit:Double;

: Stores the minimum and maximum limits.

Protected PScaleProcessor:TScaleProcessor;

: Store the scales linked with the tag.

Protected PValueRaw:Double;

: Stores the raw value (without scales).

Methods

Protected function GetValueAsText(Prefix, Sufix, Format: UTF8String; FormatDateTimeOptions:TFormatDateTimeOptions=[]): UTF8String; virtual;

: ;

See also
ITagInterface.GetValueAsText
Protected procedure AsyncNotifyChange(data:Pointer); override;

:

See also
TTag.AsyncNotifyChange
Protected function GetValueChangeData: Pointer; override;

:

See also
TTag.GetValueChangeData
Protected procedure ReleaseChangeData(data: Pointer); override;

:

See also
TTag.ReleaseChangeData
Protected function GetValue:Double; virtual;

: Returns the value processed by the linked scales or the value raw.

Protected function GetValueRaw:Double; virtual; abstract;

: Returns the raw value.

Protected procedure SetValue(Value:Double); virtual;

: Processes the value using linked scales and writes the value processed on device.

Parameters
Value
Double: Value to be processed and written in device.
See also
SetValueRaw
Protected procedure SetValueRaw(Value:Double); virtual; abstract;

: Write the raw value on device.

Parameters
Value
Double: Value to be written.
Protected procedure SetScaleProcessor(sp:TScaleProcessor);

: Sets the new scales sequence.

Parameters
sp
TPIPE: The new scale sequence.
See also
ScaleProcessor
Protected procedure SetMinLimit(v:Double);

: set the minimum limit.

Protected procedure SetMaxLimit(v:Double);

: sets the maximum limit.

Public procedure Write; overload; virtual;

:

See also
TPLCTag.Write
Public procedure ScanWrite; overload; virtual;

:

See also
TPLCTag.Write
Public procedure RemoveScaleProcessor;

: Removes the scales sequence, it's being destroyed.

Properties

Protected property EnableMinValue: Boolean read FEnableMin write FEnableMin stored true;

: Enables/disables the minimum limit.

Protected property EnableMaxValue: Boolean read FEnableMax write FEnableMax stored true;

: Enables/disables the maximum limit.

Protected property MinValue: Double read FMinLimit write SetMinLimit;

: Minimum value acceptable if the minimum limit is enabled.

Protected property MaxValue: Double read FMaxLimit write SetMaxLimit;

: Maximum value acceptable if the maximum limit is enabled.

Public property Value: Double read GetValue write SetValue;

: Tag Value processed by the scales.

Public property ValueRaw: Double read PValueRaw write SetValueRaw;

: Raw value of the tag.

Published property ScaleProcessor: TScaleProcessor read PScaleProcessor write SetScaleProcessor;

: Scale sequence of tag.

Published property OnValueChange stored false;

: Event called when the value of tag changes. Called AFTER updates all dependent components.

Published property OnValueChangeFirst;

: Event called when the value of tag changes. Called BEFORE updates all dependent components.

Published property OnValueChangeLast;

: Event called when the value of tag changes. Called AFTER updates all dependent components.

Published property OnAsyncValueChange;

: Asynchronous event called when the tag value changes.

Author


Generated by PasDoc 0.14.0.