Class TRegisterRange
Unit
Declaration
type TRegisterRange = class(TObject)
Description
:
Continuous memory block class.
Attention: If are you developing a protocol driver, use the class TPLCMemoryManager, that implements the non-continuous memory blocks. This class uses TRegisterRange
and all their descendents.
See also
- TPLCMemoryManager
- Class that handles non-continuous memory blocks (fragmented) and the better organization of it.
Hierarchy
- TObject
- TRegisterRange
Overview
Fields
FValues:TArrayOfDouble; |
|
LastError:TProtocolIOResult; |
Methods
constructor Create(AdrStart,AdrEnd:Cardinal); |
|
destructor Destroy; override; |
|
procedure Updated; |
|
function NeedRefresh:Boolean; |
Properties
property Values[Index:LongInt]: Double read GetValue write SetValue; |
|
property AddressStart: LongInt read FStartAddress; |
|
property AddressEnd: LongInt read FEndAddress; |
|
property Size: LongInt read GetSize; |
|
property LastUpdate: TDateTime read FLastUpdate write FLastUpdate; |
|
property MilisecondsFromLastUpdate: Int64 read GetMsecLastUpdate; |
|
property ScanTime: Cardinal read FMinScanTime write FMinScanTime; |
|
property ReadSuccess: Cardinal read FReadOK write SetReadOK; |
|
property ReadFaults: Cardinal read FReadFault write SetReadFault; |
Description
Fields
FValues:TArrayOfDouble; |
|
: Array that stores the values of the memory block. |
LastError:TProtocolIOResult; |
|
: Armazena o último erro ocorrido com o bloco. |
Methods
destructor Destroy; override; |
|
procedure Updated; |
|
: |
function NeedRefresh:Boolean; |
|
: |
Properties
property Values[Index:LongInt]: Double read GetValue write SetValue; |
|
: Reads/writes a value at the specified index of the memory block. |
property AddressStart: LongInt read FStartAddress; |
|
: Start address of the memory block. |
property AddressEnd: LongInt read FEndAddress; |
|
: Final address of the memory block. |
property Size: LongInt read GetSize; |
|
: Tells the size of the block. |
property LastUpdate: TDateTime read FLastUpdate write FLastUpdate; |
|
: |
property MilisecondsFromLastUpdate: Int64 read GetMsecLastUpdate; |
|
: |
property ScanTime: Cardinal read FMinScanTime write FMinScanTime; |
|
: Tells the smaller scan time of the memory block. |
property ReadSuccess: Cardinal read FReadOK write SetReadOK; |
|
: Tells how many reads was successful. |
property ReadFaults: Cardinal read FReadFault write SetReadFault; |
|
: Tells how many reads was not successful. |
Author
- Fabio Luis Girardi [email protected]
Generated by PasDoc 0.14.0.