Supported data types
- Last UpdatedSep 16, 2024
- 1 minute read
The data type is specified as a suffix in the item syntax. This Communication Driver supports the following data types.
|
DataType |
Suffix |
Description |
|
Boolean |
BOOL |
Boolean value |
|
Byte |
BYTE |
Unsigned,8-bit variable. |
|
Word DWord |
WORD DWORD |
Unsigned,16-bit decimal value.(Word) Note:This is the default when no data type is specified. Unsigned,32-bit decimal value (double Word). |
|
Signed Short Integer Unsigned Short Integer |
SINT USINT |
Signed,8-bit decimal value. Unsigned,8-bit decimal value. |
|
Signed Integer |
INT |
Signed,16-bit decimal value. |
|
Unsigned Integer Signed Integer |
UINT DINT |
Unsigned,16-bit decimal value. Signed, 32-bit decimal value. |
|
Unsigned Integer Floating Point |
UDINT REAL |
Unsigned, 32-bit decimal value. Floating point, 32-bit value. |
|
Floating Point |
LREAL |
Floating point, 64-bit value. |
|
Duration time |
TIME |
The most significant digit is one millisecond, 32-bit value. |
|
Time of day Date |
TOD DATE |
The most significant digit is one millisecond, 32-bit value. The most significant digit is one second, 32-bit value. |
|
Date and time |
DT |
The most significant digit is one second, 32-bit value. |
Note: The table above shows suggested usages and addressing possibilities for a TwinCAT data type given the address formats available. All of these data types are used only in I/O addressing, which is supported only by TwinCAT 2.x. 64-bit integers (i.e., LWORD, LINT, ULINT) are not supported