2.16 Details on Protocols
Extended MEMOBUS Protocol
2-389
Writing to Multiple Hold Registers
7•••••••••0
(L)
(H)
(L)
(H)
(L)
(H)
Response
Length: 07 hex
MFC: 20 hex
SFC: 0F hex
CPU number
Reference address
Number of coils (n)
Set the length of the response.
Always 20 hex.
The response will contain the sub function code that was set in the command.
Specify 4 bits each for the destination CPU number and the source CPU number.
This contains the first address of the changed coils.
This contains the number of the changed coils.
7•••••••••0
(L)
(H)
(L)
(H)
(L)
(H)
(L)
(H)
(L)
(H)
(L)
(H)
Command
Length: 07 hex +
Number of registers x 2
MFC: 20 hex
SFC: 10 hex
CPU number
Reference address
Number of registers (n)
Data 1
Data n
Set the length of the command.
Always 20 hex.
The sub function code to write data into hold registers is 10 hex.
Specify 4 bits each for the destination CPU number and the source CPU number.
Set the first address of the hold registers to write.
Set the number of hold registers to write.
Set the data to write into the hold registers.
7•••••••••0
(L)
(H)
(L)
(H)
(L)
(H)
Response
Length: 07 hex
MFC: 20 hex
SFC: 10 hex
CPU number
Reference address
Number of registers (n)
Set the length of the response.
Always 20 hex.
The response will contain the sub function code that was set in the command.
Specify 4 bits each for the destination CPU number and the source CPU number.
This contains the first address of the hold registers that were written to.
This contains the number of hold registers that were written to.