EasyManua.ls Logo

Cotek AD-1500 - Modbus Function Code Read Input Registers (0 X04)

Default Icon
60 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
9
1-10. Modbus Function Code Read Input Registers
(0x04)
This function code is used to read from 1 to 125 contiguous input registers in a
remote device. The Request PDU specifies the starting register address and the
number of registers. In the PDU Registers are addressed starting at zero.
Therefore input registers numbered 1-16 are addressed as 0-15.
The register data in the response message are packed as two bytes per register,
with the binary contents right justified within each byte. For each register, the first
byte contains the high order bits and the second contains the low order bits.
Request Frame:
length
Description
Slave Address
1 Byte
0XA0 (AD Default Address)
Function Code
1 Byte
0x04
Register Address MSB
1 Byte
0x00
Register Address LSB
1 Byte
0x30 to 0x74
Quantity of Register MSB
1 Byte
0x00
Quantity of Register LSB
1 Byte
0x01 to 0x18 (number of word to read)
CRC LSB
1 Byte
CRC MSB
1 Byte
Response Frame:
length
Description
Slave Address
1 Byte
0XA0 (AD Default Address)
Function Code
1 Byte
0x04
Byte count
1 Byte
2 * N (N = Quantity of Register in Request)
Register Value
N * 2 Bytes
Data
CRC LSB
1 Byte
CRC MSB
1 Byte