Data Types for Logic, OPC, and Geo SCADA Expert

Each Logic program has values that are of a specific data type, for example, the Name value of a point is a STRING data type. However, the name for the data type varies depending on whether you access the value via Logic, OPC, or Geo SCADA Expert (access the value in the Geo SCADA Expert database schema). For example, in Logic, the Name value of a point is a STRING data type, whereas the Name value in OPC is a VT_BSTR data type.

The following table shows the names of the data types in Logic, OPC (automation), and Geo SCADA Expert:

Logic OPC
(Automation)
Geo SCADA Expert
(shown on
Database Schema)
Range

BOOL

VT_BOOL

Boolean

True or False

SINT

VT_I1

Byte

-128 to 127

INT

VT_I2

Word

-32768 to 32767

DINT

VT_I4

Long

-2147483648 to 2147483647

USINT

VT_UI1

 

0 to 255

UINT

VT_UI2

Unsigned Word

0 to 65535

UDINT

VT_UI4

Unsigned Long

0 to 4294967295

REAL

VT_R4

Float

32 bit precision floating point

LREAL

VT_R8

Double

64 bit precision floating point

TIME

VT_DATE

   

TIME_OF_DAY

VT_DATE

Time

 

DATE

VT_DATE

   

DATE_AND_TIME

VT_DATE

Time

 

STRING

VT_BSTR

Variant

 

BYTE

VT_UI1

 

0 to 255

WORD

VT_I2

 

0 to 65535

DWORD

VT_I4

Color

0 to 4294967295

Internally, Logic uses:

The data types that are available to a function, function block etc. are organized into a hierarchy. For more information, see Data Type Hierarchy.

For more information on the Geo SCADA Expert Database Schema, see Working with the Database Schema in the Geo SCADA Expert Guide to the Database.


Disclaimer

Geo SCADA Expert 2022