pascalSCADA OPM: ProtocolTypes

Pascal SCADA OPM

Unit ProtocolTypes

Description

Unit that implements common types for protocol drivers and tags.

:

Overview

Classes, Interfaces, Objects and Records

Name Description
Record TScanReadRec  
Record TScanWriteRec  
Interface ITagInterface  
Interface ITagNumeric  
Interface ITagString  

Types

TArrayOfObject = array of TObject;
TFormatDateTimeOption = (...);
TFormatDateTimeOptions = set of TFormatDateTimeOption;
TProtocolTagType = (...);
TAddTagInEditorHook = procedure(Tag:TTag) of object;
TCreateTagProc = function(tagclass:TComponentClass):TComponent of object;
TOpenTagEditor = procedure(Target, OwnerOfNewTags:TComponent; InsertHook:TAddTagInEditorHook; CreateProc:TCreateTagProc);
PScanReadRec = ˆTScanReadRec;
PScanWriteRec = ˆTScanWriteRec;
TScanWriteProc = function(const Tag:TTagRec; const values:TArrayOfDouble):TProtocolIOResult of object;
PScanWriteProc = ˆTScanWriteProc;
TScanReadProc = procedure(Sender:TObject; var NeedSleep:LongInt) of object;
TGetValues = procedure(const Tag:TTagRec; var values:TScanReadRec) of object;
TGetMultipleValues = function(var MultiValues:TArrayOfScanUpdateRec):LongInt of object;

Constants

PSM_TAGSCANREAD = 204;
PSM_TAGSCANWRITE = 205;

Description

Types

TArrayOfObject = array of TObject;

: Object array.

TFormatDateTimeOption = (...);
 
Values
  • fdoInterval
TFormatDateTimeOptions = set of TFormatDateTimeOption;
 
TProtocolTagType = (...);

: Enumerates all datatypes that can be returned by a protocol driver.

Values
  • ptBit: 1 bit.
  • ptShortInt: Signed LongInt, 8 bits sized.
  • ptByte: Unsigned LongInt, 8 bits sized.
  • ptSmallInt
  • ptWord
  • ptLongInt: Signed LongInt, 32 bits sized.
  • ptDWord
  • ptFloat: Float, 32 bits sized.
  • ptInt64: Signed LongInt, 64 bits sized
  • ptQWord: Unsigned LongInt, 64 bits sized
  • ptDouble: Float, 64 bits sized.
TAddTagInEditorHook = procedure(Tag:TTag) of object;

: Add a tag in the form editor of Delphi/Lazarus.

TCreateTagProc = function(tagclass:TComponentClass):TComponent of object;

: Creates a component in design-time.

TOpenTagEditor = procedure(Target, OwnerOfNewTags:TComponent; InsertHook:TAddTagInEditorHook; CreateProc:TCreateTagProc);

: Method signature that calls the Tag Builder tool of a protocol driver at design-time.

PScanReadRec = ˆTScanReadRec;
 
PScanWriteRec = ˆTScanWriteRec;
 
TScanWriteProc = function(const Tag:TTagRec; const values:TArrayOfDouble):TProtocolIOResult of object;

: Defines the function that will execute a write by scan (asynchronous)

Parameters
Tag
TTagRec: structure with informations about the tag.
values
TArrayOfDouble: Array of values to be written.
Returns

See TProtocolIOResult.

PScanWriteProc = ˆTScanWriteProc;

: Points to scan write function.

TScanReadProc = procedure(Sender:TObject; var NeedSleep:LongInt) of object;

: Defines the procedure that will execute the scan read commands.

Parameters
Sender
TObject: Thread object that is calling the procedure.
Sleep
LongInt: Tells to The caller thread if it must sleep or switch to another thread.
TGetValues = procedure(const Tag:TTagRec; var values:TScanReadRec) of object;

: Defines the procedure that will get values of one tag.

Parameters
Tag
TTagRec: structure with informations about the tag.
values
TArrayOfDouble: Array with tag values.
TGetMultipleValues = function(var MultiValues:TArrayOfScanUpdateRec):LongInt of object;

: Procedure that gets values of a set of tags simultaneously. Used by Scan Update thread.

Parameters
MultiValues
TArrayOfScanUpdateRec. Returns information to update a set of tags.

Constants

PSM_TAGSCANREAD = 204;

: Identifies a message that does a scan read.

PSM_TAGSCANWRITE = 205;

: Identifies a message that does a scan write.

Author


Generated by PasDoc 0.14.0.