Register 8 value Lo
DC
Register 9 value Hi
03
Register 9 value Lo
E8
As you can see in the table, the value 05 DC hex, i.e. 1500 in decimal notation, is
set in the
parameter (register 8); the value 03 E8 hex, i.e.
1000 in decimal notation, is set in the
9).
The full frame needed for the request to write the values 05 DC hex (= 1500
dec) and 03 E8 hex (= 1000 dec) in the parameters
(register 9) to the Slave having the node
address 1 is as follows:
Request PDU
(in hexadecimal format)
[01][10][00][07][00][02][04][05][DC][03][E8][73][C1]
where:
[01] = Slave address
[10] =
function code
[00][07] = starting address (
parameter, register 8)
[00][02] = number of requested registers
[04] = number of bytes (2 bytes for each register)
[05][DC] = value to be set in the register 8
, 05 DC hex =
1000 dec
[03][E8] = value to be set in the register 9
, 03 E8 hex =
1500 dec
[73][C1] = CRC
The full frame needed to send back a response following the request to write the
values 05 DC hex (= 1500 dec) and 03 E8 hex (= 1000 dec) in the parameters
Slave having the node address 1 is as follows:
Response PDU
(in hexadecimal format)
[01][10][00][07][00][02][F0][09]
where:
[01] = Slave address
[10] =
function code
[00][07] = starting address (
parameter, register 8)
[00][02] = number of written registers
[F0][09] = CRC
MAN RD6 MB E 1.1
Modbus® interface
61 of 92
RD6 Modbus®