Class TTagBit
Unit
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
- TComponent
- TTag
- TPLCTag
- TPLCNumber
- TTagBit
Overview
Methods
procedure SetValueRaw(bitValue:Double); override; |
|
function GetValueRaw:Double; override; |
Properties
property PLCTag: TPLCNumber read PNumber write SetNumber; |
|
property UseRawValue: boolean read PUseRaw write SetUseRaw; |
|
property StartBit: TBitRange read PStartBit write SetStartBit; |
|
property EndBit: TBitRange read PEndBit write SetEndBit; |
|
property EnableMaxValue; |
|
property EnableMinValue; |
|
property MaxValue; |
|
property MinValue; |
Description
Methods
procedure SetValueRaw(bitValue:Double); override; |
|
: See also |
function GetValueRaw:Double; override; |
|
: See also |
Properties
property PLCTag: TPLCNumber read PNumber write SetNumber; |
|
: Tag where the bits will be mapped. |
property UseRawValue: boolean read PUseRaw write SetUseRaw; |
|
: If |
property StartBit: TBitRange read PStartBit write SetStartBit; |
|
: First bit of the tag word to be mapped. Starts from 0 (ZERO). |
property EndBit: TBitRange read PEndBit write SetEndBit; |
|
: Last bit of the tag word to be mapped. The Maximum value accept is 31. |
property EnableMaxValue; |
|
: See also |
property EnableMinValue; |
|
: See also |
property MaxValue; |
|
: See also |
property MinValue; |
|
: See also |
Author
- Fabio Luis Girardi <[email protected]>
Generated by PasDoc 0.14.0.