Class TScanThread
Unit
Declaration
type TScanThread = class(TCrossThread)
Description
: Thread class that processes the requests the reads and writes by scan (asynchronous) and keep the tag values updated. Used by the class TProtocolDriver.
See also
Hierarchy
- TThread
- TCrossThread
- TScanThread
Overview
Methods
procedure CheckScanWriteCmd; |
|
procedure Terminate; |
|
procedure WaitInit; |
|
procedure ScanWrite(SWPkg:PScanWriteRec); |
Properties
property MinTimeOfScan: Cardinal read FMinScan write FMinScan nodefault; |
|
property OnDoScanRead: TScanReadProc read FDoScanRead write FDoScanRead; |
|
property OnDoScanWrite: TScanWriteProc read FDoScanWrite write FDoScanWrite; |
Description
Methods
procedure CheckScanWriteCmd; |
|
: Verifies if the thread has write requests on queue. |
procedure Terminate; |
|
: Requests the thread finalization. |
procedure WaitInit; |
|
: When |
procedure ScanWrite(SWPkg:PScanWriteRec); |
|
: Put a values write request to be processed by the scan (queue) of protocol.
Parameters
Exceptions raised
|
Properties
property MinTimeOfScan: Cardinal read FMinScan write FMinScan nodefault; |
|
: How many milliseconds the thread will sleep if it didn't nothing, to avoid the high CPU usage. |
property OnDoScanRead: TScanReadProc read FDoScanRead write FDoScanRead; |
|
: Event called to execute a scan read command. |
property OnDoScanWrite: TScanWriteProc read FDoScanWrite write FDoScanWrite; |
|
: Event called to execute a scan write command. See also |
Author
- Fabio Luis Girardi <[email protected]>
Generated by PasDoc 0.14.0.