Data
type
Length
Data type
number
Data range
short 16 bits 3 -32768 to 32767
unsigned
short
16 bits 4 0 to 65535
long 32 bits 5
−2147483648 to 2147483647
unsigned
long
32 bits 6 0 to 4294967295
float 32 bits 7 -3.402823e+38 to -1.175 495e-38 +1.175 495e-38 to +3.402823e+38
double 64 bits 8
-1.7976931348623158e+308 to -2.2250738585072014e-308
+2.2250738585072014e-308 to +1.7976931348623158e+308
ascii-text
8 bits /
char
9
Examples:
Example
Data
type
Function
type
Start
address
Variable
type
Response
Address
Offset
Response
Quantity
Reading the first Holding Register, number
40001, has the start address 0.
int
Read
Holding
Registers
0
unsigned
short or
short
0 1
VariableType: 4 or 3 (unsigned short or
short)Reading the second Input Register,
number 30002, has the start address 1.
int
Read
Input
Registers
1
unsigned
short or
short
0 1
Reading a float (32 bits) from Input Register
30108 / 30109, has the start address 107.
double
Read
Input
Registers
107
float
(reads
two
registers)
0 1
Reading a string. This example describes to
read four letters from register 40006 and
40007. Each register contains two characters.
string
Read
Holding
Registers
5
unsigned
short
0
2
(registers)
Reading a Boolean from the Holding Register
40011, has the start address 10. If the hole
Holding Register has the value 0 then it is
displayed as 0. If one bit(or more) has the
value 1 then it will be displayed as 1.
Boolean
Read
Holding
Registers
10
unsigned
short or
short
0 1