Data types
- Last UpdatedAug 21, 2026
- 2 minute read
The adapter converts readings from single or multiple registers into the data types specified by the data type code and populates the value into streams.
The following table lists all data types with their corresponding type codes supported by the adapter.
|
Data type code |
Data type name |
Value type |
Register type |
Description |
|---|---|---|---|---|
|
1 |
Boolean |
Boolean |
Bool |
0 = false |
|
10 |
Int16 |
Int16 |
Any |
Read 1 Modbus TCP register1 and interpret as a 16-bit integer. Bytes [BA] read from the device are stored as [AB].2 |
|
20 |
UInt16 |
UInt16 |
Any |
Read 1 Modbus TCP register1 and interpret as an unsigned 16-bit integer. Bytes [BA] read from the device are stored as [AB].2 |
|
30 |
Int32 |
Int32 |
Holding16/Input16 |
Read 32 bits from the Modbus TCP device and interpret as a 32-bit integer. Bytes [DCBA] read from the device are stored as [ABCD].2 |
|
31 |
Int32ByteSwap |
Int32 |
Holding16/Input16 |
Read 32 bits from the Modbus TCP device and interpret as a 32-bit integer. Bytes [BADC] read from the device are stored as [ABCD].2 |
|
40 |
UInt32 |
UInt32 |
Holding16/Input16 |
Read 32 bits from the Modbus TCP device and interpret as a 32-bit unsigned integer. Bytes [DCBA] read from the device are stored as [ABCD].2 |
|
41 |
UInt32ByteSwap |
UInt32 |
Holding16/Input16 |
Read 32 bits from the Modbus TCP device and interpret as a 32-bit unsigned integer. Bytes [BADC] read from the device are stored as [ABCD].2 |
|
100 |
Float32 |
Float32 |
Holding16/Input16 |
Read 32 bits from the Modbus TCP device and interpret as a 32-bit float. Bytes [DCBA] read from the device are stored as [ABCD].2 |
|
101 |
Float32ByteSwap |
Float32 |
Holding16/Input16 |
Read 32 bits from the Modbus TCP device and interpret as a 32-bit float. Bytes [BADC] read from the device are stored as [ABCD].2 |
|
110 |
Float64 |
Float64 |
Holding16/Input16 |
Read 64 bits from the Modbus TCP device and interpret as a 64-bit float. Bytes [HGFEDCBA] read from the device are stored as [ABCDEFGH].2 |
|
111 |
Float64ByteSwap |
Float64 |
Holding16/Input16 |
Read 64 bits from the Modbus TCP device and interpret as a 64-bit float. Bytes [BADCFEHG] read from the device are stored as [ABCDEFGH].2 |
|
1001 - 1250 |
String |
String |
Holding16/Input16 |
1001 reads a one-character string, 1002 reads a two-character string, and 1003 reads a three-character string and so on. Bytes [AB] are interpreted as "AB". |
|
2001 - 2250 |
StringByteSwap |
String |
Holding16/Input16 |
2001 reads a one-character string, 2002 reads a two-character string, and 2003 reads a three-character string and so on. Bytes [BA] are interpreted as "AB". |
1 For more information about Modbus TCP registers, see How is data stored in Standard Modbus? (https://www.se.com/us/en/faqs/FA168406/)
2 Bytes are read in reverse order.