pascalSCADA OPM: TagBit: Class TTagBit

Pascal SCADA OPM

Class TTagBit

Unit

TagBit

Declaration

type TTagBit = class(TPLCNumber, ITagInterface, ITagNumeric)

Description

Tag that represents a set of bits of another tag.

:

For example, if the linked tag has the value 5 (00000101 bin). With StartBit=1 and Endbit=2, the value of the tag bit will be 2 (10 bin). With StartBit=0 and EndBit=2, the value of the tag bit will be 5 (101 bin). With StartBit=0 and EndBit=1, the value of the tag bit will be 1 (01 bin). With StartBit=0 and EndBit=0, the value of the tag bit will be 1 (1 bin).

StartBit is the less significant bit of the tag and EndBit represents the most significant bit. Therefore Endbit must be greater or equal than StartBit.

Hierarchy

Overview

Methods

Protected procedure SetValueRaw(bitValue:Double); override;
Protected function GetValueRaw:Double; override;

Properties

Published property PLCTag: TPLCNumber read PNumber write SetNumber;
Published property UseRawValue: boolean read PUseRaw write SetUseRaw;
Published property StartBit: TBitRange read PStartBit write SetStartBit;
Published property EndBit: TBitRange read PEndBit write SetEndBit;
Published property EnableMaxValue;
Published property EnableMinValue;
Published property MaxValue;
Published property MinValue;

Description

Methods

Protected procedure SetValueRaw(bitValue:Double); override;

:

See also
TPLCNumber.SetValueRaw
Protected function GetValueRaw:Double; override;

:

See also
TPLCNumber.GetValueRaw

Properties

Published property PLCTag: TPLCNumber read PNumber write SetNumber;

: Tag where the bits will be mapped.

Published property UseRawValue: boolean read PUseRaw write SetUseRaw;

: If True, the bits will be mapped from the raw value (ValueRaw property of the tag).

Published property StartBit: TBitRange read PStartBit write SetStartBit;

: First bit of the tag word to be mapped. Starts from 0 (ZERO).

Published property EndBit: TBitRange read PEndBit write SetEndBit;

: Last bit of the tag word to be mapped. The Maximum value accept is 31.

Published property EnableMaxValue;

:

See also
TPLCNumber.EnableMaxValue
Published property EnableMinValue;

:

See also
TPLCNumber.EnableMinValue
Published property MaxValue;

:

See also
TPLCNumber.MaxValue
Published property MinValue;

:

See also
TPLCNumber.MinValue

Author


Generated by PasDoc 0.14.0.