Class TNoDaveReadThread

TObject <-- ... <-- TThread <-- TNoDaveReadThread
Declared in Unit NoDaveComponent

No known Subclasses

Not used by any known Class


Description:

Worker-thread for the background-communication with the PLC.
Used in
TNoDave.DoOnConnect

List of Constructors:

public constructor Create
Create the worker-thread for the background-communication with the PLC.

List of Methods:

protected procedure DoOnError
Synchronization-method for calling the OnError-Event of the TNoDave-instance.
protected procedure DoOnRead
Synchronization-method for calling the OnRead-Event of the TNoDave-instance.
protected procedure Execute
Read the data from the PLC, call the OnRead-Event of the TNoDave-instance, wait until the round-trip cycle time is reached and then start again from the beginning until the Connection of the TNoDave-instance is active.

Constructors:

public constructor Create(Target: TNoDave)
Create the worker-thread for the background-communication with the PLC.
Parameters
Target
The TNoDave-instance for the communication with the PLC.
Called by
TNoDave.DoOnConnect


Methods:

protected procedure DoOnError
Synchronization-method for calling the OnError-Event of the TNoDave-instance.
Called by
Execute

protected procedure DoOnRead
Synchronization-method for calling the OnRead-Event of the TNoDave-instance.
Called by
Execute

protected procedure Execute; override
Read the data from the PLC, call the OnRead-Event of the TNoDave-instance, wait until the round-trip cycle time is reached and then start again from the beginning until the Connection of the TNoDave-instance is active. Disconnect the TNoDave-instance if the connection is not longer valid.
Overrides
Execute