Data types specify the type of memory data that is used by elements and functions in your program.
Note that some of these are not implemented in the current version.
General Data Types
Operand |
Bit Length |
Format (units) |
Range |
Bit |
1 |
Boolean |
ON/OFF |
INT8 (Byte) |
8, signed |
Decimal, Hexadecimal, |
FF |
UINT8 |
8, unsigned |
Decimal, Hexadecimal, |
-128 to +127 |
INT16 |
16, signed |
Decimal, Hexadecimal, |
-32768 to +32767 |
UINT16 (Word ) |
16, unsigned |
Decimal, Hexadecimal |
65535, FFFF, 255 & 255 |
DINT |
32, signed |
Decimal, Hexadecimal, |
-2,147,483,648 to +2,147,483,647 |
UINT32 (DW) |
32, unsigned |
Decimal, Hexadecimal, |
0- 4,294,967,295 |
REAL (float) |
32 |
Floating point |
Negative values -3.402E37 to -1.176E-35 Positive values:
+1.176E-35 to +3.402E37 |
Time and Date |
Each RTC function is serviced by a struct, which supplies operands for:
|
||
Strings |
User-defined |
|
|
Constant |
Either:
|
||
Alias Const |
A named user-defined constant value of any length that may be used at any point in the program. |
||
Timer |
32 |
Each Timer is serviced by a Data Tag Struct containing the Preset Value, the Current Value, and the Timer Done Bit. |
User-defined Data Structures
Arrays |
The user may include operands of the same data type which may be handled as a sequential block of data. |
Structs |
The user may mix other operand types, or arrays of operands, into a structure, which may be handled as a sequential block of data. User-defined Structs are organized under the Structs tab in the Data Tag window. |
Buffers |
A buffer is an array of bytes. The user can define the length of the buffer. |
System-created Data Structures
Structs |
Structs are created automatically by UniLogic when you add certain elements to the application. Examples include:
|
Buffers |
Buffers are also created automatically by UniLogic when you add certain elements to the application. For example, when you include a PID Autotune function in your application, a Buffer is automatically created to store the Autotune parameters. |