pascalSCADA OPM: tcp_udpport: Class TTCP_UDPPort

Pascal SCADA OPM

Class TTCP_UDPPort

Unit

tcp_udpport

Declaration

type TTCP_UDPPort = class(TCommPortDriver)

Description

TTCP_UDPPort

Hierarchy

Overview

Methods

Protected procedure Read(Packet:PIOPacket); override;
Protected procedure Write(Packet:PIOPacket); override;
Protected procedure NeedSleepBetweenRW; override;
Protected procedure PortStart(var Ok:Boolean); override;
Protected procedure PortStop(var Ok:Boolean); override;
Protected function ComSettingsOK:Boolean; override;
Protected procedure ClearALLBuffers; override;
Protected procedure DoPortDisconnected(sender: TObject); override;
Protected procedure DoPortOpenError(sender: TObject); override;
Protected procedure connectSocket(var Ok: Boolean);
Protected procedure CloseMySocket(var closed: Boolean);
Protected procedure reconnectSocket(var Ok:Boolean);
Protected procedure CheckSocket(var Ok:Boolean);
Public function ReallyActive: Boolean; override;

Properties

Published property Host: AnsiString read FHostName write SetHostname nodefault;
Published property Port: LongInt read FPortNumber write SetPortNumber default 102;
Published property Timeout: LongInt read FTimeout write SetTimeout default 1000;
Published property PortType: TPortType read FPortType write SetPortType default ptTCP;
Published property ExclusiveDevice: Boolean read FExclusiveDevice write SetExclusive;
Published property EnableAutoReconnect: Boolean read GetEnableAutoReconect write setEnableAutoReconnect stored true default true;
Published property ReconnectRetryInterval: Integer read GetReconnectInterval write SetReconnectInterval stored true default 5000;
Published property OnCommPortOpened;
Published property OnCommPortOpenError;
Published property OnCommPortClosed;
Published property OnCommPortCloseError;
Published property OnCommErrorReading;
Published property OnCommErrorWriting;
Published property OnCommPortDisconnected;

Description

Methods

Protected procedure Read(Packet:PIOPacket); override;

:

See also
TCommPortDriver.Read
Protected procedure Write(Packet:PIOPacket); override;

:

See also
TCommPortDriver.Write
Protected procedure NeedSleepBetweenRW; override;

:

See also
TCommPortDriver.NeedSleepBetweenRW
Protected procedure PortStart(var Ok:Boolean); override;

:

See also
TCommPortDriver.PortStart
Protected procedure PortStop(var Ok:Boolean); override;

:

See also
TCommPortDriver.PortStop
Protected function ComSettingsOK:Boolean; override;

:

See also
TCommPortDriver.ComSettingsOK
Protected procedure ClearALLBuffers; override;

:

See also
TCommPortDriver.ClearALLBuffers
Protected procedure DoPortDisconnected(sender: TObject); override;

:

See also
TCommPortDriver.DoPortDisconnected
Protected procedure DoPortOpenError(sender: TObject); override;

:

See also
TCommPortDriver.DoPortOpenError
Protected procedure connectSocket(var Ok: Boolean);
 
Protected procedure CloseMySocket(var closed: Boolean);
 
Protected procedure reconnectSocket(var Ok:Boolean);
 
Protected procedure CheckSocket(var Ok:Boolean);
 
Public function ReallyActive: Boolean; override;
 

Properties

Published property Host: AnsiString read FHostName write SetHostname nodefault;

: Hostname or address of the server to connect.

Published property Port: LongInt read FPortNumber write SetPortNumber default 102;

: Server port to connect. To use Modbus, set this to 502 and to use Siemens ISOTCP set it to 102.

Published property Timeout: LongInt read FTimeout write SetTimeout default 1000;

: Timeout in milliseconds to I/O operations.

Published property PortType: TPortType read FPortType write SetPortType default ptTCP;

: Port kind (TCP or UDP). .

See also
TPortType
Published property ExclusiveDevice: Boolean read FExclusiveDevice write SetExclusive;

: Tells if the communication port is exclusive (avoid it to be opened in design time).

Published property EnableAutoReconnect: Boolean read GetEnableAutoReconect write setEnableAutoReconnect stored true default true;

: Enables the auto reconnection if a connection is lost or failed.

Published property ReconnectRetryInterval: Integer read GetReconnectInterval write SetReconnectInterval stored true default 5000;

: Time to retry a lost connection in milliseconds.

Published property OnCommPortOpened;

:

See also
TCommPortDriver.OnCommPortOpened
Published property OnCommPortOpenError;

:

See also
TCommPortDriver.OnCommPortOpenError
Published property OnCommPortClosed;

:

See also
TCommPortDriver.OnCommPortClosed
Published property OnCommPortCloseError;

:

See also
TCommPortDriver.OnCommPortCloseError
Published property OnCommErrorReading;

:

See also
TCommPortDriver.OnCommErrorReading
Published property OnCommErrorWriting;

:

See also
TCommPortDriver.OnCommErrorWriting
Published property OnCommPortDisconnected;

:

See also
TCommPortDriver.OnCommPortDisconnected

Generated by PasDoc 0.14.0.