The full frame needed for the request to read the
parameter (input registers 3 and 4) to the Slave having the node address
1 is as follows:
Request PDU
(in hexadecimal format)
[01][04][00][02][00][02][D0][0B]
where:
[01] = Slave address
[04] =
function code
[00][02] = starting address (
3)
[00][02] = number of requested registers
[D0][0B] = CRC
The full frame needed to send back the value of the
parameter (registers 3 and 4) from the Slave having the node address 1 is
as follows:
Response PDU
(in hexadecimal format)
[01][04][04][00][00][2F][F0][E7][F0]
where:
[01] = Slave address
[04] =
function code
[04] = number of bytes (2 bytes for each register)
[00][00] = value of register 3
, 00 00 hex = 0 dec
[2F][F0] = value of register 4
, 2F F0 hex = 12272
dec
[E7][F0] = CRC
06 Write Single Register
FC = 06 (Hex = 0x06)
This function code is used to WRITE a single holding register in a remote device.
The Request PDU specifies the address of the register to be written. Registers are
addressed starting at zero. Therefore register numbered 1 is addressed as 0.
The normal response is an echo of the request, returned after the register
contents have been written.
For the complete list of registers accessible using
function code please refer to the “8.1.1 Holding Register parameters” section on
page 63.
MAN RD6 MB E 1.1
Modbus® interface
57 of 92
RD6 Modbus®