2.16 Details on Protocols
Extended MEMOBUS Protocol
2-388
Writing to Non-consecutive Hold Registers (Extended)
Changing the States of Multiple Coils
7 • • • • • • • • • 0
(L)
(H)
(L)
(L)
(L)
(H)
(L)
(H)
(L)
(H)
(H)
(H)
Command
Length: 06 hex +
Number of registers x 4
MFC: 20 hex
SFC: 0E hex
CPU number
Not used.
Number of registers (n)
Reference address 1
Register data 1
Reference address n
Register data n
Set the length of the command.
Always 20 hex.
The sub function code to write data into non-consecutive hold registers is 0E hex.
Specify 4 bits each for the destination CPU number and the source CPU number.
Set the number of hold registers to write.
Set the address of the hold registers to write.
Set the data to write into the hold registers.
Set the address of the hold registers to write.
Set the data to write into the hold registers.
7 • • • • • • • • • 0
(L)
(H)
(L)
(H)
Response
Length: 06 hex
MFC: 20 hex
SFC: 0E hex
CPU number
Not used.
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 number of hold registers that were written to.
7 • • • • • • • • • 0
(L)
(H)
(L)
(H)
(L)
(H)
Command
Length: 07 hex +
Number of coils/8
MFC: 20 hex
SFC: 0F hex
CPU number
Reference address
Number of coils (n)
Coil data (1 to 8)
Coil data (up to n)
Set the length of the command.
Always 20 hex.
The sub function code to read the states of coils is 0F hex.
Specify 4 bits each for the destination CPU number and the sour
Set the first address of the coils to change the states of.
Set the number of coils to change.
Set the desired state of the coil.