TIntegerSignal, unit ObjectSignals.pas

 

Component that represent analog signal in system same as float signal but it has integer value.

 

PROPERTIES

 

Alarm: TAlarmProperties

This property object that is used for signal alarm setup. It has next properties:

 

Property

Type

Predefined

Description

HiAlarmEnabled

Boolean

False

Defines either high alarm is active or not

HiAlarmMessage

String

 

Message that is shown when alarm occurs

HiAlarmWave

String

 

Path to wav file to be played when alarm occurs

HiLimit

Integer

100

High limit value

LoAlarmEnabled

Boolean

False

Defines either low alarm is active or not

LoAlarmMessage

String

 

Message that is shown when alarm occurs

LoAlarmWave

String

 

Path to wav file to be played when alarm occurs

LoLimit

Integer

0

Low limit value

Level

Integer

0

Alarm level

ShowDialog

Boolean

True

Defines either alarm message is to be shown or not

SaveToDataBase

Boolean

True

Enables or disables saving to data base

HiAlarmSignal

TBooleanSignal

False

Link to Boolean signal linked to High alarm event. True if  EUvalue>=HiLimit.

LoAlarmSignal

TBooleanSignal

False

Link to Boolean signal linked to High alarm event. True EUvalue<=LoLimit.

 

 

ConvertProperties: TConvertProperties

This property object that is used for signal conversion setup. It has next properties:

Property

Type

Predefined

Description

ConvertStatus

ConvertStatus

csNone

This property defines if and how conversion will be done. Possible values are:

-csNone – no conversion

-csLinear – convert value to EUvalue (and vice versa) by proportional function

-csSquare – convert value to EUvalue (and vice versa) by square function

-csSquareRoot – convert value to EUvalue (and vice versa) by square root  function

-csUser – user type of conversion. It has two events:

o     RawToEUEvent

o     EUToRawEvent

These functions are executed when ConvertStatus is set to csUser.

EUUnits

String

 

Engineer units name (L, m3, 0C, ...). It can be used by  visual components.

HighEU

Integer

100

Upper EUvalue (maximal value if signal is clamped)

HighRawData

Integer

100

Upper raw value

LowEU

Integer

0

Lower EUvalue (minimal value if signal is clamped)

LowRawData

Integer

0

Lower raw value

 

OnChangeRange: double

Defines amount of signal EUvalue change to trigger OnChange event. Its value can be from 0 to1 (for example: 0.15 represents 15% from EU range).

 

TagName: String

Auxiliary mark that is used for compatibility with standard marks that are used in process. It is used to label signal name in technological schemas.

 

Value: double

Variable that contains raw signal value that is taken from source (OPC server and other sources). In addition, this variable is used to proceed value to source (OPC server).

 

EUValue: double

Variable that contains EU signal value that is a result of RowToEU conversion function.. In addition, this variable is used to proceed value to source (OPC server).

 

Filter: double

Low band filter. Its value can be between 0 and 1, where zero means there is no filtration, and 1 means that there are no

changes.  Amount of filtration directly depends on speed of signal value refreshing (refresh rate depends on process timer that is used in module where signals are defined)

 

Clamp: boolean

If this property is set to True, EUValue will be clamped to HighEU and LowEU when raw value overrides its limit values..

 

AsString: string

Returns Value of the signal as string value (formatted as it is defined by Format property)

 

AsInteger: integer

Returns Value of the signal as integer value.

 

AsFloat: double

Returns Value of the signal as float value.

 

EUAsString: string

Returns EUValue of the signal as string value (formatted as it is defined by Format property).

 

EUAsInteger: integer

Returns EUValue of the signal as integer value.

 

EUAsFloat: double

Returns EUValue of the signal as float value.

 

EVENTS

 

OnRawToEUConvert: TRawToEUEvent

This user function will be executed every time when raw value is changed and ConvertStatus is set to csUser. Programmer sets his own conversion function.

 

OnEUToRawConvert: TEUToRawEvent

This user function will be executed every time when EUValue is changed and ConvertStatus is set to csUser. Programmer sets his own conversion function.