4.6.3.13
EUType
Description
(Read-only) Indicate the type of Engineering Units (EU) information (if any) contained in EUInfo.
Syntax
EUType As Integer
See Also
OPCITEMATTRIBUTES in the OPC Data Access Custom Interface Specification
Remarks
0 - No EU information available (EUInfo will be VT_EMPTY)
1 - Analog - EUInfo will contain a SAFEARRAY of exactly two doubles (VT_ARRAY | VT_R8)
corresponding to the LOW and HI EU range.
2 - Enumerated - EUInfo will contain a SAFEARRAY of strings (VT_ARRAY | VT_BSTR) which
contains a list of strings (Example: “OPEN”, “CLOSE”, “IN TRANSIT”, etc.) corresponding to
sequential numeric values (0, 1, 2, etc.)
Example
Dim AnOPCItem as OPCItem
Set OPCItem = GetOPCItem(SomeItemServerHandle)
VB Syntax Example (getting the property):
Dim CurrentValue As Integer
Dim SomeValue As Integer
CurrentValue = AnOPCItem.EUType
Do'stlaringiz bilan baham: |