Technical FAQs

Ask a Question

What are the different data types supported by Vijeo XD configuration software?

Variable Data Types

There are 2 groups of variable types: basic variables and user data type variables.
  • Basic variables include BOOL, SINT, USINT, INT, UINT, DINT, UDINT, LINT, ULINT, BYTE, WORD, DWORD, LWORD, STRING, WSTRING, REAL, LREAL, TIME, DATE, TIME_OF_DAY, TOD, DATE_AND_TIME, and DT.
  • User data type variables are variables that contain collections of other variables. They include Array and Structure variables.

BOOL

BOOL stores only one value (0 or 1).

SINT, USINT, INT, UINT, DINT, UDINT, LINT, ULINT

The data range for a variable varies depending on: Data Length and Signed.
Integer type variables:
  • Do not store the fractional portion of values
  • Process more quickly than real variables
Data Range for Integer Types
Integer Type Signed Data Length Data Range
SINT 2's complement 8 bit -128 to 127
USINT - 8 bit 0 to 255
INT 2's complement 16 bit -32768 to 32767
UINT - 16 bit 0 to 65535
DINT 2's complement 32 bit -2147483648 to 2147483647
UDINT - 32 bit 0 to 4,294,967,295
LINT 2's complement 64 bit -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
ULINT - 64 bit 0 to 18,446,744,073,709,551,615
BYTE - 8 bit 0 to 255

WORD, DWORD, LWORD

Data Range for Word Types
Integer Type Data Length Data Range
WORD 16 bit 0...65,535
DWORD 32 bit 0...4,294,967,295
LWORD 64 bit 0...18,446,744,073,709,551,615

STRING, WSTRING

STRING stores from 1 to 512 bytes.
You can define the number of bytes the string can store in the Number of Bytes property.
WSTRING stores multi-byte strings, up to 512 words.
You can define the number of words the multi-byte strings can store in the Number of Words property.
NOTE: The WSTRING is available only when an external equipment is added to the System Configuration.

REAL, LREAL

Real variables can hold larger values than integer types. You can use real to store calculations, constants, and so on, when data precision is not an issue. If data precision is necessary, use an integer type.
Although real values can store large values, their precision is limited to seven digits. For example, in the value 1.2345678, only the first seven digits (1.234567) are guaranteed. Any digits after the first seven are calculated approximations only.
In an operating panel, processing a real takes more time than processing an integer type variable.
NOTE:
  • Be careful when using real variables in mathematical expressions. For example, a value stored in a real variable as 0.1 is actually 0.1000000014901161. Because the precision of real variables cannot be confirmed beyond seven decimal places, do not use real variables in comparison operations.
  • When using external REAL variables, make sure that the Double Word Order setting in the Device Configuration matches the setting in the equipment. If the settings do not match, the values of the external REAL variables will not be displayed properly.

TIME

TIME stores the duration of time.
Range: -T#24d20h31m23s648ms...+T#24d20h31m23s647ms

DATE

DATE stores the date.
Range:
 
Supported Model Range
HMIGTU Series Open Box (HMIG5U)
iPC
PC/AT
1970/01/01 00:00:00 UTC ... 2106/02/07 06:28:15 UTC
HMIGTU Series Open Box (HMIG3U)
HMIGTO Series
HMISTO Series
1970/01/01 00:00:00 UTC ... 2038/01/19 03:14:07 UTC

TIME_OF_DAY

Clock time.
Range: TOD#00:00:00 ... TOD#23:59:59

TOD

Clock time.
Range: TOD#00:00:00 ... TOD#23:59:59

DATE_AND_TIME

Date and time combines DATE and TIME_OF_DAY.

DT

Date and time combines DATE and TIME_OF_DAY.

Array

An array is a collection of variables of the same data type.

Structure

A structure is a collection of variables of any data type.
Was this helpful?
What can we do to improve the information ?