pascalSCADA OPM: protscan: Class TScanThread

Pascal SCADA OPM

Class TScanThread

Unit

protscan

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
TProtocolDriver

Hierarchy

Overview

Methods

Public procedure CheckScanWriteCmd;
Public procedure Terminate;
Public procedure WaitInit;
Public procedure ScanWrite(SWPkg:PScanWriteRec);

Properties

Published property MinTimeOfScan: Cardinal read FMinScan write FMinScan nodefault;
Published property OnDoScanRead: TScanReadProc read FDoScanRead write FDoScanRead;
Published property OnDoScanWrite: TScanWriteProc read FDoScanWrite write FDoScanWrite;

Description

Methods

Public procedure CheckScanWriteCmd;

: Verifies if the thread has write requests on queue.

Public procedure Terminate;

: Requests the thread finalization.

Public procedure WaitInit;

: When WaitInit is called, waits the thread initialization. If it's already initialized, does nothing.

Public procedure ScanWrite(SWPkg:PScanWriteRec);

: Put a values write request to be processed by the scan (queue) of protocol.

Parameters
SWPkg
PScanWriteRec. Points to a structure with informations about the write command.
Exceptions raised
Exception
if the thread didn't responds.

Properties

Published 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.

Published property OnDoScanRead: TScanReadProc read FDoScanRead write FDoScanRead;

: Event called to execute a scan read command.

Published property OnDoScanWrite: TScanWriteProc read FDoScanWrite write FDoScanWrite;

: Event called to execute a scan write command.

See also
TScanWriteProc

Author


Generated by PasDoc 0.14.0.