English (GB)
68
12.4 Write single register (0x06)
This function is used for writing a single holding register in the
slave. The request telegram specifies the address of the register
that is to be written. Register addresses start from zero, meaning
that a register numbered 10 is addressed as 9.
The normal response is an echo of the request, indicating that the
value was written.
Example of request from master to slave
In the request, the slave with address 1 is asked to write the
value of 0xAFFE to the register at address 0x1000.
Example of response from slave to master
The response is an echo of the request.
12.5 Write multiple registers (0x10)
This function is used for writing a block of contiguous holding
registers in the slave. Register addresses start from zero,
meaning that a register numbered 100 is addressed as 99.
Example of request from master to slave
In the request, the slave with address 1 is asked to write the
value of 0x0001 to the register at address 0x0020 and the value
of 0xB0B0 to the register at address 0x0021.
Example of response from slave to master
The response returns the function code, starting address and
quantity of registers written.
Field
Value
Address
0x01
Function code
0x06
Address HI
0x10
Address LO
0x00
Value HI
0xAF
Value LO
0xFE
Field
Value
Address
0x01
Function code
0x06
Address HI
0x10
Address LO
0x00
Value HI
0xAF
Value LO
0xFE
Field
Value
Address
0x01
Function code
0x10
Start address HI
0x00
Start address LO
0x20
Quantity HI
0x00
Quantity LO
0x02
Byte count
0x04
Register 33 HI
0x00
Register 33 LO
0x01
Register 34 HI
0xB0
Register 34 LO
0xB0
Field
Value
Address
0x01
Function code
0x10
Start address HI
0x00
Start address LO
0x20
Quantity written HI
0x00
Quantity written LO
0x02
Pumpland.ru
Summary of Contents for CIM 200
Page 92: ...92 Pumpland ru...