The OPC Client interface is present as
PBOPC.dll. That uses internally the Customer interface of the OPC server.
To read and write the Items SyncronIO
is used. The allocation of the Items to the correct SyncronIO
administers those DLL over internal lists.
OPC runs under DCOM and thus with Unicode. Applications
should be compiled also in Unicode.
The DLL takes over those
automatically adjustment types over the OLE automation VariantChangeType.
That is called if the Item
as Word defined is, can this for example as string read and write become.
From
the type adjustment Read- and Write- Variant are excluded. As
well as Items as array are defined.
·
Param1: ServerName as
String
·
Param2:
ServerNode as String (Optional)
·
Result: ServerObject as Pointer
·
Param1: ServerObject
as Pointer
·
Result:
OPC Server Release or hResult
·
Param1: ServerObject
as Pointer
·
Param2: GroupName as
String
·
Result: GroupObject as Pointer
·
Param1: GroupObject as
Pointer
·
Result: hResult
·
Param1: Group Object
as Pointer
·
Param2: AccessPath as
String
·
Param3: ItemID as
String
·
Result:
Pointer to the ItemObject
·
Param1:
Pointer to the ItemObject
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2:
Pointer to the pResult as Long
·
Param3:
Pointer to the pQuality as Long, can null
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2:
Pointer to the pResult as Byte
·
Param3:
Pointer to the pQuality as Long, can null
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2:
Pointer to the pResult as Word
·
Param3:
Pointer to the pQuality as Long can null
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2:
Pointer to the pResult as Long
·
Param3:
Pointer to the pQuality as Long
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2:
Pointer to the pResult as Float
·
Param3:
Pointer to the pQuality as Long
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2:
Pointer to the pResult as Double
·
Param3:
Pointer to the pQuality as Long
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2:
Pointer to the pResult as Date (Double)
·
Param3:
Pointer to the pQuality as Long
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2:
Pointer to the pResult as String
·
Param3:
Size Of pResult as Long
·
Param4:
Pointer to the pQuality as Long
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2:
Pointer to the pResult as String
·
Param3:
Size Of pResult as Long
·
Param4:
Pointer to the pQuality as Long
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2:
Pointer to the pResult as Variant
·
Param3:
Pointer to the pQuality as Long
·
Result: hResult
·
Param1: ItemCount as
Long
·
Param2:
Pointer to the ItemObject as Array
·
Param3:
Pointer to the pResult as Array of Variant
·
Param4:
Pointer to the pQuality as Array of Long
·
Param5:
Pointer to the pErrors as Array of Long
·
Result: hResult
Kompatibilität zu VisualStudio
·
Param1: ItemCount as
int32
·
Param2:
ItemObject as Array of int32 (Object)
·
Param3:
pResult as Array of Variant (Object)
·
Param4:
pQuality as Array of int32 (Object)
·
Param5:
pErrors as Array of int32 (Object)
·
Result: hResult as int32
·
Param1:
Pointer to the ItemObject
·
Param2: Value as Long
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2: Value as Byte
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2: Value as Word
·
Result: hResult
·
Param1: Pointer to the
ItemObject
·
Param2: Value as Long
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2: Value as Float
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2: Value as
Double
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2:
Value as Date (Double)
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2: Value as Date
String
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2: Value as
String
·
Result: hResult
·
Param1:
Pointer to the ItemObject
·
Param2: Value as Variant
·
Result: hResult
·
Param1: ItemCount as
Long
·
Param2:
Pointer to the ItemObject as Array
·
Param3:
Pointer to the pValues as Array of Variant
·
Param4:
Pointer to the pErrors as Array of Long
·
Result: hResult
Kompatibilität zu VisualStudio
·
Param1: ItemCount as
int32
·
Param2:
ItemObject as Array of int32 (Object)
·
Param3:
pResult as Array of Variant (Object)
·
Param4:
pErrors as Array of int32 (Object)
·
Result: hResult as int32
·
Param1: Quality Number
·
Result:
Qualitytext as pString
(Unicode)
·
Para 1: ServerObject
·
Para 2: Errorcode
·
Result:
Errortext as pString
(Unicode)
·
Result: Last Error
·
Param1: ServerObject
as pointer
·
Result:
ServerObject as pointer or zero by fault
·
Param1: ServerObject
as pointer
·
Result: Ok = 0 - Shutdown Object = Fail
·
Param1: ServerObject
as pointer
·
Result:
True is shutdown request
·
Param1: ServerObject
as pointer
·
Result: Shutdown Text as String
·
Param1: ServerObject
as pointer
·
Param2:
Callback function adress (MyCallback(*szReason))
·
Result: Old callback adress
-====================================================================-
Using of the program
-====================================================================-
This program can be used for free.
I can´t give any
warranty for the functionality and the correctness of the
results. I can´t
take any responsibility for any damage of hardware or
software. You will use this software on your
own risk.
-====================================================================-
Distribution of the program
-====================================================================-
You can distribute this program for free if you
use the package of the
author without any changes. You are not
allowed charge any money for the
distribution. If you want to distribute this
program in any commerital way
you have to contact the author for a
permission.
Freeware by Michael Kastner
(mk-soft) [mk_soft@arcor.de
or http://www.mksoft-planet.de]