Class TNoDaveReadThread - TNoDave - JADD - Just Another DelphiDoc
Keywords: TNoDaveReadThread

Index | Files | Records | Objects | Classes | Interfaces | Dispatch-Interfaces

# 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:

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

## List of Methods:

procedure DoOnError
  Synchronization-method for calling the OnError-Event of the TNoDave-instance.
procedure DoOnRead
  Synchronization-method for calling the OnRead-Event of the TNoDave-instance.
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:

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:

procedure DoOnError
  Synchronization-method for calling the OnError-Event of the TNoDave-instance.
  Called by
    Execute
procedure DoOnRead
  Synchronization-method for calling the OnRead-Event of the TNoDave-instance.
  Called by
    Execute
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