TwinCAT PLC Control: Data Types

Overview

You can use standard data types and user-defined data types when programming. Each identifier is assigned to a data type which dictates how much memory space will be reserved and what type of values it stores.

Note:

The different data types cover different value ranges. If type conversions from bigger to smaller types are used, information may get lost.

 

Standard Data Types User-defined Data Types
BOOL ARRAY
BYTE POINTER
WORD ENUM (enumerated data types)
DWORD STRUCT (structures)
SINT ALIAS (derived dayta types)
USINT Sub-range data types
INT  
UINT  
DINT  
UDINT  
LINT  (64 bit integer, currently not supported by TwinCAT)  
ULINT (Unsigned 64 bit integer, currently not supported by TwinCAT)  
REAL  
LREAL  
STRING  
TIME  
TIME_OF_DAY (TOD)  
DATE  
DATE_AND_TIME (DT)