Unit ProtocolTypes
Uses
Functions and Procedures
Variables
Description
Unit that implements common types for protocol drivers and tags.
:
Overview
Classes, Interfaces, Objects and Records
Types
Constants
Description
Types
TArrayOfObject = array of TObject; |
: Object array.
|
TFormatDateTimeOption = (...); |
Values
|
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.
|
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. |
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.